[Freeswitch-svn] [commit] r11106 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN anthm at freeswitch.org
Fri Jan 9 15:21:38 PST 2009


Author: anthm
Date: Fri Jan  9 17:21:38 2009
New Revision: 11106

Log:
MODENDP-167

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Fri Jan  9 17:21:38 2009
@@ -2675,12 +2675,12 @@
 
 				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)
 										 );
 				}
 				



More information about the Freeswitch-svn mailing list