From: Automerge script Date: Wed, 15 Mar 2006 14:06:15 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.6-netsec~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e338e72ba92158682b230f1ea9d85e706bc5a25;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@13062 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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);