From: Olle Johansson Date: Tue, 29 May 2007 16:07:44 +0000 (+0000) Subject: Don't reset hangupcause if we already have one X-Git-Tag: 1.4.5~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f15005143e78f6731b6a3838156782cbeabe19d;p=thirdparty%2Fasterisk.git Don't reset hangupcause if we already have one git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66414 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e93ee3782e..b730569722 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1934,7 +1934,7 @@ static int retrans_pkt(void *data) usleep(1); ast_mutex_lock(&pkt->owner->lock); } - if (pkt->owner->owner) + if (pkt->owner->owner && !pkt->owner->owner->hangupcause) pkt->owner->owner->hangupcause = AST_CAUSE_NO_USER_RESPONSE; if (pkt->method == SIP_BYE) { /* Ok, we're not getting answers on SIP BYE's. Who cares?