Merged revisions 66414 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 16:19:53 +0000 (16:19 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 16:19:53 +0000 (16:19 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66414 | oej | 2007-05-29 18:07:44 +0200 (Tue, 29 May 2007) | 2 lines

Don't reset hangupcause if we already have one

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66433 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 80a5424..7350779 100644 (file)
@@ -2096,7 +2096,7 @@ static int retrans_pkt(void *data)
                        usleep(1);
                        sip_pvt_lock(pkt->owner);
                }
-               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?