Make retrans timer less aggressive
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
c46c83bc96
commit
f38c6ee7fa
|
@ -1255,14 +1255,15 @@ static void apply_peer(struct dundi_transaction *trans, struct dundi_peer *p)
|
||||||
trans->flags |= FLAG_ENCRYPT;
|
trans->flags |= FLAG_ENCRYPT;
|
||||||
if (p->maxms) {
|
if (p->maxms) {
|
||||||
trans->autokilltimeout = p->maxms;
|
trans->autokilltimeout = p->maxms;
|
||||||
|
trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
|
||||||
if (p->lastms > 1) {
|
if (p->lastms > 1) {
|
||||||
trans->retranstimer = p->lastms * 2;
|
trans->retranstimer = p->lastms * 2;
|
||||||
if (trans->retranstimer > DUNDI_DEFAULT_RETRANS_TIMER)
|
|
||||||
trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
|
|
||||||
/* Keep it from being silly */
|
/* Keep it from being silly */
|
||||||
if (trans->retranstimer < 10)
|
if (trans->retranstimer < 150)
|
||||||
trans->retranstimer = 10;
|
trans->retranstimer = 150;
|
||||||
}
|
}
|
||||||
|
if (trans->retranstimer > DUNDI_DEFAULT_RETRANS_TIMER)
|
||||||
|
trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
|
||||||
} else
|
} else
|
||||||
trans->autokilltimeout = global_autokilltimeout;
|
trans->autokilltimeout = global_autokilltimeout;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue