Fix retransmission on BYE

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent c88abff66a
commit d6b38a8b3b

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

Loading…
Cancel
Save