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

get chan id correctly from dial string

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@367 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 1992ccae
......@@ -802,8 +802,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
dest = p + 1;
span_id = atoi(outbound_profile->destination_number);
if (!switch_strlen_zero(dest)) {
chan_id = atoi(dest);
if ((p = strchr(dest, '/'))) {
chan_id = atoi(dest);
dest = p + 1;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论