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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 3 10:52:15 MST 2006


Author: oej
Date: Mon Apr  3 12:52:11 2006
New Revision: 17075

URL: http://svn.digium.com/view/asterisk?rev=17075&view=rev
Log:
Don't add hangup cause on non-final responses. (Imported from 1.2)

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=17075&r1=17074&r2=17075&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Apr  3 12:52:11 2006
@@ -4365,7 +4365,7 @@
 	add_header_contentLength(&resp, 0);
 	/* If we are cancelling an incoming invite for some reason, add information
 		about the reason why we are doing this in clear text */
-	if (p->owner && p->owner->hangupcause) {
+	if (msg[0] != '1' && p->owner && p->owner->hangupcause) {
 		add_header(&resp, "X-Asterisk-HangupCause", ast_cause2str(p->owner->hangupcause));
 	}
 	add_blank_header(&resp);



More information about the asterisk-commits mailing list