]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_fifo: Explain session message unbridge constant
authorTravis Cross <tc@traviscross.com>
Tue, 27 May 2014 22:33:05 +0000 (17:33 -0500)
committerTravis Cross <tc@traviscross.com>
Wed, 28 May 2014 01:32:11 +0000 (01:32 +0000)
src/mod/applications/mod_fifo/mod_fifo.c

index fd25b3248ff7b363611cc844febc0b6b518df476..48b02422aa9685bd72e43708f60deca7b3cbc17d 100644 (file)
@@ -1190,6 +1190,14 @@ static switch_status_t messagehook (switch_core_session_t *session, switch_core_
        case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
                if (msg->numeric_arg == 42) {
                        /* See audio_bridge_thread() for source of 42 constant. */
+                       /* When a session is interrupted to execute an application
+                          (e.g. by uuid_execute) we need to tell everything in FS
+                          to unbridge the channel (e.g. to turn on the
+                          jitterbuffer) but we need mod_fifo not to see the
+                          unbridge because we don't want fifo to stop tracking
+                          the call.  So this magic number is a complete hack to
+                          make this happen.  So we ignore it here and simply fall
+                          through. */
                        goto end;
                }
                if ((caller_session = switch_core_session_locate(msg->string_arg))) {