<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">Its a bug probably due to which only 2-3 channels get started. You will have to make little changes in the source and recompile mod_freetdm and it will be done. Just follow these steps:</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">
<ol><li style="margin-left:15px">Go to FS source directory and change dir to this path libs/freetdm/src/ftmod/ftmod_libpri</li><li style="margin-left:15px">change #define T316_TIMEOUT_MS_DEFAULT to 10000</li><li style="margin-left:15px">
#define T316_TIMEOUT_MS_MAX to 300000</li><li style="margin-left:15px">#define T316_ATTEMPT_LIMIT_DEFAULT to 30 (max. channels in PRI lines)</li></ol>After this recompile mod_freetdm and restart freeswitch. You will see channels restarting one by one. Also during this period in which the channels are restart do not make calls as it will show NORMAL_CIRCUIT_CONGESTION. It will take some time to restart the channels and after that your PRI line will be up and running.</div>
<br><div class="gmail_quote">On Thu, Jun 27, 2013 at 12:27 PM, Peter Waldheim <span dir="ltr">&lt;<a href="mailto:struwwelp@gmail.com" target="_blank">struwwelp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I&#39;m currently trying to set up a new freeswitch box and consistently run in a problem with pri-line initialization (I think).<br></div><div>Basically I get &quot;T316 timed out&quot; for all but a very few channels, which get &quot;Channel not opened, proceeding anyway&quot; and become available.<br>

</div><div>This does not seem to happen when using openzap instead of freetdm.<br></div><div></div><div><br>The log file looks like this:<br>2013-06-27 08:25:17.560815 [WARNING] ftmod_libpri.c:1997 [s1c1][1:1] -- T316 timed out, resending RESTART request<br>

.. for all channels<br>2013-06-27 08:25:22.600817 [WARNING] ftdm_io.c:3013 [s1c1][1:1] Channel not opened, proceeding anyway<br>2013-06-27 08:25:47.560814 [WARNING] ftmod_libpri.c:1997 [s1c2][1:2] -- T316 timed out, resending RESTART request<br>

.. for all channels but the first<br>2013-06-27 08:26:22.600778 [WARNING] ftdm_io.c:3013 [s1c3][1:3] Channel not opened, proceeding anyway<br>2013-06-27 08:26:47.560815 [ERR] ftmod_libpri.c:1993 [s1c4][1:4] -- T316 timed out, channel reached restart attempt limit &#39;3&#39; and is suspended<br>

2013-06-27 08:26:47.560815 [ERR] ftmod_libpri.c:1993 [s1c5][1:5] -- T316 timed out, channel reached restart attempt limit &#39;3&#39; and is suspended<br>.. for all channels but the first three or so<br><br></div><div>Eventually the first 3 or so channels are available.<br>

</div><br></div>Any help with this problem would be greatly appreciated.<br><br></div>Regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Peter<br></font></span></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,0,102);font-family:georgia,serif">Ashish Gautam</span><br><font face="georgia, serif" color="#000066"><br>Nucleus Microsystems (Pvt.) Ltd.<br>
<br>Ph. 011 47574758</font>