mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user