<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear all,<br>
<br>
i have a problem with a system running<br>
<br>
- Ubuntu 10.04 ( all updates done )<br>
- <font size="2"><span style="font-size: 10pt;">ii asterisk 1:1.8.5.0-1digium1~lucid Open Source Private Branch Exchange (PBX)<br>
- ii asterisk-dahdi 1:1.8.5.0-1digium1~lucid DAHDI devices support for the Asterisk PBX<br>
<br>
I also use freepbx 2.9 for the configuration.<br>
<br>
Hardware is a Dell R410 and a Digium Wildcard<br>
<br>
wcte12xp+ d161:8000 Wildcard TE121<br>
<br>
The status is as follows, <br>
- all drivers are loaded and the E1 card shows a GREEN LED and no alarms<br>
- asterisk is up <br>
- the provider is Bharti Airtel in India<br>
- the configuration was copied from my PBX in germany and slightly modified, that is a asterisk 1.4 though<br>
<br>
<br>
-----<br>
<br>
Output <br>
<br>
<br>
dahdi_cfg<br>
<br>
<--snip--><br>
root@pbx01]: ~/backup/asterisk # dahdi_cfg -f -t -vv<br>
DAHDI Tools Version - 2.2.1<br>
<br>
DAHDI Version: 2.2.1<br>
Echo Canceller(s): <br>
Configuration<br>
======================<br>
<br>
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)<br>
<br>
Channel map:<br>
<br>
Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)<br>
Channel 02: Clear channel (Default) (Echo Canceler: none) (Slaves: 02)<br>
Channel 03: Clear channel (Default) (Echo Canceler: none) (Slaves: 03)<br>
Channel 04: Clear channel (Default) (Echo Canceler: none) (Slaves: 04)<br>
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)<br>
Channel 06: Clear channel (Default) (Echo Canceler: none) (Slaves: 06)<br>
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)<br>
Channel 08: Clear channel (Default) (Echo Canceler: none) (Slaves: 08)<br>
Channel 09: Clear channel (Default) (Echo Canceler: none) (Slaves: 09)<br>
Channel 10: Clear channel (Default) (Echo Canceler: none) (Slaves: 10)<br>
Channel 11: Clear channel (Default) (Echo Canceler: none) (Slaves: 11)<br>
Channel 12: Clear channel (Default) (Echo Canceler: none) (Slaves: 12)<br>
Channel 13: Clear channel (Default) (Echo Canceler: none) (Slaves: 13)<br>
Channel 14: Clear channel (Default) (Echo Canceler: none) (Slaves: 14)<br>
Channel 15: Clear channel (Default) (Echo Canceler: none) (Slaves: 15)<br>
Channel 16: D-channel (Default) (Echo Canceler: none) (Slaves: 16)<br>
Channel 17: Clear channel (Default) (Echo Canceler: none) (Slaves: 17)<br>
Channel 18: Clear channel (Default) (Echo Canceler: none) (Slaves: 18)<br>
Channel 19: Clear channel (Default) (Echo Canceler: none) (Slaves: 19)<br>
Channel 20: Clear channel (Default) (Echo Canceler: none) (Slaves: 20)<br>
Channel 21: Clear channel (Default) (Echo Canceler: none) (Slaves: 21)<br>
Channel 22: Clear channel (Default) (Echo Canceler: none) (Slaves: 22)<br>
Channel 23: Clear channel (Default) (Echo Canceler: none) (Slaves: 23)<br>
Channel 24: Clear channel (Default) (Echo Canceler: none) (Slaves: 24)<br>
Channel 25: Clear channel (Default) (Echo Canceler: none) (Slaves: 25)<br>
Channel 26: Clear channel (Default) (Echo Canceler: none) (Slaves: 26)<br>
Channel 27: Clear channel (Default) (Echo Canceler: none) (Slaves: 27)<br>
Channel 28: Clear channel (Default) (Echo Canceler: none) (Slaves: 28)<br>
Channel 29: Clear channel (Default) (Echo Canceler: none) (Slaves: 29)<br>
Channel 30: Clear channel (Default) (Echo Canceler: none) (Slaves: 30)<br>
Channel 31: Clear channel (Default) (Echo Canceler: none) (Slaves: 31)<br>
<br>
31 channels to configure.<br>
<br>
[root@pbx01]: ~/backup/asterisk # <br>
<br>
<-- snip --><br>
<br>
dahdi_scan<br>
<br>
<-- snip --><br>
<br>
[root@pbx01]: ~/backup/asterisk # dahdi_scan <br>
[1]<br>
active=yes<br>
alarms=UNCONFIGURED<br>
description=DAHDI_DUMMY/1 (source: HRtimer) 1<br>
name=DAHDI_DUMMY/1<br>
manufacturer=<br>
devicetype=DAHDI Dummy Timing<br>
location=<br>
basechan=1<br>
totchans=0<br>
irq=0<br>
type=digital-<br>
syncsrc=0<br>
lbo=0 db (CSU)/0-133 feet (DSX-1)<br>
coding_opts=<br>
framing_opts=<br>
coding=<br>
framing=<br>
[2]<br>
active=yes<br>
alarms=OK<br>
description=Wildcard TE121 Card 0<br>
name=WCT1/0<br>
manufacturer=Digium<br>
devicetype=Wildcard TE121 (VPMADT032)<br>
location=PCI Bus 04 Slot 09<br>
basechan=1<br>
totchans=31<br>
irq=38<br>
type=digital-E1<br>
syncsrc=2<br>
lbo=0 db (CSU)/0-133 feet (DSX-1)<br>
coding_opts=HDB3<br>
framing_opts=CCS,CRC4<br>
coding=HDB3<br>
framing=CCS<br>
[root@pbx01]: ~/backup/asterisk # <br>
<br>
<-- snip --><br>
<br>
<br>
dahdi show channels<br>
<br>
<-- snip --><br>
<br>
pbx01*CLI> dahdi show channels<br>
Chan Extension Context Language MOH Interpret Blocked State
<br>
pseudo default default In Service<br>
1 from-pstn en default In Service<br>
2 from-pstn en default In Service<br>
3 from-pstn en default In Service<br>
4 from-pstn en default In Service<br>
5 from-pstn en default In Service<br>
6 from-pstn en default In Service<br>
7 from-pstn en default In Service<br>
8 from-pstn en default In Service<br>
9 from-pstn en default In Service<br>
10 from-pstn en default In Service<br>
11 from-pstn en default In Service<br>
12 from-pstn en default In Service<br>
13 from-pstn en default In Service<br>
14 from-pstn en default In Service<br>
15 from-pstn en default In Service<br>
17 from-pstn en default In Service<br>
18 from-pstn en default In Service<br>
19 from-pstn en default In Service<br>
20 from-pstn en default In Service<br>
21 from-pstn en default In Service<br>
22 from-pstn en default In Service<br>
23 from-pstn en default In Service<br>
24 from-pstn en default In Service<br>
25 from-pstn en default In Service<br>
26 from-pstn en default In Service<br>
27 from-pstn en default In Service<br>
28 from-pstn en default In Service<br>
29 from-pstn en default In Service<br>
30 from-pstn en default In Service<br>
31 from-pstn en default In Service<br>
pbx01*CLI> <br>
<br>
<-- snip --><br>
<br>
-----------------<br>
<br>
Contents of system.comf<br>
<br>
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jul 22 15:54:48 2011<br>
# If you edit this file and execute /usr/sbin/dahdi_genconf again,<br>
# your manual changes will be LOST.<br>
# Dahdi Configuration File<br>
#<br>
# This file is parsed by the Dahdi Configurator, dahdi_cfg<br>
#<br>
# Span 1: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" (MASTER) <br>
<br>
# Span 2: WCT1/0 "Wildcard TE121 Card 0" <br>
span=2,1,0,ccs,hdb3,crc4<br>
# termtype: te<br>
bchan=1-15,17-31<br>
dchan=16<br>
# echocanceller=oslec,1-15,17-31<br>
<br>
# Global data<br>
<br>
loadzone = us<br>
defaultzone = us<br>
<br>
<br>
Contents of chan_dahdi.conf<br>
<br>
[channels]<br>
language=en<br>
;rxwink=900<br>
usecallerid=yes<br>
hidecallerid=no<br>
callwaiting=yes<br>
usecallingpres=yes<br>
pridialplan=unknown<br>
internationalprefix=00<br>
nationalprefix=0<br>
overlapdial=yes<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
canpark=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
echocancel=yes<br>
echocancelwhenbridged=yes<br>
;rxgain=1.0<br>
;txgain=2.0<br>
callgroup=1<br>
pickupgroup=1<br>
immediate=no<br>
faxdetect=no<br>
<br>
priindication=outofband #configuration was tested without this parameter<br>
priexclusive=yes </span></font><font size="2"><span style="font-size: 10pt;">#configuration was tested without this parameter</span></font><br>
<font size="2"><span style="font-size: 10pt;"><br>
#include /etc/asterisk/dahdi-channels.conf<br>
<br>
<br>
Contents of dahdi-channels.conf<br>
<br>
</span></font><font size="2"><span style="font-size: 10pt;">group=0<br>
context=from-pstn<br>
switchtype=euroisdn<br>
signalling=pri_cpe<br>
group=0<br>
channel => 1-15,17-31<br>
context=default<br>
group=63<br>
<br>
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 )<br>
<br>
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/1990-00000001", "DAHDI/g0/9560XXXXXX,300,") in new stack<br>
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5098 dahdi_confmute: DAHDI confmute(0) failed on channel 1: Invalid argument<br>
-- Couldn't call DAHDI/g0/9560XXXXXX<br>
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5098 dahdi_confmute: DAHDI confmute(0) failed on channel 1: Invalid argument<br>
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:5041 restore_gains: Unable to restore gains: Invalid argument<br>
[Jul 25 14:10:31] WARNING[6121]: chan_dahdi.c:4724 reset_conf: Failed to reset conferencing on channel 1: Invalid argument<br>
-- Hungup 'DAHDI/1-1'<br>
== Everyone is busy/congested at this time (0:0/0/0)<br>
-- Executing [s@macro-dialout-trunk:21] NoOp("SIP/1990-00000001", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack<br>
-- Executing [s@macro-dialout-trunk:22] Goto("SIP/1990-00000001", "s-CHANUNAVAIL,1") in new stack<br>
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)<br>
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/1990-00000001", "RC=0") in new stack<br>
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/1990-00000001", "0,1") in new stack<br>
-- Goto (macro-dialout-trunk,0,1)<br>
-- Executing [0@macro-dialout-trunk:1] Goto("SIP/1990-00000001", "continue,1") in new stack<br>
-- Goto (macro-dialout-trunk,continue,1)<br>
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/1990-00000001", "1?noreport") in new stack<br>
-- Goto (macro-dialout-trunk,continue,3)<br>
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/1990-00000001", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack<br>
<br>
i tried everything i know now, and have no idea where to look.<br>
<br>
Any hints or ideas for me ?<br>
<br>
<br>
Regards<br>
Soeren<br>
<br>
<br>
</span></font><font size="2"><span style="font-size: 10pt;"><br>
<br>
<br>
</span></font></div>
</body>
</html>