]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
used || instead of 'or' in sql stmt
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Oct 2010 16:46:39 +0000 (11:46 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Oct 2010 16:46:39 +0000 (11:46 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index c11d5d964096208a9723e1c8e4bd791a450e176c..71a827f80b1ac234f9d1015c096d92565abd912a 100644 (file)
@@ -627,7 +627,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
                                                                                 "from sip_dialogs "
                                                                                 
                                                                                 "where (presence_id='%q@%q' or "
-                                                                                "(sip_from_user='%q' and (sip_from_host='%q' || sip_to_host='%q')))",
+                                                                                "(sip_from_user='%q' and (sip_from_host='%q' or sip_to_host='%q')))",
                                                                                 
                                                                                 dh.status, dh.rpid, probe_euser, probe_host,  probe_euser, probe_host, probe_host);