[asterisk-commits] oej: trunk r39132 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Aug 7 02:22:44 MST 2006


Author: oej
Date: Mon Aug  7 04:22:43 2006
New Revision: 39132

URL: http://svn.digium.com/view/asterisk?rev=39132&view=rev
Log:
Issue #7651 - always send subscription-state (AuPix)
  Small change to the fix in the report.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=39132&r1=39131&r2=39132&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Aug  7 04:22:43 2006
@@ -6708,8 +6708,7 @@
 	reqprep(&req, p, SIP_NOTIFY, 0, 1);
 	snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
 	add_header(&req, "Event", tmp);
-	if (terminate)
-		add_header(&req, "Subscription-state", "terminated;reason=noresource");
+	add_header(&req, "Subscription-state", terminate ? "terminated;reason=noresource" : "active");
 	add_header(&req, "Content-Type", "message/sipfrag;version=2.0");
 	add_header(&req, "Allow", ALLOWED_METHODS);
 	add_header(&req, "Supported", SUPPORTED_EXTENSIONS);



More information about the asterisk-commits mailing list