diff options
author | Olle Johansson <oej@edvina.net> | 2006-04-03 17:52:11 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-04-03 17:52:11 +0000 |
commit | 5fbe9f80e8d3f089ae444ec9fe867efda2ff0863 (patch) | |
tree | 3e43c900e186412df5d01175a98ff14c166ee751 | |
parent | 67b460d43c89a12816253c43f7a1625503d1af8f (diff) |
Don't add hangup cause on non-final responses. (Imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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 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); |