FS-9794: Set the result cause of an originate failed cause to variable originate_failed_cause

This commit is contained in:
Marc Olivier Chouinard 2016-11-30 15:19:43 -05:00 committed by Mike Jerris
parent 44ab5cb413
commit 251d59f167

View File

@ -3408,7 +3408,10 @@ SWITCH_STANDARD_APP(audio_bridge_function)
if (fail) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Originate Failed. Cause: %s\n", switch_channel_cause2str(cause));
switch_channel_set_variable(caller_channel, "originate_failed_cause", switch_channel_cause2str(cause));
switch_channel_handle_cause(caller_channel, cause);
return;
} else {