From: Anthony Minessale Date: Wed, 27 Oct 2010 16:46:39 +0000 (-0500) Subject: used || instead of 'or' in sql stmt X-Git-Tag: v1.2-rc1~265^2~11^2~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91230e01f9b72d7e05f95d64faee7855330dbead;p=thirdparty%2Ffreeswitch.git used || instead of 'or' in sql stmt --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index c11d5d9640..71a827f80b 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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);