From: Brian West Date: Thu, 4 Jun 2009 04:05:48 +0000 (+0000) Subject: fix sql query missing network_ip for callback X-Git-Tag: v1.0.4~638 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47cad8a7e0a92aa0abf8838b7678a4971b5126cc;p=thirdparty%2Ffreeswitch.git fix sql query missing network_ip for callback git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13604 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index eca5206e98..155842855e 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1866,7 +1866,7 @@ void sofia_presence_handle_sip_i_subscribe(int status, if ((sql = switch_mprintf( "select proto,sip_user,'%q',sub_to_user,sub_to_host,event,contact,call_id,full_from," - "full_via,expires,user_agent,accept,profile_name" + "full_via,expires,user_agent,accept,profile_name,network_ip" " from sip_subscriptions where sip_user='%q' and (sip_host='%q' or presence_hosts like '%%%q%%')", to_host, to_user, to_host, to_host))) { sofia_glue_execute_sql_callback(profile, SWITCH_FALSE, profile->ireg_mutex, sql, sofia_presence_sub_reg_callback, profile);