]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed one
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 16:44:57 +0000 (16:44 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 16:44:57 +0000 (16:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6333 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index f914c39cc77538097371ad42c4f160e5b4a228dd..a685467a368d8c6a4a3cb77638b4fdd1802969ee 100644 (file)
@@ -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,