From 9f15005143e78f6731b6a3838156782cbeabe19d Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Tue, 29 May 2007 16:07:44 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?