From: Michael Jerris Date: Mon, 5 Feb 2007 23:48:12 +0000 (+0000) Subject: make from use the external sip ip when it is set instead of the bind ip. X-Git-Tag: v1.0-beta1~1230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc47e0a852a475204fd47aaac67c4df3c96da8b;p=thirdparty%2Ffreeswitch.git make from use the external sip ip when it is set instead of the bind ip. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4127 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c239604abf..a388ccb09f 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -975,7 +975,7 @@ static void do_invite(switch_core_session_t *session) if ((tech_pvt->from_str = switch_mprintf("\"%s\" ", cid_name, cid_num, - tech_pvt->profile->sipip + tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip ))) { char *rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER); @@ -1085,7 +1085,7 @@ static void do_xfer_invite(switch_core_session_t *session) if ((tech_pvt->from_str = switch_mprintf("\"%s\" ", (char *) caller_profile->caller_id_name, (char *) caller_profile->caller_id_number, - tech_pvt->profile->sipip + tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip ))) { char *rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER);