From: Anthony Minessale Date: Mon, 19 Nov 2007 16:44:57 +0000 (+0000) Subject: missed one X-Git-Tag: v1.0-beta2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6bcb0a18697a94301e33e4d6e717e0ed74bcc94;p=thirdparty%2Ffreeswitch.git missed one git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6333 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 f914c39cc7..a685467a36 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -364,7 +364,7 @@ void sofia_presence_event_handler(switch_event_t *event) } if (euser && host && - (sql = switch_mprintf("select user,host,status,rpid,'' from sip_registrations where sip_user='%q' and sip_host='%q'", + (sql = switch_mprintf("select sip_user,sip_host,status,rpid,'' from sip_registrations where sip_user='%q' and sip_host='%q'", euser, host)) && (profile = sofia_glue_find_profile(host))) { sofia_glue_execute_sql_callback(profile,