aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-03 17:52:11 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-03 17:52:11 +0000
commita482f0563f2c1cdd539682f6d91a17ee18518c32 (patch)
tree3e43c900e186412df5d01175a98ff14c166ee751 /channels
parente6431eb38c8c0789afdf04ba036483e25f4a3692 (diff)
Don't add hangup cause on non-final responses. (Imported from 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17075 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 84302ce2d..ebb57d150 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4365,7 +4365,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);