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

set extension=auto_to_user in gateway to make destination equal to user

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15010 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 6ad63ce8
......@@ -5190,7 +5190,13 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
switch_channel_set_variable(channel, "sip_gateway", gateway->name);
if (gateway->extension) {
destination_number = switch_core_session_strdup(session, gateway->extension);
if (!strcasecmp(gateway->extension, "auto_to_user")) {
destination_number = sip->sip_to->a_url->url_user;
} else {
destination_number = switch_core_session_strdup(session, gateway->extension);
}
} else {
destination_number = sip->sip_to->a_url->url_user;
}
gateway->ib_calls++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论