[libpri-commits] mattf: branch mattf/libpri-1.4-q921-rewrite r1365 - /team/mattf/libpri-1.4-q9...
SVN commits to the libpri project
libpri-commits at lists.digium.com
Mon Dec 7 17:21:42 CST 2009
Author: mattf
Date: Mon Dec 7 17:21:38 2009
New Revision: 1365
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1365
Log:
Make sure that our k value is correct, as well as include T309 support by default.
Modified:
team/mattf/libpri-1.4-q921-rewrite/pri.c
Modified: team/mattf/libpri-1.4-q921-rewrite/pri.c
URL: http://svnview.digium.com/svn/libpri/team/mattf/libpri-1.4-q921-rewrite/pri.c?view=diff&rev=1365&r1=1364&r2=1365
==============================================================================
--- team/mattf/libpri-1.4-q921-rewrite/pri.c (original)
+++ team/mattf/libpri-1.4-q921-rewrite/pri.c Mon Dec 7 17:21:38 2009
@@ -144,7 +144,12 @@
/* Set timer values to standard defaults. Time is in ms. */
ctrl->timers[PRI_TIMER_N200] = 3; /* Max numer of Q.921 retransmissions */
ctrl->timers[PRI_TIMER_N202] = 3; /* Max numer of transmissions of the TEI identity request message */
- ctrl->timers[PRI_TIMER_K] = 7; /* Max number of outstanding I-frames */
+
+ if (ctrl->bri == 1)
+ ctrl->timers[PRI_TIMER_K] = 1; /* Max number of outstanding I-frames */
+ else
+ ctrl->timers[PRI_TIMER_K] = 7; /* Max number of outstanding I-frames */
+
ctrl->timers[PRI_TIMER_T200] = 1000; /* Time between SABME's */
ctrl->timers[PRI_TIMER_T202] = 10 * 1000; /* Min time between transmission of TEI Identity request messages */
ctrl->timers[PRI_TIMER_T203] = 10 * 1000; /* Max time without exchanging packets */
@@ -154,6 +159,7 @@
ctrl->timers[PRI_TIMER_TM20] = 2500; /* Max time awaiting XID response - Q.921 Appendix IV */
ctrl->timers[PRI_TIMER_NM20] = 3; /* Number of XID retransmits - Q.921 Appendix IV */
ctrl->timers[PRI_TIMER_T303] = 4 * 1000; /* Length between SETUP retransmissions and timeout */
+ ctrl->timers[PRI_TIMER_T309] = 6000; /* Time to wait before clearing calls in case of D-channel transient event. Q.931 specifies 6-90 seconds */
ctrl->timers[PRI_TIMER_T_HOLD] = 4 * 1000; /* Wait for HOLD request response. */
ctrl->timers[PRI_TIMER_T_RETRIEVE] = 4 * 1000;/* Wait for RETRIEVE request response. */
More information about the libpri-commits
mailing list