From: Anthony Minessale Date: Mon, 21 Jul 2008 22:18:24 +0000 (+0000) Subject: update X-Git-Tag: v1.0.1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d30021aaa6546f5ab81ba6fd048503632c8201;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9127 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 88f51e742e..73c2bf712d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1035,6 +1035,12 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) if (!tech_pvt->from_str) { const char* sipip = tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip; const char* format = strchr(sipip, ':') ? "\"%s\" " : "\"%s\" "; + const char *alt = NULL; + + if ((alt = switch_channel_get_variable(channel, "sip_invite_domain"))) { + sipip = alt; + } + tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, format,