]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't reset hangupcause if we already have one
authorOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 16:07:44 +0000 (16:07 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 16:07:44 +0000 (16:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e93ee3782e4fbbfec68dc208652092e9c06d53f1..b7305697228f06cdc3f22f2399bc4c5e48355694 100644 (file)
@@ -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?