提交 60ab746d authored 作者: Brian West's avatar Brian West

and eh? :)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9100 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 335f844a
...@@ -321,14 +321,14 @@ void sofia_reg_expire_call_id(sofia_profile_t *profile, const char *call_id, int ...@@ -321,14 +321,14 @@ void sofia_reg_expire_call_id(sofia_profile_t *profile, const char *call_id, int
host = "none"; 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); reboot, call_id, user, host);
switch_mutex_lock(profile->ireg_mutex); switch_mutex_lock(profile->ireg_mutex);
sofia_glue_execute_sql_callback(profile, SWITCH_TRUE, NULL, sql, sofia_reg_del_callback, profile); sofia_glue_execute_sql_callback(profile, SWITCH_TRUE, NULL, sql, sofia_reg_del_callback, profile);
switch_mutex_unlock(profile->ireg_mutex); 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); call_id, user, host);
sofia_glue_execute_sql(profile, &psql, SWITCH_FALSE); sofia_glue_execute_sql(profile, &psql, SWITCH_FALSE);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论