mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 03:04:18 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8522 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
01c30675b9
commit
4909dc50ef
2 files changed
+17
-8
No files matched your search
@@ -704,9 +704,14 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
|
||||
|
||||
if (regtype == REG_REGISTER) {
|
||||
char *new_contact = NULL;
|
||||
char *p;
|
||||
|
||||
if ((p = strstr(contact_str, ";nat"))) {
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
if (exptime) {
|
||||
if (nat_hack) {
|
||||
if (is_nat || nat_hack) {
|
||||
new_contact = switch_mprintf("%s;expires=%ld;received=\"%s:%d\"", contact_str, (long)exptime, network_ip, network_port);
|
||||
} else {
|
||||
new_contact = switch_mprintf("%s;expires=%ld", contact_str, (long)exptime);
|
||||
|
||||
Reference in new issue
Block a user