voipmeister.com voip stuff matters and more

Articles tagged with PRI

Asterisk DAHDI/PRI troubleshooting

Quick note-to-self, which I should’ve elaborated on in hindsight.

voip>dahdi show status
Description                              Alarms  IRQ    bpviol CRC4   Fra Codi Options  LBO
Wildcard TE121 Card 0                    OK      1      -1     -1     CCS HDB3 CRC4     0 db (CSU)/0-133 feet (DSX-1)
voip>pri show span 1
Primary D-channel: 16
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE
Remote type: Network
Overlap Dial: 0
Logical Channel Mapping: 0
Timer and counter settings:
N200: 3
N202: 3
K: 7
T200: 1000
T201: 1000
T202: 10000
T203: 10000
T303: 4000
T305: 30000
T308: 4000
T309: 6000
T312: 6000
T313: 4000
T316: -1
N316: 2
T-HOLD: 4000
T-RETRIEVE: 4000
T-RESPONSE: 4000
T-STATUS: 4000
T-ACTIVATE: 10000
T-DEACTIVATE: 4000
T-INTERROGATE: 4000
T-RETENTION: 30000
T-CCBS1: 4000
T-CCBS2: 2700000
T-CCBS3: 20000
T-CCBS4: 5000
T-CCBS5: 3600000
T-CCBS6: 3600000
T-CCNR2: 10800000
T-CCNR5: 11700000
T-CCNR6: 11700000
Q931 RX: 25186
Q931 TX: 20362
Q921 RX: 286934
Q921 TX: 286201
Q921 Outstanding: 0 (TEI=0)
Total active-calls:2 global:1
CC records:
Overlap Recv: No
voip>dahdi show channel 1

How to emulate the PSTN with an E1 interface

Here’s how to configure the network end of an E1-E1 back-to-back setup:

network-clock-participate wic 2 
isdn switch-type primary-net5
!
controller E1 0/2/0 
 clock source internal pri-group timeslots 1-3,16 
!
interface Serial0/2/0:15 
 no ip address 
 encapsulation hdlc 
 isdn switch-type primary-net5 
 isdn protocol-emulate network 
 isdn incoming-voice voice 
 no cdp enable 
!

Ofcourse, the 2 statements that differ from a normal setup are (the first under the controller configuration, the last under the serial interface configuration):

clock source internal 
isdn protocol-emulate network

If all is well, the command show isdn status gives:

Global ISDN Switchtype = primary-net5
ISDN Serial0/2/0:15 interface
        ******* Network side configuration *******
        dsl 2, interface ISDN Switchtype = primary-net5
    Layer 1 Status:
        ACTIVE
    Layer 2 Status:
        TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
    Layer 3 Status:
        0 Active Layer 3 Call(s)
    Active dsl 2 CCBs = 0
    The Free Channel Mask:  0x80000007
    Number of L2 Discards = 0, L2 Session ID = 107
    Total Allocated ISDN CCBs = 0

E1-E1 RJ45 cross-over cable

Here’s how to connect 2 E1 RJ45 interfaces back-to-back:

First End

PIN 1 ORANGE 
PIN 2 WHITE/ORANGE 
PIN 4 BLUE
PIN 5 WHITE/BLUE

Second End

PIN 1 BLUE 
PIN 2 WHITE/BLUE 
PIN 4 ORANGE 
PIN 5 WHITE/ORANGE