Fix retransmission on BYE
authorMark Spencer <markster@digium.com>
Tue, 8 Apr 2003 03:03:56 +0000 (03:03 +0000)
committerMark Spencer <markster@digium.com>
Tue, 8 Apr 2003 03:03:56 +0000 (03:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@773 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4875200..9cd004b 100755 (executable)
@@ -362,7 +362,7 @@ static int retrans_pkt(void *data)
        struct sip_pkt *pkt=data;
        int res = 0;
        ast_pthread_mutex_lock(&pkt->owner->lock);
-       if (!pkt->owner->needdestroy) {
+       if (1 /* !p->owner->needdestroy */) {
                if (pkt->retrans < MAX_RETRANS) {
                        pkt->retrans++;
                        if (sipdebug) {
@@ -738,6 +738,8 @@ static void __sip_destroy(struct sip_pvt *p, int lockowner)
 {
        struct sip_pvt *cur, *prev = NULL;
        struct sip_pkt *cp;
+       if (sipdebug)
+               ast_log(LOG_DEBUG, "Destorying call '%s'\n", p->callid);
        if (p->stateid > -1)
                ast_extension_state_del(p->stateid, NULL);
        if (p->initid > -1)