From: Anthony Minessale Date: Wed, 14 Jul 2010 23:59:42 +0000 (-0500) Subject: skip runs when messages are not needed X-Git-Tag: v1.2-rc1~544^2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28bc54a08d37b78239b1009f92a8a43a8b9bb7a9;p=thirdparty%2Ffreeswitch.git skip runs when messages are not needed --- 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");