automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@13062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge script
2006-03-15 14:06:15 +00:00
parent 10fe0e9c67
commit 5e338e72ba

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