[asterisk-commits] branch 1.2 r17074 -
/branches/1.2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 3 10:49:19 MST 2006
Author: oej
Date: Mon Apr 3 12:49:17 2006
New Revision: 17074
URL: http://svn.digium.com/view/asterisk?rev=17074&view=rev
Log:
Ugly patch to avoid hangup causes in non-final responses
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=17074&r1=17073&r2=17074&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Apr 3 12:49:17 2006
@@ -4141,7 +4141,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