From: Anthony Minessale Date: Fri, 10 Feb 2012 18:23:58 +0000 (-0600) Subject: FS-3866 this should take care of the unwanted presence packets with mwi sub X-Git-Tag: v1.2-rc1~19^2^2~68^2~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b72661eab7db70310d267fdbfca362cb971587;p=thirdparty%2Ffreeswitch.git FS-3866 this should take care of the unwanted presence packets with mwi sub --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index b529b076f4..7221d25f02 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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);