]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3866 this should take care of the unwanted presence packets with mwi sub
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 18:23:58 +0000 (12:23 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 18:23:58 +0000 (12:23 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index b529b076f4a29a57aba83c9482ae6261b6e852ab..7221d25f022c065af8ee5293f4bdce6171f36ea9 100644 (file)
@@ -3546,7 +3546,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "sub-call-id", call_id);
                                        switch_event_fire(&sevent);
                                }
-                       } else {
+                       } else if (!strcasecmp(event, "presence")) {
                                if (switch_event_create(&sevent, SWITCH_EVENT_PRESENCE_IN) == SWITCH_STATUS_SUCCESS) {
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "proto", SOFIA_CHAT_PROTO);
                                        switch_event_add_header_string(sevent, SWITCH_STACK_BOTTOM, "login", profile->name);