mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 03:05:50 +00:00
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) {
|
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);
|
switch_assert(sql);
|
||||||
sofia_glue_execute_sql_now(tech_pvt->profile, &sql, SWITCH_TRUE);
|
sofia_glue_execute_sql_now(tech_pvt->profile, &sql, SWITCH_TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user