]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skip runs when messages are not needed
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 14 Jul 2010 23:59:42 +0000 (18:59 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 14 Jul 2010 23:59:42 +0000 (18:59 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index 6162bb4ad8540524a447632bbd7d0d68b6cbb7a4..6ab262253fc5e44e3216648f43b50a9fdc2cbe37 100644 (file)
@@ -688,6 +688,14 @@ static switch_status_t messagehook (switch_core_session_t *session, switch_core_
        const char *outbound_id;
        char *sql;
 
+       switch (msg->message_id) {
+    case SWITCH_MESSAGE_INDICATE_BRIDGE:
+    case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
+        break;
+    default:
+        return SWITCH_STATUS_SUCCESS;
+    }
+
        channel = switch_core_session_get_channel(session);
        outbound_id = switch_channel_get_variable(channel, "fifo_outbound_uuid");