From: Marc Olivier Chouinard Date: Wed, 30 Nov 2016 20:19:43 +0000 (-0500) Subject: FS-9794: Set the result cause of an originate failed cause to variable originate_fail... X-Git-Tag: v1.8.0~1014^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac14496c73c8f15e1b433189fe6bf78e31b772ec;p=thirdparty%2Ffreeswitch.git FS-9794: Set the result cause of an originate failed cause to variable originate_failed_cause --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 69766c27d3..8c998db29c 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -3463,7 +3463,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 {