I&#39;d probably need to see this first hand.<br>IM or email me privately to arrange for us to visit your box.<br><br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 10:07 PM, Alex Green <span dir="ltr">&lt;<a href="mailto:alexg@etherstack.com">alexg@etherstack.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Anthony,<br>
<br>
The box with the TE210p has:<br>
----------------------------<br>
Zaptel 1.4.12<br>
Libpri 1.4.10<br>
Openzap via Freeswitch 1.0.3<br>
I initially had the two ports of the TE210p connected together for<br>
testing. I had D-Channel issues fairly often.<br>
<br>
Here is the interesting bit: I noticed that the code around line 117 in<br>
lpwrap_pri.c had changed over the last 4 months (since version 693). I<br>
updated openzap to the head, recompiled and my little test app making<br>
calls from one PRI to the other on the TE210p worked fine (or so I<br>
thought, see below).<br>
<br>
Vanilla Freeswitch box with TE110p:<br>
-----------------------------------<br>
Zaptel rev 4630 (from <a href="http://wiki.freeswitch.org/wiki/Zaptel_Tutorial" target="_blank">http://wiki.freeswitch.org/wiki/Zaptel_Tutorial</a>)<br>
Libpri 1.4.10.1<br>
Freeswitch 1.0.3<br>
Connect the two together and D-channel errors, which was no surprise on<br>
my previous experience, so I updated Freeswitch to the trunk. At this<br>
point I still got D-channel errors as reported in the last email.<br>
<br>
<br>
Thanks again, -alex<br>
<div class="im"><br>
<br>
Anthony Minessale wrote:<br>
&gt; Which revision of FS/OpenZAP/Zaptel are you using respectively?<br>
&gt;<br>
&gt; All the errors after your shutdown are not really clues they are just<br>
&gt; typical<br>
&gt; things that happen when you close the socket but the endless D-READ FAIL<br>
&gt; sounds strange.  How often does this happen?<br>
&gt;<br>
&gt; We mostly have sangoma users so we have less info on Digium cards<br>
&gt; but I can try to investigate your problem for you if you answer my first<br>
&gt; round of questions.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 22, 2009 at 10:16 PM, Alex Green &lt;<a href="mailto:alexg@etherstack.com">alexg@etherstack.com</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:alexg@etherstack.com">alexg@etherstack.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On a number of occasions using openzap with libpri the D channel seems<br>
&gt;     to some how lose synchronisation resulting in &#39;D-READ FAIL! []&#39;.<br>
&gt;<br>
&gt;     Background:<br>
&gt;     -----------<br>
&gt;     On one side is a very standard Linux box with Freeswitch and a TE110p<br>
&gt;     card. The signalling is set up to be a Network E1. On the other side of<br>
&gt;     the PRI coax cable is a box I am experimenting with has openzap<br>
&gt;     interacting with a small application of my own. This side is set up to<br>
&gt;     be a CPE E1 (using a TE210p). This problem has happened to me previously<br>
&gt;     using freeswtich/openzap but scouring the internet has found nought. I<br>
&gt;     am concerned that I have done something silly, but I have double checked<br>
&gt;     everything. The error is printed from lpwrap_pri.c line 117.<br>
&gt;<br>
&gt;     Symptoms:<br>
&gt;     ---------<br>
&gt;     On freeswitch &quot;D-READ FAIL! []&quot; is just printed to screen over and over<br>
&gt;     again. After issuing a shutdown the following clue is given after<br>
&gt;     stopping mod_openzap:<br>
&gt;     2009-07-22 17:11:07 [INFO] zap_io.c:257 zap_channel_destroy() Closing<br>
&gt;     channel zt:1:30 fd:67<br>
&gt;     2009-07-22 17:11:07 [INFO] zap_io.c:257 zap_channel_destroy() Closing<br>
&gt;     channel zt:1:31 fd:68<br>
&gt;     D-READ FAIL! []<br>
&gt;     Error = -1<br>
&gt;     Lpwrap Run Pri: : Bad file descriptor<br>
&gt;<br>
&gt;     On Openzap (without freeswitch) the following happens:<br>
&gt;     [CRIT] src/ozmod/ozmod_libpri/lpwrap_pri.c:122 __pri_lpwrap_read() span<br>
&gt;     5 D-READ FAIL! []<br>
&gt;     [ERROR] src/ozmod/ozmod_libpri/ozmod_libpri.c:88 s_pri_error() !!<br>
&gt;     Received short I-frame (expected 4, got -3)<br>
&gt;     [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:812 process_event() EVENT<br>
&gt;     [ALARM_TRAP][7][5:1] STATE [PROGRESS_MEDIA]<br>
&gt;     [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:821 process_event()<br>
&gt;     Changing state on 5:1 from PROGRESS_MEDIA to RESTART<br>
&gt;     [WARNING] src/ozmod/ozmod_libpri/ozmod_libpri.c:831 process_event()<br>
&gt;     channel 5:1 (1:1) has alarms! [YELLOW/LOOP]<br>
&gt;     [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:812 process_event() EVENT<br>
&gt;     [ALARM_TRAP][7][5:2] STATE [DOWN]<br>
&gt;     ...The last two are printed repeatedly.<br>
&gt;<br>
&gt;<br>
&gt;     For some extra information I have summarised my setup below. Any help on<br>
&gt;     this (surly I am not the first person to experience this!) is greatly<br>
&gt;     appreciated. Many thanks, -alex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Setup:<br>
&gt;     ------<br>
&gt;     *Zaptel.conf*<br>
&gt;     Box1 (Freeswitch Network E1) has &#39;span=1,1,0,ccs,hdb3&#39;<br>
&gt;     Box2 (Openzap CPE E1) has &#39;span=1,0,0,ccs,hdb3&#39;<br>
&gt;     I have experimented with crc4 on/off and timing of 1/2.<br>
&gt;<br>
&gt;     *openzap.conf* similar on both sides.<br>
&gt;     [span zt]<br>
&gt;     number =&gt; 1<br>
&gt;     trunk_type =&gt; e1<br>
&gt;     b-channel =&gt; 1-15,17-31<br>
&gt;     d-channel=&gt; 16<br>
&gt;<br>
&gt;     *openzap.conf.xml*<br>
&gt;     Box1 (Freeswitch Network E1).<br>
&gt;        &lt;libpri_spans&gt;<br>
&gt;          &lt;span id=&quot;1&quot;&gt;<br>
&gt;            &lt;param name=&quot;node&quot; value=&quot;network&quot;/&gt;<br>
&gt;            &lt;param name=&quot;switch&quot; value=&quot;euroisdn&quot;/&gt;<br>
&gt;            &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
&gt;            &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>
&gt;          &lt;/span&gt;<br>
&gt;        &lt;/libpri_spans&gt;<br>
&gt;<br>
&gt;     Box2 (Openzap CPE) passes the following to libpri (via<br>
&gt;     zap_configure_span);<br>
&gt;        &quot;node&quot;, &quot;cpe&quot;,<br>
&gt;        &quot;switch&quot;, &quot;euroisdn&quot;,<br>
&gt;        &quot;dp&quot;, &quot;unknown&quot;,<br>
&gt;        &quot;l1&quot;, &quot;alaw&quot;,<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     FreeSWITCH-dev mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
</div></div>&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt; Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>&gt;<br>
<div class="im">&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>&gt;<br>
&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> &lt;<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>&gt; #freeswitch<br>
<div class="im">&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
</div>&gt; &lt;mailto:<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>&gt;<br>
<div class="im">&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>&gt; &lt;<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">http://iax:guest@conference.freeswitch.org/888</a>&gt;<br>
<div class="im">&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
</div>&gt; &lt;mailto:<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>&gt;<br>
&gt; pstn:213-799-1400<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="h5">&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-dev mailing list<br>
&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>