make sure to remove sip_dialogs when we should
This commit is contained in:
parent
e0d4c195ef
commit
540ee0123d
|
@ -458,7 +458,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
|
|||
}
|
||||
|
||||
if (session && tech_pvt->profile->pres_type) {
|
||||
char *sql = switch_mprintf("delete from sip_dialogs where call_id='%q'", tech_pvt->call_id);
|
||||
char *sql = switch_mprintf("delete from sip_dialogs where uuid='%q'", switch_core_session_get_uuid(session));
|
||||
switch_assert(sql);
|
||||
sofia_glue_execute_sql_now(tech_pvt->profile, &sql, SWITCH_TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue