[Freeswitch-branches] [commit] r11427 - freeswitch/branches/1.0/src/mod/endpoints/mod_sofia

FreeSWITCH SVN mikej at freeswitch.org
Thu Jan 22 15:06:17 PST 2009


Author: mikej
Date: Thu Jan 22 17:06:17 2009
New Revision: 11427

Log:
mod_sofia: fix notify event wasn't allowing content-length 0 (r:11106/MODENDP-167)

Modified:
   freeswitch/branches/1.0/src/mod/endpoints/mod_sofia/mod_sofia.c

Modified: freeswitch/branches/1.0/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/branches/1.0/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/branches/1.0/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Jan 22 17:06:17 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-branches mailing list