mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-08 00:33:20 +00:00
FS-4677
This commit is contained in:
parent
61033f420b
commit
7afd4cae67
@ -956,10 +956,19 @@ static void send_conference_data(sofia_profile_t *profile, switch_event_t *event
|
|||||||
sofia_glue_execute_sql_callback(profile, profile->ireg_mutex, sql, sofia_presence_send_sql, &cb);
|
sofia_glue_execute_sql_callback(profile, profile->ireg_mutex, sql, sofia_presence_send_sql, &cb);
|
||||||
|
|
||||||
if (switch_true(final)) {
|
if (switch_true(final)) {
|
||||||
|
if (call_id) {
|
||||||
|
sql = switch_mprintf("delete from sip_subscriptions where "
|
||||||
|
"hostname='%q' and profile_name='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q' "
|
||||||
|
"and call_id = '%q' ",
|
||||||
|
mod_sofia_globals.hostname, profile->name,
|
||||||
|
from_user, from_host, event_str, call_id);
|
||||||
|
|
||||||
|
} else {
|
||||||
sql = switch_mprintf("delete from sip_subscriptions where "
|
sql = switch_mprintf("delete from sip_subscriptions where "
|
||||||
"hostname='%q' and profile_name='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q'",
|
"hostname='%q' and profile_name='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q'",
|
||||||
mod_sofia_globals.hostname, profile->name,
|
mod_sofia_globals.hostname, profile->name,
|
||||||
from_user, from_host, event_str);
|
from_user, from_host, event_str);
|
||||||
|
}
|
||||||
|
|
||||||
sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
|
sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user