[asterisk-users] PRI Setup problem

Alvin Austin aan at crlogic.com
Mon Oct 1 21:45:52 CDT 2007


I've recompiled with the latest svn sources for zaptel, libpri, and 
Asterisk.  Wanpipe is 3.3.0.p4.
Switched the T1 cable. Same result.

(It's a Sasktel Megalink T1/PRI circuit)

CLI> shows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 == Primary D-Channel on span 1 up
  == Primary D-Channel on span 1 up
  == Primary D-Channel on span 1 down
[Oct  1 20:15:19] WARNING[7120]: chan_zap.c:2393 pri_find_dchan: No 
D-channels available!  Using Primary channel 24 as D-channel anyway!
  == Primary D-Channel on span 1 up
  == Primary D-Channel on span 1 up

CLI> pri show spans
alternates between:
    PRI span 1/0: Provisioned, Down, Active   (most of the time)
and:
   PRI span 1/0: Provisioned, Up, Active    (during its retry sequence - 
below)

with debugging enabled:   CLI> pri debug span 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sending Set Asynchronous Balanced Mode Extended
[..]
Sending Set Asynchronous Balanced Mode Extended

-- Got SABME from network peer.
Sending Unnumbered Acknowledgement
q921.c:709 q921_reset: q921_state now is Q921_LINK_CONNECTION_RELEASED
q921.c:664 q921_dchannel_up: q921_state now is 
Q921_LINK_CONNECTION_ESTABLISHED
  == Primary D-Channel on span 1 up

[above paragraph repeated 7 more times]

 > Protocol Discriminator: Q.931 (8)  len=13
 > Call Ref: len= 2 (reference 0/0x0) (Originator)
 > Message type: RESTART (70)
 > [18 03 a9 83 82]
 > Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  
Exclusive  Dchan: 0
 >                        ChanSel: Reserved
 >                       Ext: 1  Coding: 0  Number Specified  Channel 
Type: 3
 >                       Ext: 1  Channel: 2 ]
 > [79 01 80]
 > Restart Indentifier (len= 3) [ Ext: 1  Spare: 0  Resetting Indicated 
Channel (0) ]
-- Timeout occured, restarting PRI
q921.c:356 t200_expire: q921_state now is Q921_LINK_CONNECTION_RELEASED
Sending Set Asynchronous Balanced Mode Extended
q921.c:150 q921_send_sabme: q921_state now is Q921_AWAITING_ESTABLISH
  == Primary D-Channel on span 1 down
[Oct  1 20:30:49] WARNING[7003]: chan_zap.c:2393 pri_find_dchan: No 
D-channels available!  Using Primary channel 24 as D-channel anyway!
Sending Set Asynchronous Balanced Mode Extended
[..]
Sending Set Asynchronous Balanced Mode Extended


# wanrouter status
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Devices currently active:
        wanpipe1


Wanpipe Config:

Device name | Protocol Map | Adapter  | IRQ | Slot/IO | If's | CLK | 
Baud rate |
wanpipe1    | N/A          | A101/1D/A102/2D/4/4D/8| 16  | 4       | 
1    | EXT | 0         |

Wanrouter Status:

Device name | Protocol | Station | Status        |
wanpipe1    | AFT HDLC | N/A     | Connected     |


File /etc/zaptel.conf is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Autogenerated by /usr/local/sbin/sangoma/setup-sangoma -- do not hand edit
# Zaptel Channels Configurations (zaptel.conf)
#
loadzone=us
defaultzone=us

#Sangoma A101 port 1 [slot:4 bus:41 span: 1]
span=1,0,0,esf,b8zs
bchan=1-23
dchan=24



File /etc/asterisk/zapata.conf is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;Zaptel Channels Configurations (zapata.conf)
;
;For detailed zapata options, view /etc/asterisk/zapata.conf.orig

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

;Sangoma A101 port 1 [slot:4 bus:41 span: 1]
; I also tried: switchtype=national
switchtype=dms100          
context=pstn-pri
group=1
signalling=pri_cpe
channel => 1-23

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Still struggling; thanks for any help and ideas.

Alvin




More information about the asterisk-users mailing list