git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8522 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2008-05-22 14:41:11 +00:00
1 parent 01c30675b9
commit 4909dc50ef
2 files changed
+17 -8

No files matched your search

+6 -1
View File
@@ -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);