From c6bcb0a18697a94301e33e4d6e717e0ed74bcc94 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 19 Nov 2007 16:44:57 +0000 Subject: [PATCH] missed one git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6333 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,