From b4233082fa0afa336a53d69ff1dc373c87b5a2c9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 14 Apr 2010 19:00:38 -0500 Subject: [PATCH] set appearance-index in update statement for SLA --- src/mod/endpoints/mod_sofia/sofia_presence.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 80f7d248ee..0a8a333812 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -614,12 +614,12 @@ static void actual_sofia_presence_event_handler(switch_event_t *event) #endif if (uuid) { - sql = switch_mprintf("update sip_dialogs set call_info_state='%q' where hostname='%q' and uuid='%q'", - call_info_state, mod_sofia_globals.hostname, uuid); + sql = switch_mprintf("update sip_dialogs set call_info='%q',call_info_state='%q' where hostname='%q' and uuid='%q'", + call_info, call_info_state, mod_sofia_globals.hostname, uuid); } else { - sql = switch_mprintf("update sip_dialogs set call_info_state='%q' where hostname='%q' and sip_dialogs.sip_from_user='%q' " + sql = switch_mprintf("update sip_dialogs set call_info='%q', call_info_state='%q' where hostname='%q' and sip_dialogs.sip_from_user='%q' " "and sip_dialogs.sip_from_host='%q' and call_info='%q'", - call_info_state, mod_sofia_globals.hostname, euser, host, call_info); + call_info, call_info_state, mod_sofia_globals.hostname, euser, host, call_info); }