make sure to remove sip_dialogs when we should

This commit is contained in:
Brian West 2010-08-27 14:04:45 -05:00
parent e0d4c195ef
commit 540ee0123d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}