mod_sofia: Fix malformed Presense SQL Query

This commit is contained in:
Marc Olivier Chouinard 2010-11-28 17:07:54 -05:00
parent 80174cf39f
commit 9a9373c0bb
1 changed files with 1 additions and 1 deletions

View File

@ -1927,7 +1927,7 @@ static void sync_sla(sofia_profile_t *profile, const char *to_user, const char *
switch_core_hash_init(&sh->hash, sh->pool); switch_core_hash_init(&sh->hash, sh->pool);
sql = switch_mprintf("select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs " sql = switch_mprintf("select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs "
"where hostname='%q' " "and ((sip_from_user='%q' and sip_from_host='%q) or presence_id='%q@%q')' ", "where hostname='%q' and ((sip_from_user='%q' and sip_from_host='%q) or presence_id='%q@%q')",
mod_sofia_globals.hostname, to_user, to_host, to_user, to_host); mod_sofia_globals.hostname, to_user, to_host, to_user, to_host);