aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-29 21:47:42 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-29 21:47:42 +0000
commitecaeb77ddbaa63a060b0c0dbfae2300124b3b747 (patch)
tree6c58fb1c997d87e9796ef7f287f7b9acc73e178c /pbx
parent477f21a9461a695f7266435cbb83250e69c88c02 (diff)
Make retrans timer less aggressive
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4127 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_dundi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 12a2335a3..07dd70c40 100755
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -1255,14 +1255,15 @@ static void apply_peer(struct dundi_transaction *trans, struct dundi_peer *p)
trans->flags |= FLAG_ENCRYPT;
if (p->maxms) {
trans->autokilltimeout = p->maxms;
+ trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
if (p->lastms > 1) {
trans->retranstimer = p->lastms * 2;
- if (trans->retranstimer > DUNDI_DEFAULT_RETRANS_TIMER)
- trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
/* Keep it from being silly */
- if (trans->retranstimer < 10)
- trans->retranstimer = 10;
+ if (trans->retranstimer < 150)
+ trans->retranstimer = 150;
}
+ if (trans->retranstimer > DUNDI_DEFAULT_RETRANS_TIMER)
+ trans->retranstimer = DUNDI_DEFAULT_RETRANS_TIMER;
} else
trans->autokilltimeout = global_autokilltimeout;
}