提交 2cc47e0a authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 27eed283
...@@ -975,7 +975,7 @@ static void do_invite(switch_core_session_t *session) ...@@ -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) ...@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论