How to solve the issue Unable to create channel of type DAHDI

Unable to create Channel of type DAHDI

Topic: How to solve the issue Unable to create channel of type DAHDI


Unable to create channel of type DAHDI

  OVERVIEW:

    Asterisk is a Open source Communication software , You can use Asterisk to build communications applications, things like business phone systems (also known as IP PBXs), call distributors, VoIP gateways and conference bridges.
    
Digium Asterisk Hardware Device Interface (DAHDI) 
DAHDI is a collection of open source drivers, for linux, that are used to interface with a variety of telephony related hardware. 

It consists of two parts.
The DAHDI-Linux project contains the individual board drivers for the supported hardware. 
The DAHDI-Tools project contains an assortment of user space utilities that are used to setup and test the drivers.

  ISSUE: Unable to create channel of type DAHDI

    You might get the above error while dialing over a Physical trunk like PRI/ISDN/E1 analog/FXO/CO line or while logging in as agent in vicidial/goautodial

  Possible Cause:

    1. Dahdi Driver not installed or missing
    2. Physical Trunk is not active
    3. DAHDI Channel name issue in dialplan

    Cause 1: Dahdi Driver and Module

    Make sure the Dahdi Driver and module is installed in your asterisk server, also make sure the right module is installed for the card installed in the server.

Command to check the dahdi driver is installed
dahdi_cfg -vv

if the above command gives error run the dahdi auto gen command to auto install the right driver for the card installed

dahdi_genconf -v
Followed to that run dahdi_cfg -vvv to make sure the right module and channels are installed and created,

If the dahdi_genconf show no spans created , you might need to edit the below file and comment all lines

/etc/modprobe.d/dahdi.blacklist.conf :
#blacklist wct4xxp
#blacklist wcte12xp

if still fails follow the below links according to the card inserted in the server

For digium
For Sangoma
For allo

    Reinstalling Dahdi:

    If Dahdi as a service fails to start ,you may proceed to reinstall or update the dahdi driver , follow the below link for reinstall or upgrade the dahdi driver.

    Cause 2: Dadhi Trunk Not active

    If you are using Digital cards like digium ,sangoma, allo make sure the trunk is active by running the below commands in asterisk cli
dahdi show status 
pri show spans
this should show ok status for all Spans
if it shows red then physically the line is down.
if it shows yellow then cabling mistake.
if span status showing down, then check the configuration settings chan_dahid.conf

    Cause 3: Dahdi channel name in dialplan

    Make sure you have mentioned the trunk name properly in the dialplan 

DAHDI is the trunk name in asterisk
g0 or G0 is the default group name created in asterisk while running the dahdi configuring scripts.
if it is manually entered then check the group name in below files

vi /etc/asterisk/chan_dahdi.conf
vi /etc/asterisk/dahdi-channels.conf

then mention the same group in dialplan as per below

if the group name is 0
then the dialplan will be


exten => _9X.,1,Dial(DAHDI/g0/${EXTEN:1})

If the group name is 1  then

exten => _9X.,2,Dial(DAHDI/g1/${EXTEN:1})

  Support:

    For professional support reach me on skype:striker24x7 

Next Post Previous Post
1 Comments
  • gopi baskar
    gopi baskar April 4, 2022 at 10:35 AM

    vicidial Unable to create channel of type 'DAHDI'

Add Comment
comment url