Installing PRI card

Home » Asterisk Users » Installing PRI card
Asterisk Users 5 Comments

Hi,

We have got a new PRI card at one of our Office locations and now I need to install the the device on a remote server. Is there any way to know if the device is loaded already.

When I give ” cat /proc/zaptel/* ” it returns the following.

# cat /proc/zaptel/*

Span 1: WCT1/0 “Wildcard TE122 Card 0” (MASTER) B8ZS/ESF RED

IRQ misses: 2

1 WCT1/0/1 Clear (In use) RED

2 WCT1/0/2 Clear (In use) RED

3 WCT1/0/3 Clear (In use) RED

4 WCT1/0/4 Clear (In use) RED

5 WCT1/0/5 Clear (In use) RED

6 WCT1/0/6 Clear (In use) RED

7 WCT1/0/7 Clear (In use) RED

8 WCT1/0/8 Clear (In use) RED

9 WCT1/0/9 Clear (In use) RED

10 WCT1/0/10 Clear (In use) RED

11 WCT1/0/11 Clear (In use) RED

12 WCT1/0/12 Clear (In use) RED

13 WCT1/0/13 Clear (In use) RED

14 WCT1/0/14 Clear (In use) RED

15 WCT1/0/15 Clear (In use) RED

16 WCT1/0/16 Clear RED

17 WCT1/0/17 Clear (In use) RED

18 WCT1/0/18 Clear (In use) RED

19 WCT1/0/19 Clear (In use) RED

20 WCT1/0/20 Clear (In use) RED

21 WCT1/0/21 Clear (In use) RED

22 WCT1/0/22 Clear (In use) RED

23 WCT1/0/23 Clear (In use) RED

24 WCT1/0/24 HDLCFCS (In use) RED

But when I connect to the console, I am unable to give any ZAP related commands. Does this mean that my device is loaded and I just need to load the module. Or do I need to compile asterisk again?? Any help would be highly appreciated.

My asterisk version is Asterisk 1.4.19.2 and I am on a Fedora release 9
server.

5 thoughts on - Installing PRI card

  • You are risking lots of audio problems if the card shares the IRQ with
    any other device. Try and go in the BIOS and disable the other device or
    change the IRQ it is using so that they do not conflict.

    What version of zaptel are you running?

    What zaptel commands have you tried?

    Have you added any lines to zaptel.conf and zapata.conf?

    Who is your Telco provider and what signalling are they using on the T1?

    It looks like there is a control channel on 24, but 16 isn’t showing the
    same status as I would expect.

    Mike

  • Mike,

    *What version of zaptel are you running?
    *
    My Zaptel version is – zaptel-1.4.12.1

    *What zaptel commands have you tried?
    *
    None of the zaptel commands are working on my CLI. Its like on CLI, none of
    the commands starting with zap are working. (When I give “zap+TAB key”
    nothing shows up)

    *Have you added any lines to zaptel.conf and zapata.conf?
    *
    I am working on a backup server of an already running PBX. In zapata.conf,
    the only configurations that are there is as below.
    But I guess those configurations are that of an E1 card and I will have
    configure it from start.

    group=1
    switchtype=euroisdn
    signalling=pri_cpe
    callerid=asreceived
    usecallerid=yes
    cidsignalling=dtmf
    cidstart=ring
    context=TEST_EXTERNAL
    channel=>1-15
    channel=>17-31

    *Who is your Telco provider and what signalling are they using on the T1?
    *
    I am not sure about the signalling they are using.

    And thanks for the tip on IRQ. As I said I am working on a remote server. I
    will ask some one over there to change the IRQ value.

    Regards,

    Najim

  • Hi,

    As Eric mentioned I made my zapata.conf and zaptel.conf to match each
    other.

    My *zapata.conf *was

    *group=1*
    *switchtype=euroisdn*
    *signalling=pri_cpe*
    *callerid=asreceived*
    *usecallerid=yes*
    *cidsignalling=dtmf*
    *cidstart=ring*
    *context=TEST_EXTERNAL*
    *channel=>1-15*
    *channel=>17-24*

    This was the error message I was getting when I do “*module load chan_zap.so
    *”

    *[Oct 1 04:29:46] WARNING[17448]: chan_zap.c:905 zt_open: Unable to specify
    channel 24: Device o r resource busy*
    *[Oct 1 04:29:46] ERROR[17448]: chan_zap.c:7219 mkintf: Unable to open
    channel 24: Device or res ource busy*
    *here = 0, tmp->channel = 24, channel = 24*
    *[Oct 1 04:29:46] ERROR[17448]: chan_zap.c:10582 build_channels: Unable to
    register channel ’17- 24’*

    Now I changed *zapata.conf* to
    *
    *
    *group=1*
    *switchtype=euroisdn*
    *signalling=pri_cpe*
    *callerid=asreceived*
    *usecallerid=yes*
    *cidsignalling=dtmf*
    *cidstart=ring*
    *context=TEST_EXTERNAL*
    *channel=>1-23*

    Now the error is

    *[Oct 1 04:33:03] ERROR[17612]: chan_zap.c:9470 start_pri: Unable to open
    D-channel 24 (Device o r resource busy)*
    *[Oct 1 04:33:03] ERROR[17612]: chan_zap.c:11382 setup_zap: Unable to start
    D-channel on span 1*

    Do I need to mention the Data channel in zapata.conf??

    My *zaptel.conf* is below. This was auto generated with *genzaptelconf -svdM
    *
    *
    *
    *# Span 1: WCT1/0 “Wildcard TE122 Card 0” (MASTER)*
    *span=1,1,0,esf,b8zs*
    *# termtype: te*
    *bchan=1-23*
    *dchan=24*

    I am using a *Digium TE122 Card* . But when I do “*dmesg | wcte12xp*” I get
    the following

    *# dmesg | wcte12xp*
    *
    *
    *wcte12xp 0000:04:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21*
    *wcte12xp: Setting up global serial parameters for T1*
    *wcte12xp: Found a Wildcard TE122*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp: Setting yellow alarm*
    *wcte12xp0: Missed interrupt. Increasing latency to 4 ms in order to
    compensate.*
    *wcte12xp 0000:04:00.0: PCI INT A disabled*
    *wcte12xp 0000:04:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21*
    *wcte12xp: Setting up global serial parameters for T1*
    *wcte12xp: Found a Wildcard TE122*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp: Setting yellow alarm*
    *wcte12xp 0000:04:00.0: PCI INT A disabled*
    *wcte12xp 0000:04:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21*
    *wcte12xp: Setting up global serial parameters for T1*
    *wcte12xp: Found a Wildcard TE122*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp: Setting yellow alarm*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp 0000:04:00.0: PCI INT A disabled*
    *wcte12xp 0000:04:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21*
    *wcte12xp: Setting up global serial parameters for T1*
    *wcte12xp: Found a Wildcard TE122*
    *wcte12xp: Span configured for ESF/B8ZS*
    *wcte12xp: Setting yellow alarm*

    Does the highlighted part mean that the card is setup in T1 mode. ??
    ( I do not have physical access to the server. But my support in the remote
    office says that card is in E1 mode itself.. )

    Thanks again for the help.
    Najim
    *
    *

    On Fri, Sep 30, 2011 at 1:40 PM, A J Stiles
    wrote:

  • Sit back, take a breath and relax, stop trying things at random.

    First you have to figure out what signalling has to used on your PRI.
    What country are you in? Who is the provider? Find out the switchtype
    and siganalling used in zapata.conf and the spantype for zaptel.conf.
    Also the B channels must match and offcourse the D channel must be set
    correctly.

    At the moment you are using typical T1 settings (24 channels, ESF/B8ZS)
    but also say the thing is an E1 (30 channels (wheter or not you actually
    get the max number of voicechannel), CCS,HDB3(,CRC4)). T1 is the
    default on Digium cards, so you might had to set the jumper differently,
    but since you don’t have physical access you need to use the correct
    module option (t1e1override on dahdi, might differ on zaptel (see
    modinfo)).