diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 844b7b2bba..00e9a18e88 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10810,10 +10810,18 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, int found = 0; char *mailbox = NULL; int mailboxsize = 0; + char *eventparam; char *event = get_header(req, "Event"); /* Get Event package name */ char *accept = get_header(req, "Accept"); + /* Find parameters to Event: header value and remove them for now */ + eventparam = strchr(event, ";"); + if (eventparam) { + *eventparam = '\0'; + eventparam++; + } + if (!strcmp(event, "message-summary") && !strcmp(accept, "application/simple-message-summary")) { mailbox = mailboxbuf; mailboxsize = sizeof(mailboxbuf);