[asterisk-users] dahdi channels busy/congested

Soeren Malchow (MCon) soeren.malchow at mcon.net
Mon Jul 25 03:43:02 CDT 2011


Dear all,

i have a problem with a system running

- Ubuntu 10.04 ( all updates done )
- ii  asterisk                        1:1.8.5.0-1digium1~lucid          Open Source Private Branch Exchange (PBX)
- ii  asterisk-dahdi                  1:1.8.5.0-1digium1~lucid          DAHDI devices support for the Asterisk PBX

I also use freepbx 2.9 for the configuration.

Hardware is a Dell R410 and a Digium Wildcard

 wcte12xp+    d161:8000 Wildcard TE121

The status is as follows,
- all drivers are loaded and the E1 card shows a GREEN LED and no alarms
- asterisk is up
- the provider is Bharti Airtel in India
- the configuration was copied from my PBX in germany and slightly modified, that is a asterisk 1.4 though


-----

Output


dahdi_cfg

<--snip-->
root at pbx01]: ~/backup/asterisk # dahdi_cfg -f -t -vv
DAHDI Tools Version - 2.2.1

DAHDI Version: 2.2.1
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: Clear channel (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: none) (Slaves: 08)
Channel 09: Clear channel (Default) (Echo Canceler: none) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: none) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: none) (Slaves: 11)
Channel 12: Clear channel (Default) (Echo Canceler: none) (Slaves: 12)
Channel 13: Clear channel (Default) (Echo Canceler: none) (Slaves: 13)
Channel 14: Clear channel (Default) (Echo Canceler: none) (Slaves: 14)
Channel 15: Clear channel (Default) (Echo Canceler: none) (Slaves: 15)
Channel 16: D-channel (Default) (Echo Canceler: none) (Slaves: 16)
Channel 17: Clear channel (Default) (Echo Canceler: none) (Slaves: 17)
Channel 18: Clear channel (Default) (Echo Canceler: none) (Slaves: 18)
Channel 19: Clear channel (Default) (Echo Canceler: none) (Slaves: 19)
Channel 20: Clear channel (Default) (Echo Canceler: none) (Slaves: 20)
Channel 21: Clear channel (Default) (Echo Canceler: none) (Slaves: 21)
Channel 22: Clear channel (Default) (Echo Canceler: none) (Slaves: 22)
Channel 23: Clear channel (Default) (Echo Canceler: none) (Slaves: 23)
Channel 24: Clear channel (Default) (Echo Canceler: none) (Slaves: 24)
Channel 25: Clear channel (Default) (Echo Canceler: none) (Slaves: 25)
Channel 26: Clear channel (Default) (Echo Canceler: none) (Slaves: 26)
Channel 27: Clear channel (Default) (Echo Canceler: none) (Slaves: 27)
Channel 28: Clear channel (Default) (Echo Canceler: none) (Slaves: 28)
Channel 29: Clear channel (Default) (Echo Canceler: none) (Slaves: 29)
Channel 30: Clear channel (Default) (Echo Canceler: none) (Slaves: 30)
Channel 31: Clear channel (Default) (Echo Canceler: none) (Slaves: 31)

31 channels to configure.

[root at pbx01]: ~/backup/asterisk #

<-- snip -->

dahdi_scan

<-- snip -->

[root at pbx01]: ~/backup/asterisk # dahdi_scan
[1]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: HRtimer) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=1
totchans=0
irq=0
type=digital-
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=
framing_opts=
coding=
framing=
[2]
active=yes
alarms=OK
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121 (VPMADT032)
location=PCI Bus 04 Slot 09
basechan=1
totchans=31
irq=38
type=digital-E1
syncsrc=2
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[root at pbx01]: ~/backup/asterisk #

<-- snip -->


dahdi show channels

<-- snip -->

pbx01*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret        Blocked    State
 pseudo            default                    default                         In Service
      1            from-pstn       en         default                         In Service
      2            from-pstn       en         default                         In Service
      3            from-pstn       en         default                         In Service
      4            from-pstn       en         default                         In Service
      5            from-pstn       en         default                         In Service
      6            from-pstn       en         default                         In Service
      7            from-pstn       en         default                         In Service
      8            from-pstn       en         default                         In Service
      9            from-pstn       en         default                         In Service
     10            from-pstn       en         default                         In Service
     11            from-pstn       en         default                         In Service
     12            from-pstn       en         default                         In Service
     13            from-pstn       en         default                         In Service
     14            from-pstn       en         default                         In Service
     15            from-pstn       en         default                         In Service
     17            from-pstn       en         default                         In Service
     18            from-pstn       en         default                         In Service
     19            from-pstn       en         default                         In Service
     20            from-pstn       en         default                         In Service
     21            from-pstn       en         default                         In Service
     22            from-pstn       en         default                         In Service
     23            from-pstn       en         default                         In Service
     24            from-pstn       en         default                         In Service
     25            from-pstn       en         default                         In Service
     26            from-pstn       en         default                         In Service
     27            from-pstn       en         default                         In Service
     28            from-pstn       en         default                         In Service
     29            from-pstn       en         default                         In Service
     30            from-pstn       en         default                         In Service
     31            from-pstn       en         default                         In Service
pbx01*CLI>

<-- snip -->

-----------------

Contents of system.comf

# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jul 22 15:54:48 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" (MASTER)

# Span 2: WCT1/0 "Wildcard TE121 Card 0"
span=2,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
# echocanceller=oslec,1-15,17-31

# Global data

loadzone    = us
defaultzone    = us


Contents of chan_dahdi.conf

[channels]
language=en
;rxwink=900
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
pridialplan=unknown
internationalprefix=00
nationalprefix=0
overlapdial=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
;rxgain=1.0
;txgain=2.0
callgroup=1
pickupgroup=1
immediate=no
faxdetect=no

priindication=outofband #configuration was tested without this parameter
priexclusive=yes #configuration was tested without this parameter

#include /etc/asterisk/dahdi-channels.conf


Contents of dahdi-channels.conf

group=0
context=from-pstn
switchtype=euroisdn
signalling=pri_cpe
group=0
channel => 1-15,17-31
context=default
group=63

And no matter whether i call in or out it does not work, from internally i get the following error ( parts of the phonenumbers are removed )

    -- Executing [s at macro-dialout-trunk:20] Dial("SIP/1990-00000001", "DAHDI/g0/9560XXXXXX,300,") in new stack
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5098 dahdi_confmute: DAHDI confmute(0) failed on channel 1: Invalid argument
    -- Couldn't call DAHDI/g0/9560XXXXXX
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5098 dahdi_confmute: DAHDI confmute(0) failed on channel 1: Invalid argument
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5041 restore_gains: Unable to restore gains: Invalid argument
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:4724 reset_conf: Failed to reset conferencing on channel 1: Invalid argument
    -- Hungup 'DAHDI/1-1'
  == Everyone is busy/congested at this time (0:0/0/0)
    -- Executing [s at macro-dialout-trunk:21] NoOp("SIP/1990-00000001", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
    -- Executing [s at macro-dialout-trunk:22] Goto("SIP/1990-00000001", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL at macro-dialout-trunk:1] Set("SIP/1990-00000001", "RC=0") in new stack
    -- Executing [s-CHANUNAVAIL at macro-dialout-trunk:2] Goto("SIP/1990-00000001", "0,1") in new stack
    -- Goto (macro-dialout-trunk,0,1)
    -- Executing [0 at macro-dialout-trunk:1] Goto("SIP/1990-00000001", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue at macro-dialout-trunk:1] GotoIf("SIP/1990-00000001", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue at macro-dialout-trunk:3] NoOp("SIP/1990-00000001", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack

i tried everything i know now, and have no idea where to look.

Any hints or ideas for me ?


Regards
Soeren





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110725/1bc02179/attachment.htm>


More information about the asterisk-users mailing list