mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 22:49:45 +00:00
FSCORE-529
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16401 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2e119b2db9
commit
f695453072
@ -1887,13 +1887,18 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
if (oglobals.session) {
|
if (oglobals.session) {
|
||||||
switch_event_header_t *hi;
|
switch_event_header_t *hi;
|
||||||
const char *cdr_total_var;
|
const char *cdr_total_var;
|
||||||
|
const char *cdr_var;
|
||||||
|
|
||||||
if ((cdr_total_var = switch_channel_get_variable(caller_channel, "failed_xml_cdr_total"))) {
|
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);
|
int tmp = atoi(cdr_total_var);
|
||||||
if (tmp > 0) {
|
if (tmp > 0) {
|
||||||
cdr_total = tmp;
|
cdr_total = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Copy all the missing applicable channel variables from A-leg into the event */
|
/* Copy all the missing applicable channel variables from A-leg into the event */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user