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

fix parser err

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10142 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 432c89a5
......@@ -917,12 +917,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
end = switch_find_end_paren(p, '[', ']');
}
if (end && p && *p == ',') {
if (end && p < end && *p == ',') {
*p = '|';
}
if (p == end) {
e = NULL;
end = NULL;
}
p++;
......@@ -954,6 +954,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
} else {
vdata = NULL;
}
printf("WTF [%s][%s]\n", vdata, chan_type);
if ((chan_data = strchr(chan_type, '/')) != 0) {
*chan_data = '\0';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论