]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sql stmt
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 2 Feb 2012 19:54:18 +0000 (13:54 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 2 Feb 2012 19:54:18 +0000 (13:54 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index ab4fa384dfabd9044f30a4a3b47ab554c4deb066..02054d3cd1b7a40f10fc2e6bab7db597ae89e20e 100644 (file)
@@ -646,7 +646,7 @@ static void do_normal_probe(switch_event_t *event)
                                                         "from sip_registrations "
 
                                                         "left join sip_dialogs on "
-                                                        "sip_dialogs.hostname = sip_registration.hostname and sip_dialogs.profile_name = sip_registration.profile_name and ("
+                                                        "sip_dialogs.hostname = sip_registrations.hostname and sip_dialogs.profile_name = sip_registrations.profile_name and ("
                                                         "sip_dialogs.presence_id = sip_registrations.sip_user %q '@' %q sip_registrations.sub_host "
                                                         "or (sip_dialogs.sip_from_user = sip_registrations.sip_user "
                                                         "and sip_dialogs.sip_from_host = sip_registrations.sip_host)) "