From c1d6b625932ff738ba99976b286e32a3a5217827 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 15 Dec 2012 08:55:02 -0600 Subject: [PATCH] FS-4926 --resolve You found it, the registration table was not updating the call_id field. --- src/mod/endpoints/mod_sofia/sofia_reg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index bc98f7fc2d..c0b81d3573 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1614,12 +1614,12 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand agent, from_user, guess_ip4, profile->name, mod_sofia_globals.hostname, network_ip, network_port_c, username, realm, mwi_user, mwi_host, guess_ip4, mod_sofia_globals.hostname, sub_host); } else { - sql = switch_mprintf("update sip_registrations set " + sql = switch_mprintf("update sip_registrations set call_id='%q'," "sub_host='%q', network_ip='%q',network_port='%q'," "presence_hosts='%q', server_host='%q', orig_server_host='%q'," - "hostname='%q', orig_hostname='%q'," + "hostname='%q', orig_hostname='%q'," "expires = %ld where sip_user='%q' and sip_username='%q' and sip_host='%q' and contact='%q'", - sub_host, network_ip, network_port_c, + call_id, sub_host, network_ip, network_port_c, profile->presence_hosts ? profile->presence_hosts : "", guess_ip4, guess_ip4, mod_sofia_globals.hostname, mod_sofia_globals.hostname, (long) reg_time + (long) exptime + 60,