From b55ba88380145c135019569b5f1eb2f9a506aa0b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 14 Jul 2010 18:59:42 -0500 Subject: [PATCH] skip runs when messages are not needed --- src/mod/applications/mod_fifo/mod_fifo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 6162bb4ad8..6ab262253f 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -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");