Hello Neil,<div><br><div>On Fri, Dec 14, 2012 at 9:26 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-family:arial,sans-serif;font-size:13px">Hi All,</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I recently upgraded my box to Ubuntu 12.04 LTS and re-installed FS from latest git. I&#39;m using a Sangoma A108DE card, interfacing with FS with freetdm. Since upgrade, I&#39;m getting a weird behavior: whenever I first start up freeswitch, the *first call* I make to any of my PRI lines does not go through. The error is pasted below. Subsequent calls go through fine, without the error. So this problem only occurs anytime I have to restart FS; I have to call each of the lines manually to get each of them to &quot;wake up&quot;. </div>
</blockquote><div><br></div><div>It would seem we receive a disconnect just after the setup message. In order to determine if the disconnect really comes from the network, we need protocol traces.</div><div><br></div><div>
Try enabling Q.931 and Q.921 traces just after you restart freeswitch.</div><div><br></div><div>fscli&gt; ftdm sangoma_isdn trace q921 &lt;freetdm-span-name&gt;</div><div>fscli&gt; ftdm sangoma_isdn trace q931 &lt;freetdm-span-name&gt;</div>
<div><br></div><div>The &lt;freetdm-span-name&gt; argument is the span name you configured in freetdm.conf.xml</div><div><br></div><div>Then also enable some pcap traces at the kernel driver level.</div><div><br></div><div>
wanpipemon  -i w1g1 -pcap -pcap_file w1g1.pcap -prot ISDN -full -systime -c trd</div><div class="gmail_quote"><br></div>This assumes your span is the first one (w1g1), adjust as necessary.</div><div class="gmail_quote"><br>
</div><div class="gmail_quote">Start all the traces just after you started FreeSWITCH. Then place a single call in one of your lines (the one you report always fail), then wait a few seconds, and place the second call that should succeed. Finally stop the traces and send them to <a href="mailto:techdesk@sangoma.com">techdesk@sangoma.com</a> with your description of the problem. Tell them you already talked to me on the FreeSWITCH mailing lists.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Cheers,</div><div class="gmail_quote"><br clear="all"><div><table border="0" cellspacing="0" cellpadding="0" width="648" style="width:486.3pt;border-collapse:collapse">
<tbody><tr style="height:60.55pt"><td style="border-style:dotted none none;padding:1.45pt 5.75pt;height:60.55pt"><p style="margin:0px;line-height:15px"><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)">Moises Silva<br>
</span></b><b><i><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Manager, Software Engineering</span></i></b><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)"></span></b></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">Sangoma Technologies</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(255,192,0)"></span></p>
</td><td width="187" style="width:140.45pt;border-style:dotted none none;padding:1.45pt 5.75pt;height:60.55pt"><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><br>
t.   +1 800 388 2475 (N. America)</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">t.   +1 905 474 1990 x128</span></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">f.   +1 905 474 9223</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(31,73,125)"> </span></p>
</td><td width="149" rowspan="2" style="width:111.55pt;border-style:dotted none;border-top-color:rgb(128,176,214);border-top-width:1pt;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding:1.45pt 5.75pt;height:60.55pt">
<p style="margin:0px;line-height:15px"><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:initial"><img border="0" width="96" height="15"></span></b></a><span style="color:rgb(31,73,125)"></span></p>
</td></tr><tr><td width="500" colspan="2" style="width:374.75pt;border-style:none none dotted;padding:1.45pt 5.75pt"><p style="margin:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Products</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Solutions</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Events</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Contact</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Wiki</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Facebook</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Twitter</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">YouTube</span></a><span style="font-size:8pt;line-height:12px;color:rgb(31,73,125)"></span></p>
</td></tr></tbody></table><p style="margin:0px"><br></p></div><br><br><br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Judging by the error, my first thought is that this is a Sangoma/FreeTDM/Wanpipe driver issue. Can a real expert weigh in? Happy to provide more logs/output. Thanks!</div>


<div style="font-family:arial,sans-serif;font-size:13px">Neil</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">===================</div><div style="font-family:arial,sans-serif;font-size:13px">


<div>2012-12-15 07:38:01.241594 [INFO] ftmod_sangoma_isdn_stack_rcv.c:96 [s4c1][4:1] Received SETUP (suId:1 suInstId:0 spInstId:59)</div><div>2012-12-15 07:38:05.241594 [WARNING] ftmod_sangoma_isdn_stack_rcv.c:862 [SNGISDN Q931] s4: Protocol: Unknown Event Code(2): Incomp Msg(276)</div>


<div>2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_rcv.c:232 [s4c1][4:1] Received DISCONNECT (suId:1 suInstId:0 spInstId:59)</div><div>2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_hndl.c:153 [s4c1][4:1] Incoming call: Called No:[61608300] Calling No:[919586550654]</div>


<div>2012-12-15 07:38:09.241595 [NOTICE] switch_channel.c:968 New Channel FreeTDM/4:1/61608300 [458fb2e2-465c-11e2-b550-cfadc9bb1b74]</div><div>2012-12-15 07:38:09.241595 [NOTICE] mod_freetdm.c:425 Hangup FreeTDM/4:1/61608300 [CS_INIT] [LOSE_RACE]</div>


<div>2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_out.c:441 [s4c1][4:1] Sending RELEASE/RELEASE COMPLETE (suId:1 suInstId:59 spInstId:59)</div><div>2012-12-15 07:38:09.241595 [NOTICE] switch_core_session.c:1506 Session 59 (FreeTDM/4:1/61608300) Ended</div>


<div>2012-12-15 07:38:09.241595 [NOTICE] switch_core_session.c:1510 Close Channel FreeTDM/4:1/61608300 [CS_DESTROY]</div><div>2012-12-15 07:38:09.281595 [INFO] ftmod_sangoma_isdn_stack_rcv.c:267 [s4c1][4:1] Received RELEASE/RELEASE COMPLETE (suId:1 suInstId:59 spInstId:59)</div>


</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></div></div></div>