]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4852 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 16:00:44 +0000 (10:00 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 16:00:44 +0000 (10:00 -0600)
src/mod/endpoints/mod_sofia/sofia_reg.c

index 79b49c1b6b48bdb3635cde6626801ce4d06459c0..e64dab7415bc211470427157fad7fdac2b529f9f 100644 (file)
@@ -1595,8 +1595,12 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
                } else {
                        sql = switch_mprintf("update sip_registrations set "
                                                                 "sub_host='%q', network_ip='%q',network_port='%q',"
+                                                                "presence_hosts='%q', server_host='%q', orig_server_host='%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,
+                                                                profile->presence_hosts ? profile->presence_hosts : "", guess_ip4, guess_ip4,
+                                                                 mod_sofia_globals.hostname, mod_sofia_globals.hostname,
                                                                 (long) switch_epoch_time_now(NULL) + (long) exptime + 60, 
                                                                 to_user, username, reg_host, contact_str);
                }