Merge pull request #1086 in FS/freeswitch from ~MOCHOUINARD/freeswitch:FS-9794 to master
* commit 'ac14496c73c8f15e1b433189fe6bf78e31b772ec': FS-9794: Set the result cause of an originate failed cause to variable originate_failed_cause
This commit is contained in:
commit
5ec6248dff
|
@ -3475,7 +3475,10 @@ SWITCH_STANDARD_APP(audio_bridge_function)
|
||||||
if (fail) {
|
if (fail) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Originate Failed. Cause: %s\n", switch_channel_cause2str(cause));
|
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);
|
switch_channel_handle_cause(caller_channel, cause);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue