From 2cc47e0a852a475204fd47aaac67c4df3c96da8b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 5 Feb 2007 23:48:12 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);