From 04a368848cc7eb912c9e9c9f3c813546e951f677 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 10 Apr 2012 10:03:42 -0500 Subject: [PATCH] FS-4094 --resolve --- src/mod/endpoints/mod_sofia/sofia_presence.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index bdcbd3288f..4a9c89c203 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2647,7 +2647,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * if (!zstr(astate) && !zstr(uuid) && helper && helper->stream.data && strcmp(helper->last_uuid, uuid) && strcasecmp(astate, "terminated") && strchr(uuid, '-')) { helper->stream.write_function(&helper->stream, "update sip_dialogs set state='%s' where hostname='%q' and profile_name='%q' and uuid='%s';", - mod_sofia_globals.hostname, profile->name, astate, uuid); + astate, mod_sofia_globals.hostname, profile->name, uuid); switch_copy_string(helper->last_uuid, uuid, sizeof(helper->last_uuid)); } @@ -2778,8 +2778,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * if (!zstr(uuid) && strchr(uuid, '-') && !zstr(status_line) && !zstr(rpid) && (zstr(register_source) || strcasecmp(register_source, "register"))) { char *sql = switch_mprintf("update sip_dialogs set rpid='%q',status='%q' where hostname='%q' and profile_name='%q' and uuid='%q'", - mod_sofia_globals.hostname, profile->name, - rpid, status_line, uuid); + rpid, status_line, + mod_sofia_globals.hostname, profile->name, uuid); sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE); } } @@ -3588,8 +3588,8 @@ void sofia_presence_handle_sip_i_subscribe(int status, " from sip_subscriptions where hostname='%q' and profile_name='%q' and " "event='message-summary' and sip_user='%q' " "and (sip_host='%q' or presence_hosts like '%%%q%%')", - mod_sofia_globals.hostname, profile->name, - to_host, to_user, to_host, to_host))) { + to_host, mod_sofia_globals.hostname, profile->name, + to_user, to_host, to_host))) { sofia_glue_execute_sql_callback(profile, profile->ireg_mutex, sql, sofia_presence_sub_reg_callback, profile); switch_safe_free(sql);