[Asterisk-cvs] asterisk/pbx pbx_dundi.c,1.13,1.14
markster at lists.digium.com
markster at lists.digium.com
Fri Oct 29 17:44:37 CDT 2004
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv24305/pbx
Modified Files:
pbx_dundi.c
Log Message:
Make retrans timer less aggressive
Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- pbx_dundi.c 29 Oct 2004 13:04:37 -0000 1.13
+++ pbx_dundi.c 29 Oct 2004 21:47:42 -0000 1.14
@@ -1255,14 +1255,15 @@
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;
}
More information about the svn-commits
mailing list