FS-3866 this should take care of the unwanted presence packets with mwi sub

This commit is contained in:
Anthony Minessale 2012-02-10 12:23:58 -06:00
parent 60fd5f9a73
commit b9b72661ea
1 changed files with 1 additions and 1 deletions

View 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);