[asterisk-commits] trunk r13027 - in /trunk: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Mar 15 06:06:51 MST 2006


Author: oej
Date: Wed Mar 15 07:06:48 2006
New Revision: 13027

URL: http://svn.digium.com/view/asterisk?rev=13027&view=rev
Log:
Import of rev 13026 from 1.2 branch: Fix parameters to event: header
in SUBSCRIBE request

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=13027&r1=13026&r2=13027&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Mar 15 07:06:48 2006
@@ -10848,9 +10848,17 @@
 		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;



More information about the asterisk-commits mailing list