diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-03 18:04:56 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-03 18:04:56 +0000 |
commit | f82e2d94cba23eb6d1ed37e6a03289d60c555e76 (patch) | |
tree | 87de8c9204afdc51c5d7bcfce7cea430cd34f64a | |
parent | 07780c68d283db07997a75f99eafd1b79a0af904 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@17102 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 85880cdcc..fb557072c 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); |