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

FSCORE-529

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16401 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 2e119b2d
......@@ -1887,11 +1887,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (oglobals.session) {
switch_event_header_t *hi;
const char *cdr_total_var;
const char *cdr_var;
if ((cdr_total_var = switch_channel_get_variable(caller_channel, "failed_xml_cdr_total"))) {
int tmp = atoi(cdr_total_var);
if (tmp > 0) {
cdr_total = tmp;
if (cdr_var = switch_channel_get_variable(caller_channel, "failed_xml_cdr_prefix")) {
char buf[128] = "";
switch_snprintf(buf, sizeof(buf), "%s_total", cdr_var);
if ((cdr_total_var = switch_channel_get_variable(caller_channel, buf))) {
int tmp = atoi(cdr_total_var);
if (tmp > 0) {
cdr_total = tmp;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论