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
This commit is contained in:
parent
27eed28376
commit
2cc47e0a85
|
@ -975,7 +975,7 @@ static void do_invite(switch_core_session_t *session)
|
||||||
if ((tech_pvt->from_str = switch_mprintf("\"%s\" <sip:%s@%s>",
|
if ((tech_pvt->from_str = switch_mprintf("\"%s\" <sip:%s@%s>",
|
||||||
cid_name,
|
cid_name,
|
||||||
cid_num,
|
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);
|
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\" <sip:%s@%s>",
|
if ((tech_pvt->from_str = switch_mprintf("\"%s\" <sip:%s@%s>",
|
||||||
(char *) caller_profile->caller_id_name,
|
(char *) caller_profile->caller_id_name,
|
||||||
(char *) caller_profile->caller_id_number,
|
(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);
|
char *rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER);
|
||||||
|
|
Loading…
Reference in New Issue