MODENDP-167
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11106 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8b8e935551
commit
732677a58f
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue