]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Wed, 15 Mar 2006 14:06:15 +0000 (14:06 +0000)
committerAutomerge script <automerge@asterisk.org>
Wed, 15 Mar 2006 14:06:15 +0000 (14:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@13062 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 844b7b2bba00f6ec9f372d62474ee1b1814c6f2e..00e9a18e88a66ddae600cfc87e90f0ffe2056f80 100644 (file)
@@ -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);