[commit] r3961 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Sun Jan 14 22:52:39 2007 New Revision: 3961 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: if we define ext-sip-ip in the profile for config, use it for the profile url. This does not yet use stun, or have any method for determining on a call by call basis if a call needs to use the internal or external. Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Sun Jan 14 22:52:39 2007 @@ -4952,8 +4952,11 @@ if (!profile->sipdomain) { profile->sipdomain = switch_core_strdup(profile->pool, profile->sipip); } - - snprintf(url, sizeof(url), "sip:mod_sofia@%s:%d", profile->sipip, profile->sip_port); + if (profile->extsipip) { + snprintf(url, sizeof(url), "sip:mod_sofia@%s:%d", profile->extsipip, profile->sip_port); + } else { + snprintf(url, sizeof(url), "sip:mod_sofia@%s:%d", profile->sipip, profile->sip_port); + } profile->url = switch_core_strdup(profile->pool, url); } if (profile) {
participants (1)
-
Freeswitch SVN