Outbound call via E1 PRI card fails with error code DIALSTATUS = CONGESTION and HANGUPCAUSE = 34

Hello,
Below is my environment:
FreePBX: 13.0.98
Asterisk: 13.7.2
Ubuntu: 14.4
E1 PRI card: Allo 3rd Gen 2 port PRI card

I had installed above card and connected ISDN PRI line to Asterisk server with proper (I believe) configuration in place. But for inbound calls, i do not see any activity on CLI and for Outbound calls, i get attached logs. Please help me to understand what I am doing wrong and how do i get this working.

Below are my configuration files:
[email protected]:~# dahdi_hardware
pci:0000:02:00.0 alloPL4xxp+ 1d21:1410 Allocard 4aCP1e (3rd Gen)

[email protected]:~# dahdi_scan
[1]
active=yes
alarms=RED/LFA
description=T4XXP (PCI) Card 0 Span 1
name=ALLOPL4/0/1
manufacturer=Allo
devicetype=Allocard 4aCP1e (3rd Gen)
location=Board ID Switch 0
basechan=1
totchans=31
irq=0
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS/CRC4

[email protected]:~# cat /proc/dahdi/1
Span 1: ALLOPL4/0/1 β€œT4XXP (PCI) Card 0 Span 1” (MASTER) CCS/HDB3/CRC4 RED

       1 ALLOPL4/0/1/1 Clear (In use) RED (EC: MG2 - INACTIVE)
       2 ALLOPL4/0/1/2 Clear (In use) RED (EC: MG2 - INACTIVE)
       3 ALLOPL4/0/1/3 Clear (In use) RED (EC: MG2 - INACTIVE)
       4 ALLOPL4/0/1/4 Clear (In use) RED (EC: MG2 - INACTIVE)
       5 ALLOPL4/0/1/5 Clear (In use) RED (EC: MG2 - INACTIVE)
       6 ALLOPL4/0/1/6 Clear (In use) RED (EC: MG2 - INACTIVE)
       7 ALLOPL4/0/1/7 Clear (In use) RED (EC: MG2 - INACTIVE)
       8 ALLOPL4/0/1/8 Clear (In use) RED (EC: MG2 - INACTIVE)
       9 ALLOPL4/0/1/9 Clear (In use) RED (EC: MG2 - INACTIVE)
      10 ALLOPL4/0/1/10 Clear (In use) RED (EC: MG2 - INACTIVE)
      11 ALLOPL4/0/1/11 Clear (In use) RED (EC: MG2 - INACTIVE)
      12 ALLOPL4/0/1/12 Clear (In use) RED (EC: MG2 - INACTIVE)
      13 ALLOPL4/0/1/13 Clear (In use) RED (EC: MG2 - INACTIVE)
      14 ALLOPL4/0/1/14 Clear (In use) RED (EC: MG2 - INACTIVE)
      15 ALLOPL4/0/1/15 Clear (In use) RED (EC: MG2 - INACTIVE)
      16 ALLOPL4/0/1/16 HDLCFCS (In use) RED
      17 ALLOPL4/0/1/17 Clear (In use) RED (EC: MG2 - INACTIVE)
      18 ALLOPL4/0/1/18 Clear (In use) RED (EC: MG2 - INACTIVE)
      19 ALLOPL4/0/1/19 Clear (In use) RED (EC: MG2 - INACTIVE)
      20 ALLOPL4/0/1/20 Clear (In use) RED (EC: MG2 - INACTIVE)
      21 ALLOPL4/0/1/21 Clear (In use) RED (EC: MG2 - INACTIVE)
      22 ALLOPL4/0/1/22 Clear (In use) RED (EC: MG2 - INACTIVE)
      23 ALLOPL4/0/1/23 Clear (In use) RED (EC: MG2 - INACTIVE)
      24 ALLOPL4/0/1/24 Clear (In use) RED (EC: MG2 - INACTIVE)
      25 ALLOPL4/0/1/25 Clear (In use) RED (EC: MG2 - INACTIVE)
      26 ALLOPL4/0/1/26 Clear (In use) RED (EC: MG2 - INACTIVE)
      27 ALLOPL4/0/1/27 Clear (In use) RED (EC: MG2 - INACTIVE)
      28 ALLOPL4/0/1/28 Clear (In use) RED (EC: MG2 - INACTIVE)
      29 ALLOPL4/0/1/29 Clear (In use) RED (EC: MG2 - INACTIVE)
      30 ALLOPL4/0/1/30 Clear (In use) RED (EC: MG2 - INACTIVE)
      31 ALLOPL4/0/1/31 Clear (In use) RED (EC: MG2 - INACTIVE)

system.conf

Span 1: ALLOPL4/0/1 β€œT4XXP (PCI) Card 0 Span 1” (MASTER) CCS/HDB3/CRC4 RED

span=1,1,0,ccs,hdb3,crc4

termtype: te

bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31

Global data

loadzone = in
defaultzone = in

dahdi_channels.conf
; Span 1: ALLOPL4/0/1 β€œT4XXP (PCI) Card 0 Span 1” (MASTER) CCS/HDB3/CRC4 RED
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default

chan_dahdi.conf
#include dahdi-channels.conf
#include chan_dahdi_additional.conf

[trunkgroups]

[channels]
context=from_pstn
switchtype=euroisdn
overlapdial = yes
signalling = pri_cpe
group=0,11
channel=>1-15
channel=>17-31
pridialplan = unknown
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes

asterisk-server*CLI>
e[0Ke[1;30m == e[0mUsing SIP RTP TOS bits 184
e[1;30m == e[0mUsing SIP RTP CoS mark 5

e[Kasterisk-server*CLI>
e[0K[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[7498]: e[1;37mres_odbc.ce[0m:e[1;37m1405e[0m e[1;37m_ast_odbc_request_obj2e[0m: SetConnectAttr (Txn isolation) returned an error: HY000: [MySQL][ODBC 5.1 Driver]MySQL server has gone away

e[Kasterisk-server*CLI>
e[0K[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[7498]: e[1;37mres_odbc.ce[0m:e[1;37m649e[0m e[1;37mast_odbc_prepare_and_executee[0m: SQL Execute returned an error -1: 08S01: [MySQL][ODBC 5.1 Driver][mysqld-5.5.47-0ubuntu0.12.04.1]MySQL server has gone away (82)
[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[7498]: e[1;37mres_odbc.ce[0m:e[1;37m661e[0m e[1;37mast_odbc_prepare_and_executee[0m: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[7498]: e[1;37mres_odbc.ce[0m:e[1;37m765e[0m e[1;37mast_odbc_sanity_checke[0m: Connection is down attempting to reconnect…

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35muser-callerid,LIMIT,EXTERNAL,e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mTOUCH_MONITOR=1467607361.0e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mAMPUSER=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?reporte[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:4] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(REALCALLERIDNUM=204)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:5] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mAMPUSER=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:6] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?limite[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mAMPUSERCIDNAME=Piyush Agherae[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:8] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?reporte[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:9] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mAMPUSERCID=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:10] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__DIAL_OPTIONS=re[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:11] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCALLERID(all)=β€œPiyush Aghera” <204>e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:12] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?limite[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:13] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(GROUP(concurrency_limit)=204)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:14] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CHANNEL(language)=)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:15] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?continuee[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-user-callerid,s,28)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:28] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCALLERID(number)=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:29] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCALLERID(name)=Piyush Agherae[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:30] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCDR(cnum)=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:31] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCDR(cnam)=Piyush Agherae[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:32] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCHANNEL(language)=ene[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mGosube[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35msub-record-check,s,1(out,0XXXXXXXXXX,dontcare)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?initializede[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__REC_STATUS=INITIALIZEDe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mNOW=1467607361e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:4] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__DAY=04e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:5] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__MONTH=07e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:6] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__YEAR=2016e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__TIMESTR=20160704-101241e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:8] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__FROMEXTEN=204e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:9] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m__MON_FMT=wave[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:10] e[1;36mNoOpe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mRecordings initializede[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:11] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(ARG3=dontcare)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:12] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mREC_POLICY_MODE_SAVE=e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:13] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(REC_STATUS=NO)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:14] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m3?checkactione[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (sub-record-check,s,17)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:17] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?sub-record-check,out,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (sub-record-check,out,1)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mNoOpe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mOutbound Recording Check from 204 to 0XXXXXXXXXXe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mRECMODE=dontcaree[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Goto(routewins)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (sub-record-check,out,7)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mGosube[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mrecordcheck,1(dontcare,out,0XXXXXXXXXX)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mNoOpe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mStarting recording check against dontcaree[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mGotoe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mdontcaree[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (sub-record-check,recordcheck,3)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mReturne[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35me[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:8] e[1;36mReturne[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35me[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mMOHCLASS=defaulte[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:4] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m_NODEST=e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:5] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mdialout-trunk,3,XXXXXXXXXX,offe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDIAL_TRUNK=3e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mGosubIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?sub-pincheck,s,1()e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?disabletrunk,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:4] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDIAL_NUMBER=XXXXXXXXXXe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:5] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDIAL_TRUNK_OPTIONS=re[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:6] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mOUTBOUND_GROUP=OUT_3e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?nomaxe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-dialout-trunk,s,9)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:9] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?skipoutcide[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:10] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDIAL_TRUNK_OPTIONS=e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:11] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35moutbound-callerid,3e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERPRES(name-pres)=)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERPRES(num-pres)=)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(REALCALLERIDNUM=204)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:4] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?normcide[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-outbound-callerid,s,7)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mUSEROUTCID=XXXXXXXXXXe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:8] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mEMERGENCYCID=e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:9] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mTRUNKOUTCID=e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:10] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?trunkcide[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-outbound-callerid,s,15)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:15] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERID(all)=)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:16] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(CALLERID(all)=XXXXXXXXXX)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:17] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERID(all)=)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:18] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERPRES(name-pres)=prohib_passed_screen)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:19] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CALLERPRES(num-pres)=prohib_passed_screen)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:20] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCDR(outbound_cnum)=XXXXXXXXXXe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:21] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mCDR(outbound_cnam)=e[0m”) in new stack

e[Kasterisk-serverCLI>
e[0K[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[7495]: e[1;37mfunc_cdr.ce[0m:e[1;37m352e[0m e[1;37mcdr_write_callbacke[0m: CDR requires a value (CDR(variable)=value)
)
e[Kasterisk-server
CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:12] e[1;36mGosubIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?sub-flp-3,s,1()e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(TARGET_FLP_3=867158530)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?matche[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mReturne[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35me[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:13] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mOUTNUM=XXXXXXXXXXe[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:14] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mcustom=DAHDI/g0e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:15] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:16] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(DIAL_TRUNK_OPTIONS=M(confirm))e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:17] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mdialout-trunk-predial-hook,e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mMacroExite[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35me[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:18] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?bypass,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:19] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(CONNECTEDLINE(num,i)=XXXXXXXXXX)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:20] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(CONNECTEDLINE(name,i)=CID:XXXXXXXXXX)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:21] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)XXXXXXXXXX)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:22] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?customtrunke[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:23] e[1;36mDiale[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDAHDI/g0/XXXXXXXXXX,300,e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0K[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[32362][C-00000000]: e[1;37mapp_dial.ce[0m:e[1;37m2411e[0m e[1;37mdial_exec_fulle[0m: Unable to create channel of type β€˜DAHDI’ (cause 34 - Circuit/channel congestion)
e[1;30m == e[0mEveryone is busy/congested at this time (1:0/1/0)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:24] e[1;36mNoOpe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mDial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:25] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?continue,1:s-CONGESTION,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-dialout-trunk,s-CONGESTION,1)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mSete[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mRC=34e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mGotoe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m34,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-dialout-trunk,34,1)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mGotoe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mcontinue,1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-dialout-trunk,continue,1)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mNoOpe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mTRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunkse[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:2] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?Set(CALLERID(number)=204)e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:6] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35moutisbusy,e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0K[2016-07-04 10:12:41] e[1;31mWARNINGe[0m[32362][C-00000000]: e[1;37mapp_macro.ce[0m:e[1;37m310e[0m e[1;37m_macro_exece[0m: No such context β€˜macro-outisbusy’ for macro β€˜outisbusy’. Was called by [email protected]

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:7] e[1;36mWaite[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:8] e[1;36mCongestione[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m20e[0m”) in new stack

e[Kasterisk-server*CLI>
e[0K[2016-07-04 10:12:42] e[1;31mWARNINGe[0m[32362][C-00000000]: e[1;37mchannel.ce[0m:e[1;37m4856e[0m e[1;37mast_prode[0m: Prodding channel β€˜SIP/204-00000000’ failed
e[1;30m == e[0mSpawn extension (from-internal, 0XXXXXXXXXX, 8) exited non-zero on β€˜SIP/204-00000000’

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mMacroe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35mhangupcalle[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:1] e[1;36mGotoIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m1?theende[0m”) in new stack

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mGoto (macro-hangupcall,s,3)

e[Kasterisk-server*CLI>
e[0Ke[1;30m – e[0mExecuting [[email protected]:3] e[1;36mExecIfe[0m(β€œe[1;35mSIP/204-00000000e[0m”, β€œe[1;35m0?Set(CDR(recordingfile)=)e[0m”) in new stack

There are no issues at the provider end as PRI line connected via their device / modem works fine.
But when i connect the line directly to Allo PRI card of my Asterisk server, I get above error.

plz run in Asterisk CLI:

pri show spans
pri show channels

and paste the result

Here are the outputs:
asterisk-serverCLI> pri show spans
PRI span 1/0: In Alarm, Down, Active
asterisk-server
CLI> pri show channels
PRI B Chan Call PRI Channel
Span Chan Chan Idle Level Call Name
1 1 Yes No Idle No
1 2 Yes No Idle No
1 3 Yes No Idle No
1 4 Yes No Idle No
1 5 Yes No Idle No
1 6 Yes No Idle No
1 7 Yes No Idle No
1 8 Yes No Idle No
1 9 Yes No Idle No
1 10 Yes No Idle No
1 11 Yes No Idle No
1 12 Yes No Idle No
1 13 Yes No Idle No
1 14 Yes No Idle No
1 15 Yes No Idle No
1 17 Yes No Idle No
1 18 Yes No Idle No
1 19 Yes No Idle No
1 20 Yes No Idle No
1 21 Yes No Idle No
1 22 Yes No Idle No
1 23 Yes No Idle No
1 24 Yes No Idle No
1 25 Yes No Idle No
1 26 Yes No Idle No
1 27 Yes No Idle No
1 28 Yes No Idle No
1 29 Yes No Idle No
1 30 Yes No Idle No
1 31 Yes No Idle No
asterisk-server*CLI>

Furthermore when i do dahdi restart from CLI, i get below messages:
asterisk-server*CLI> dahdi restart
[2016-07-04 14:11:27] WARNING[17533]: config.c:1836 process_text_line: parse error: No category context for line 11 of /etc/asterisk/dahdi-channels.conf
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 1: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 2: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 3: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 4: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 5: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 6: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 7: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 8: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 9: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 10: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 11: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 12: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 13: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 14: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 15: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 17: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 18: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 19: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 20: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 21: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 22: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 23: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 24: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 25: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 26: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 27: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 28: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 29: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 30: Red Alarm
[2016-07-04 14:11:27] WARNING[17533]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 31: Red Alarm

your PRI link is not active. so you should solve this issue first. check your card and dahdi configuration.

As i had mentioned earlier PRI line is active when connected via service provider’s modem, and can make / receive calls.
I cant make it work with Allo card and Asterisk. Allo PRI card is flashing red LED which as per them says card and DAHDI are loaded correctly.
So i am trying to find out what I am doing wrong and what needs to be corrected.
If PRI line is not active when connected to PRI card, how do i troubleshoot it further.

Dear output of β€œpri show spans” shows that your PRI line is not active.
please check crc4, clocking at first.

Thank you. As per one of the blog site, removed CRC4 option in system.conf file as it could affect PRI connection.
Also clock to sync is used as Telco’s end, based on second parameter used in system.conf:
span=1,1,0,ccs,hdb3

termtype: te

bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31

Global data

loadzone = in
defaultzone = in

plz check your cable too. are you using cross cable. RJ45 interface or BNC?

I am using RJ45 and mostly cross over cable.

bu sure about pinout.
dear as I told before, you should check all parameters again. crc4, clocking, pinout, …
different brands have different behavior in up/down link. for example Sangoma vs OpenVox behavior about CRC4 is different.
So please for best troubleshooting, do card configuration again.

ok… will try re-configuring card and DAHDI.

Be aware that this equipment is likely wired to rj48 NOT rj45 , thus crossover cables are wired differently

Please note that a β€˜RED’ Alarm is a cabling issue. RED means that the cable appears to be not plugged in, at all. YELLOW means that there’s signals being received, but they’re not being understood by the card.

1 Like

Ouch :frowning: I thought I would be able to switch between Asterisk and Service provider equipment as and when needed with this PRI line. But with your suggestions, it looks like Service provider equipment and Allo PRI card uses different type of cables, then I am in bit of trouble.
Well, it seems I have to go to service provider and check these things out.

Could you please suggest if my configuration files posted earlier are correct or need any modifications there.
I just want to make sure I am not missing on the Asterisk side at least.

Fix the wiring first.Asterisk has no sense of wiring or PRI’s , Dahdi compliant hardware would normally use RJ48 standards. It’s on google . . .If you need a turn around it is the blue and orange pairs need switching, just forget about RJ45 for now, in fact but technically, Ethernet cable is β€œout of spec” for use with T(E)1’s but that is picky for a couple of feet.

http://www.differencebetween.net/technology/difference-between-rj45-and-rj48/

Your span is alarmed, so your assertion below that the card is working is clearly not correct.

All of your channels are also RED. The EC is showing MG2 and INACTIVE. Is MG2 the right Echo Cancellation for your card?

From what I’m seeing, the card is fundamentally OK, there’s just a configuration error.

Thank you all for your valuable inputs. But I am bit lost at the moment.
Accidentally i got one blogger who had experience with Allo cards and PRI lines earlier, who asked me to re-install DAHDI drivers which are released by Allo with some patch.
So I uninstalled previous drivers (2.10.2) and installed Allo patched driver (2.10.0.1). But after that DAHDI was not loaded and hardware also not detected.
So I again went back to original drivers (2.10.2) and now hardware is detected but nothing after that and when i restart DAHDI from CLI, I see that the channels are not registering. All the configuration files are same as they were earlier. Can’t understand what am I doing wrong.
Is it a good idea to re-start from the scratch, I mean re-install Asterisk, FreePBX and DAHDI as my current system in not live.

Below are the logs:
[email protected]:~# dahdi_hardware
pci:0000:02:00.0 alloPL4xxp- 1d21:1410 Allocard 4aCP1e (3rd Gen)
[email protected]:~#
[email protected]:~#
[email protected]:~# dahdi_scan
[email protected]:~# asterisk -r
Asterisk 13.7.2, Copyright Β© 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type β€˜core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type β€˜core show license’ for details.

Connected to Asterisk 13.7.2 currently running on asterisk-server (pid = 27492)
asterisk-serverCLI>
asterisk-server
CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
asterisk-serverCLI> dahdi show chan
channels channel
asterisk-server
CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
asterisk-serverCLI>
asterisk-server
CLI> pri show spans
asterisk-serverCLI> dahdi restart
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:38:59] ERROR[767]: chan_dahdi.c:17451 build_channels: Unable to register channel β€˜17-31’
[2016-07-07 11:38:59] WARNING[767]: chan_dahdi.c:17658 process_dahdi: Channel β€˜17-31’ failure ignored: ignore_failed_channels.
asterisk-server
CLI>

chan_dahdi.so module reload outpu:

asterisk-serverCLI> module load chan_dahdi.so
Loaded chan_dahdi.so
[2016-07-07 11:50:07] WARNING[2112]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 1: Invalid argument
[2016-07-07 11:50:07] ERROR[2112]: chan_dahdi.c:12044 mkintf: Unable to open channel 1: Invalid argument
here = 0, tmp->channel = 1, channel = 1
[2016-07-07 11:50:07] ERROR[2112]: chan_dahdi.c:17451 build_channels: Unable to register channel β€˜1-15’
[2016-07-07 11:50:07] WARNING[2112]: chan_dahdi.c:17658 process_dahdi: Channel β€˜1-15’ failure ignored: ignore_failed_channels.
[2016-07-07 11:50:07] WARNING[2112]: chan_dahdi.c:4079 dahdi_open: Unable to specify channel 17: Invalid argument
[2016-07-07 11:50:07] ERROR[2112]: chan_dahdi.c:12044 mkintf: Unable to open channel 17: Invalid argument
here = 0, tmp->channel = 17, channel = 17
[2016-07-07 11:50:07] ERROR[2112]: chan_dahdi.c:17451 build_channels: Unable to register channel β€˜17-31’
[2016-07-07 11:50:07] WARNING[2112]: chan_dahdi.c:17658 process_dahdi: Channel β€˜17-31’ failure ignored: ignore_failed_channels.
asterisk-server
CLI>