]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: filter sip mwi events
authorNathan Neulinger <nneul@neulinger.org>
Wed, 31 Jul 2013 22:16:43 +0000 (17:16 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Wed, 31 Jul 2013 22:16:43 +0000 (17:16 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 72cc82f9fadebd1d4a45de12f375caca89c45823..165624a3033b298f353b1c8e27221bd0324f434d 100644 (file)
@@ -2253,6 +2253,10 @@ static void skinny_message_waiting_event_handler(switch_event_t *event)
                return;
        }
 
+       if (!strncmp("sip:", account, 4)) {
+               return;
+       }
+
        if (!(yn = switch_event_get_header(event, "mwi-messages-waiting"))) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Missing required Header 'MWI-Messages-Waiting'\n");
                return;