This commit is contained in:
Anthony Minessale
2010-06-14 13:42:06 -05:00
parent 520bc29d94
commit 64aaf4e9d8
2 changed files with 8 additions and 5 deletions
+3
View File
@@ -2989,6 +2989,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
if (ip) {
if (!strncasecmp(ip, "autonat:", 8)) {
profile->extrtpip = switch_core_strdup(profile->pool, ip + 8);
if (zstr(profile->extsipip)) {
profile->extsipip = switch_core_strdup(profile->pool, profile->extrtpip);
}
sofia_set_pflag(profile, PFLAG_AUTO_NAT);
} else {
profile->extrtpip = switch_core_strdup(profile->pool, ip);