mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
and eh? :)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9100 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
335f844ac1
commit
60ab746d86
@ -321,14 +321,14 @@ void sofia_reg_expire_call_id(sofia_profile_t *profile, const char *call_id, int
|
||||
host = "none";
|
||||
}
|
||||
|
||||
switch_snprintf(sql, sizeof(sql), "select *,%d from sip_registrations where call_id='%s' or (sip_user='%s' && sip_host='%s')",
|
||||
switch_snprintf(sql, sizeof(sql), "select *,%d from sip_registrations where call_id='%s' or (sip_user='%s' and sip_host='%s')",
|
||||
reboot, call_id, user, host);
|
||||
|
||||
switch_mutex_lock(profile->ireg_mutex);
|
||||
sofia_glue_execute_sql_callback(profile, SWITCH_TRUE, NULL, sql, sofia_reg_del_callback, profile);
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
|
||||
switch_snprintf(sql, sizeof(sql), "delete from sip_registrations where call_id='%s' or (sip_user='%s' && sip_host='%s')",
|
||||
switch_snprintf(sql, sizeof(sql), "delete from sip_registrations where call_id='%s' or (sip_user='%s' and sip_host='%s')",
|
||||
call_id, user, host);
|
||||
sofia_glue_execute_sql(profile, &psql, SWITCH_FALSE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user