[asterisk-commits] oej: branch 1.4 r297185 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 2 02:37:23 CST 2010


Author: oej
Date: Thu Dec  2 02:37:17 2010
New Revision: 297185

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297185
Log:
If we get a NOTIFY from a non-existing subscription we should answer with 481, not bad event.

If we answer 481 the subscription that we don't want will be cancelled.


Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=297185&r1=297184&r2=297185
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Thu Dec  2 02:37:17 2010
@@ -5031,7 +5031,7 @@
 		} else if (intended_method == SIP_NOTIFY) {
 			/* We do not support out-of-dialog NOTIFY either,
 		   	like voicemail notification, so cancel that early */
-			transmit_response_using_temp(callid, sin, 1, intended_method, req, "489 Bad event");
+			transmit_response_using_temp(callid, sin, 1, intended_method, req, "481 No subscription");
 		} else {
 			/* Ok, time to create a new SIP dialog object, a pvt */
 			if ((p = sip_alloc(callid, sin, 1, intended_method)))  {




More information about the asterisk-commits mailing list