[asterisk-commits] branch 1.2 r13026 - /branches/1.2/channels/chan_sip.c

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


Author: oej
Date: Wed Mar 15 07:01:23 2006
New Revision: 13026

URL: http://svn.digium.com/view/asterisk?rev=13026&view=rev
Log:
Issue #6728: Remove parameters to Event: header on SUBSCRIBE requests

Modified:
    branches/1.2/channels/chan_sip.c

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



More information about the asterisk-commits mailing list