提交 732677a5 authored 作者: Anthony Minessale's avatar Anthony Minessale

MODENDP-167

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11106 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8b8e9355
......@@ -2675,12 +2675,12 @@ static void general_event_handler(switch_event_t *event)
if (call_id) {
sql = switch_mprintf("select sip_user,sip_host,contact,profile_name,'%q','%q','%q' "
"from sip_registrations where call_id='%q'", ct, es, body, call_id
"from sip_registrations where call_id='%q'", ct, es, switch_str_nil(body), call_id
);
} else {
sql = switch_mprintf("select sip_user,sip_host,contact,profile_name,'%q','%q','%q' "
"from sip_registrations where sip_user='%s' and sip_host='%q'",
ct, es, body, user, host
ct, es, switch_str_nil(body), switch_str_nil(user), switch_str_nil(host)
);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论