[Freeswitch-dev] D-READ FAIL! [] while using openzap with libpri

Anthony Minessale anthony.minessale at gmail.com
Thu Jul 23 05:32:37 PDT 2009


Which revision of FS/OpenZAP/Zaptel are you using respectively?

All the errors after your shutdown are not really clues they are just
typical
things that happen when you close the socket but the endless D-READ FAIL
sounds strange.  How often does this happen?

We mostly have sangoma users so we have less info on Digium cards
but I can try to investigate your problem for you if you answer my first
round of questions.



On Wed, Jul 22, 2009 at 10:16 PM, Alex Green <alexg at etherstack.com> wrote:

> On a number of occasions using openzap with libpri the D channel seems
> to some how lose synchronisation resulting in 'D-READ FAIL! []'.
>
> Background:
> -----------
> On one side is a very standard Linux box with Freeswitch and a TE110p
> card. The signalling is set up to be a Network E1. On the other side of
> the PRI coax cable is a box I am experimenting with has openzap
> interacting with a small application of my own. This side is set up to
> be a CPE E1 (using a TE210p). This problem has happened to me previously
> using freeswtich/openzap but scouring the internet has found nought. I
> am concerned that I have done something silly, but I have double checked
> everything. The error is printed from lpwrap_pri.c line 117.
>
> Symptoms:
> ---------
> On freeswitch "D-READ FAIL! []" is just printed to screen over and over
> again. After issuing a shutdown the following clue is given after
> stopping mod_openzap:
> 2009-07-22 17:11:07 [INFO] zap_io.c:257 zap_channel_destroy() Closing
> channel zt:1:30 fd:67
> 2009-07-22 17:11:07 [INFO] zap_io.c:257 zap_channel_destroy() Closing
> channel zt:1:31 fd:68
> D-READ FAIL! []
> Error = -1
> Lpwrap Run Pri: : Bad file descriptor
>
> On Openzap (without freeswitch) the following happens:
> [CRIT] src/ozmod/ozmod_libpri/lpwrap_pri.c:122 __pri_lpwrap_read() span
> 5 D-READ FAIL! []
> [ERROR] src/ozmod/ozmod_libpri/ozmod_libpri.c:88 s_pri_error() !!
> Received short I-frame (expected 4, got -3)
> [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:812 process_event() EVENT
> [ALARM_TRAP][7][5:1] STATE [PROGRESS_MEDIA]
> [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:821 process_event()
> Changing state on 5:1 from PROGRESS_MEDIA to RESTART
> [WARNING] src/ozmod/ozmod_libpri/ozmod_libpri.c:831 process_event()
> channel 5:1 (1:1) has alarms! [YELLOW/LOOP]
> [DEBUG] src/ozmod/ozmod_libpri/ozmod_libpri.c:812 process_event() EVENT
> [ALARM_TRAP][7][5:2] STATE [DOWN]
> ...The last two are printed repeatedly.
>
>
> For some extra information I have summarised my setup below. Any help on
> this (surly I am not the first person to experience this!) is greatly
> appreciated. Many thanks, -alex
>
>
>
> Setup:
> ------
> *Zaptel.conf*
> Box1 (Freeswitch Network E1) has 'span=1,1,0,ccs,hdb3'
> Box2 (Openzap CPE E1) has 'span=1,0,0,ccs,hdb3'
> I have experimented with crc4 on/off and timing of 1/2.
>
> *openzap.conf* similar on both sides.
> [span zt]
> number => 1
> trunk_type => e1
> b-channel => 1-15,17-31
> d-channel=> 16
>
> *openzap.conf.xml*
> Box1 (Freeswitch Network E1).
>    <libpri_spans>
>      <span id="1">
>        <param name="node" value="network"/>
>        <param name="switch" value="euroisdn"/>
>        <param name="dialplan" value="XML"/>
>        <param name="context" value="default"/>
>      </span>
>    </libpri_spans>
>
> Box2 (Openzap CPE) passes the following to libpri (via zap_configure_span);
>    "node", "cpe",
>    "switch", "euroisdn",
>    "dp", "unknown",
>    "l1", "alaw",
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090723/65111ae7/attachment.html 


More information about the FreeSWITCH-dev mailing list