]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9794: Set the result cause of an originate failed cause to variable originate_fail...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 30 Nov 2016 20:19:43 +0000 (15:19 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 30 Nov 2016 20:19:43 +0000 (15:19 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index 69766c27d336f622fc10381e343d495ae70d27a8..8c998db29c5465f23fd7dad3bc266e3c003017d9 100644 (file)
@@ -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 {