FS-5619 --resolve

This commit is contained in:
Anthony Minessale 2013-07-19 13:25:54 -05:00
parent d88b2ed793
commit ef28a88c75
1 changed files with 10 additions and 0 deletions

View File

@ -1676,6 +1676,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
*cause = SWITCH_CAUSE_NO_ANSWER;
}
if (channel) {
if (*cause == SWITCH_CAUSE_SUCCESS) {
switch_channel_set_variable(channel, "originate_disposition", "success");
} else {
switch_channel_set_variable(channel, "originate_disposition", "failure");
switch_channel_set_variable(channel, "hangup_cause", switch_channel_cause2str(*cause));
}
}
if (var_event && var_event != ovars) {
switch_event_destroy(&var_event);
}