diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-03 17:49:17 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-03 17:49:17 +0000 |
commit | a8fec496279a89495808805fff32ff405174fdaf (patch) | |
tree | 13b4106877eb0324608457139ef6c2dbf3afedb2 /channels/chan_sip.c | |
parent | 862c5ca2c205d84093f91f36600a9dca9f31829f (diff) |
Ugly patch to avoid hangup causes in non-final responses
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@17074 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-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 bdd009227..4b3095414 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4141,7 +4141,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); |