in SUBSCRIBE request
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13027
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
char mailboxbuf[256]="";
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);