From: Automerge script Date: Mon, 3 Apr 2006 18:04:56 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.7-netsec~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8839755956ecccfd8415e8e215192b7595c11c07;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@17102 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 85880cdcc6..fb557072ca 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4179,7 +4179,7 @@ static int __transmit_response(struct sip_pvt *p, char *msg, struct sip_request 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);