]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set appearance-index in update statement for SLA
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 15 Apr 2010 00:00:38 +0000 (19:00 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 15 Apr 2010 00:01:54 +0000 (19:01 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 80f7d248ee6005ba4eb177a3935cd30e21335603..0a8a333812ee430a24a805c33174107b1cbb997c 100644 (file)
@@ -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);
 
                        }