提交 ad1ac983 authored 作者: Anthony Minessale's avatar Anthony Minessale

append host when its not supplied on carrot dialing

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15099 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ae7b39c9
...@@ -2739,6 +2739,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session ...@@ -2739,6 +2739,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
tech_pvt->transport = gateway_ptr->register_transport; tech_pvt->transport = gateway_ptr->register_transport;
/* /*
* Handle params, strip them off the destination and add them to the * Handle params, strip them off the destination and add them to the
* invite contact. * invite contact.
...@@ -2782,6 +2783,16 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session ...@@ -2782,6 +2783,16 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s", dest); tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s", dest);
} }
if ((host = switch_core_session_strdup(session, tech_pvt->dest))) {
char *p = strchr(host, '@');
if (p) {
host = p+1;
} else {
host = NULL;
dest_to = NULL;
}
}
if (params) { if (params) {
tech_pvt->invite_contact = switch_core_session_sprintf(nsession, "%s;%s", gateway_ptr->register_contact, params); tech_pvt->invite_contact = switch_core_session_sprintf(nsession, "%s;%s", gateway_ptr->register_contact, params);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论