Trouble with Sangoma A101 working with Elastix

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#1
Elastix Experts,

I have kust switched from Trixbox to Elastix 1.6 and tried to install/setup sangoma A101 T1 card. Setup is much easier than in trixbox, but I can't get it working.

1.Elastix 1.6 fresh installation with latest yum update
2. sangoma-setup

here what I have:

Code:
dahdi-channels:

; Span 1: WPT1/0 "wanpipe1 card 0" (MASTER) 
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
context = default
group = 63



chan-dahdi:
;Sangoma A101 port 1 [slot:1 bus:5 span:1] <wanpipe1>
context=from-pstn
group=0
echocancel=yes
channel => 1-24



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


wanpipe1:
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Tue Dec 12 16:21:45 UTC 2006
#
# Note: This file was generated automatically
#       by /usr/sbin/wancfg program.
#
#       If you want to edit this file, it is
#       recommended that you use wancfg program
#       to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe1 = WAN_AFT, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE 	= AFT
S514CPU 	= A
CommPort 	= PRI
AUTO_PCISLOT 	= NO
PCISLOT 	= 1
PCIBUS  	= 5
FE_MEDIA	= T1
FE_LCODE	= B8ZS
FE_FRAME	= ESF
FE_LINE		= 1
TE_CLOCK 	= NORMAL
TE_REF_CLOCK 	= 0

TE_HIGHIMPEDANCE	= NO
TE_RX_SLEVEL    = 360
LBO 		= 0DB
FE_TXTRISTATE	= NO
MTU 		= 1500
UDPPORT 	= 9000
TTL		= 255
IGNORE_FRONT_END = NO
TDMV_SPAN	= 1
TDMV_DCHAN	= 24

[w1g1]
ACTIVE_CH	= ALL
TDMV_HWEC	= NO


wanrouter.log:
Sat May 29 14:21:46 CDT 2010: starting WAN router
Loading driver wanpipe ... ok
Starting up device: wanpipe1
WAN Router Configurator(c) 1995-2003 Sangoma Technologies Inc.
 * Parsing configuration file /etc/wanpipe/wanpipe1.conf ...
 * Reading section [devices]...
 * Reading section [wanpipe1]...
 * Reading section [interfaces]...
 * w1g1 to used by TDM_VOICE
 * Reading section [w1g1]...
 * Configuring device wanpipe1 (no description)
 * Setting CARD_TYPE to AFT
 * Setting S514CPU to A
 * Setting COMMPORT to PRI
 * Setting AUTO_PCISLOT to NO
 * Setting PCISLOT to 1
 * Setting PCIBUS to 5
 * Setting FE_MEDIA to T1
 * Setting FE_LCODE to B8ZS
 * Setting FE_FRAME to ESF
 * Setting FE_LINE to 1
 * Setting TE_CLOCK to NORMAL
 * Setting TE_REF_CLOCK to 0
 * Setting TE_HIGHIMPEDANCE to NO
 * Setting TE_RX_SLEVEL to 360
 * Setting LBO to 0DB
 * Setting FE_TXTRISTATE to NO
 * Setting MTU to 1500
 * Setting UDPPORT to 9000
 * Setting TTL to 255
 * Setting IGNORE_FRONT_END to NO
 * Setting TDMV_SPAN to 1
 * Setting TDMV_DCHAN to 24

MAP DIGIT 2
 * Configuring channel w1g1 (no description). Media address: 
 * Setting ACTIVE_CH to ALL
 * Setting TDMV_HWEC to NO


LAST CLI:
[May 29 14:18:39] ERROR[8106] chan_dahdi.c: Unable to load chan_dahdi.conf
[May 29 14:20:01] VERBOSE[7071] logger.c:     -- Remote UNIX connection
[May 29 14:20:02] VERBOSE[8117] logger.c:     -- Remote UNIX connection disconnected
[May 29 14:21:28] VERBOSE[8106] logger.c: Destroying channels and reloading DAHDI configuration.
[May 29 14:21:28] VERBOSE[8106] logger.c:   == Parsing '/etc/asterisk/chan_dahdi.conf': [May 29 14:21:28] VERBOSE[8106] logger.c: Found
[May 29 14:21:28] WARNING[8106] config.c: parse error: No category context for line 13 of /etc/asterisk/chan_dahdi.conf
[May 29 14:21:28] ERROR[8106] chan_dahdi.c: Unable to load chan_dahdi.conf
[May 29 14:21:44] VERBOSE[8106] logger.c:     -- Remote UNIX connection disconnected
[May 29 14:21:59] VERBOSE[7071] logger.c:     -- Remote UNIX connection
[May 29 14:22:14] VERBOSE[8556] logger.c: Destroying channels and reloading DAHDI configuration.
[May 29 14:22:14] VERBOSE[8556] logger.c:   == Parsing '/etc/asterisk/chan_dahdi.conf': [May 29 14:22:14] VERBOSE[8556] logger.c: Found
[May 29 14:22:14] WARNING[8556] config.c: parse error: No category context for line 13 of /etc/asterisk/chan_dahdi.conf
[May 29 14:22:14] ERROR[8556] chan_dahdi.c: Unable to load chan_dahdi.conf
[May 29 14:24:49] VERBOSE[8556] logger.c:     -- Remote UNIX connection disconnected
[May 29 14:25:01] VERBOSE[7071] logger.c:     -- Remote UNIX connection
[May 29 14:25:01] VERBOSE[8563] logger.c:     -- Remote UNIX connection disconnected
[May 29 14:29:11] VERBOSE[8594] logger.c:   == Parsing '/etc/asterisk/manager.conf': [May 29 14:29:11] VERBOSE[8594] logger.c: Found
[May 29 14:29:11] VERBOSE[8594] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [May 29 14:29:11] VERBOSE[8594] logger.c: Found
[May 29 14:29:11] VERBOSE[8594] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [May 29 14:29:11] VERBOSE[8594] logger.c: Found
[May 29 14:29:11] WARNING[8594] config.c: Unknown directive '#permit=192.168.1.0/255.255.255.0' at line 18 of /etc/asterisk/manager_custom.conf
[May 29 14:29:11] VERBOSE[8594] logger.c:   == Manager 'admin' logged on from 127.0.0.1
[May 29 14:29:12] VERBOSE[8596] logger.c:   == Parsing '/etc/asterisk/manager.conf': [May 29 14:29:12] VERBOSE[8596] logger.c: Found
[May 29 14:29:12] VERBOSE[8596] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [May 29 14:29:12] VERBOSE[8596] logger.c: Found
[May 29 14:29:12] VERBOSE[8596] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [May 29 14:29:12] VERBOSE[8596] logger.c: Found
[May 29 14:29:12] WARNING[8596] config.c: Unknown directive '#permit=192.168.1.0/255.255.255.0' at line 18 of /etc/asterisk/manager_custom.conf
[May 29 14:29:12] VERBOSE[8596] logger.c:   == Manager 'admin' logged on from 127.0.0.1
[May 29 14:29:12] VERBOSE[8596] logger.c:   == Manager 'admin' logged off from 127.0.0.1
[May 29 14:29:12] VERBOSE[8594] logger.c:   == Manager 'admin' logged off from 127.0.0.1
[May 29 14:29:26] VERBOSE[8597] logger.c:   == Parsing '/etc/asterisk/manager.conf': [May 29 14:29:26] VERBOSE[8597] logger.c: Found
[May 29 14:29:26] VERBOSE[8597] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [May 29 14:29:26] VERBOSE[8597] logger.c: Found
[May 29 14:29:26] VERBOSE[8597] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [May 29 14:29:26] VERBOSE[8597] logger.c: Found
[May 29 14:29:26] WARNING[8597] config.c: Unknown directive '#permit=192.168.1.0/255.255.255.0' at line 18 of /etc/asterisk/manager_custom.conf
[May 29 14:29:26] VERBOSE[8597] logger.c:   == Manager 'admin' logged on from 127.0.0.1
[May 29 14:29:27] VERBOSE[8597] logger.c:   == Manager 'admin' logged off from 127.0.0.1
[May 29 14:29:33] VERBOSE[8606] logger.c:   == Parsing '/etc/asterisk/manager.conf': [May 29 14:29:33] VERBOSE[8606] logger.c: Found
[May 29 14:29:33] VERBOSE[8606] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [May 29 14:29:33] VERBOSE[8606] logger.c: Found
[May 29 14:29:33] VERBOSE[8606] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [May 29 14:29:33] VERBOSE[8606] logger.c: Found
[May 29 14:29:33] WARNING[8606] config.c: Unknown directive '#permit=192.168.1.0/255.255.255.0' at line 18 of /etc/asterisk/manager_custom.conf
[May 29 14:29:33] VERBOSE[8606] logger.c:   == Manager 'admin' logged on from 127.0.0.1
[May 29 14:29:33] VERBOSE[8606] logger.c:   == Manager 'admin' logged off from 127.0.0.1
[May 29 14:29:35] VERBOSE[8608] logger.c:   == Parsing '/etc/asterisk/manager.conf': [May 29 14:29:35] VERBOSE[8608] logger.c: Found
[May 29 14:29:35] VERBOSE[8608] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [May 29 14:29:35] VERBOSE[8608] logger.c: Found
[May 29 14:29:35] VERBOSE[8608] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [May 29 14:29:35] VERBOSE[8608] logger.c: Found
[May 29 14:29:35] WARNING[8608] config.c: Unknown directive '#permit=192.168.1.0/255.255.255.0' at line 18 of /etc/asterisk/manager_custom.conf
[May 29 14:29:35] VERBOSE[8608] logger.c:   == Manager 'admin' logged on from 127.0.0.1
[May 29 14:29:35] VERBOSE[8608] logger.c:   == Manager 'admin' logged off from 127.0.0.1
[May 29 14:30:01] VERBOSE[7071] logger.c:     -- Remote UNIX connection
[May 29 14:30:02] VERBOSE[8616] logger.c:     -- Remote UNIX connection disconnected
after changing context=from-zaptel in chan-dahdi.conf no more errors chan_dahdi.c: Unable to load chan_dahdi.conf

[root@elastix ~]# wanrouter hwprobe verbose

-----------------------------------------
| Wanpipe Hardware Probe Info (verbose) |
-----------------------------------------
1 . AFT-A101u : SLOT=1 : BUS=5 : IRQ=169 : CPU=A : PORT=PRI : V=24
+01:pMC4351: PCI: NONE

Card Cnt: A101-2=1


but still cant make outbound/inbound calls .....
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#2
After pluging T1 Voice the green linght shows up on the card.
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#3
OK after using wancfg_dahdi I have a little different chan_dahdi.conf:

;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2010-05-29
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

;Sangoma A101 port 1 [slot:1 bus:5 span:1] <wanpipe1>
context=from-zaptel
group=0
echocancel=yes
channel => 1-24

I think I am on a right path to get this working. Any advice what should I use else?

Thank You
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#4
OK and this is also right:
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2010-05-29
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A101 port 1 [slot:1 bus:5 span:1] <wanpipe1>
span=1,1,0,esf,b8zs
bchan=1-23
echocanceller=mg2,1-23
hardhdlc=24


hardhdlc=24 is like it should
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#5
I think setup-sangoma does not configure the card properly, I think wancfg_dahdi is the right way
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#6
Well it still does not work. Elastix 1.6 can't update new driver and dependencies. The problem is with "invalid signaling" what can be caused by misconfiguration somwhere.
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#7
still not able to get it work:

[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2125-00000005", "0?report") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2125-00000005", "1|Set|REALCALLERIDNUM=2125") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2125-00000005", "AMPUSER=2125") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2125-00000005", "AMPUSERCIDNAME=user") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2125-00000005", "0?report") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2125-00000005", "AMPUSERCID=2125") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2125-00000005", "CALLERID(all)="user" <2125>") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2125-00000005", "0|Set|CHANNEL(language)=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2125-00000005", "1?continue") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-user-callerid,s,19)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/2125-00000005", "Using CallerID "user" <2125>") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Noop
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [918001234567@from-internal:2] Set("SIP/2125-00000005", "_NODEST=") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [918001234567@from-internal:3] Macro("SIP/2125-00000005", "record-enable|2125|OUT|") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2125-00000005", "1?check") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-record-enable,s,4)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/2125-00000005", "0|MacroExit|") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/2125-00000005", "0?Group:OUT") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-record-enable,s,15)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/2125-00000005", "0?IN") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/2125-00000005", "1|MacroExit|") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [918001234567@from-internal:4] Macro("SIP/2125-00000005", "dialout-trunk|1|18001234567||") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/2125-00000005", "DIAL_TRUNK=1") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] DEBUG[4150] func_db.c: DB: AMPUSER/2125/pinless not found in database.
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2125-00000005", "0?sub-pincheck|s|1") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GosubIf
[Jun 2 06:29:54] DEBUG[4150] func_db.c: DB: AMPUSER/2125/pinless not found in database.
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2125-00000005", "0?disabletrunk|1") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/2125-00000005", "DIAL_NUMBER=18001234567") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/2125-00000005", "DIAL_TRUNK_OPTIONS=tr") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/2125-00000005", "OUTBOUND_GROUP=OUT_1") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2125-00000005", "1?nomax") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-dialout-trunk,s,9)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2125-00000005", "0?skipoutcid") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/2125-00000005", "DIAL_TRUNK_OPTIONS=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2125-00000005", "outbound-callerid|1") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2125-00000005", "0|SetCallerPres|") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2125-00000005", "0|Set|REALCALLERIDNUM=2125") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2125-00000005", "1?normcid") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-outbound-callerid,s,6)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/2125-00000005", "USEROUTCID=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] DEBUG[4150] func_db.c: DB: DEVICE/2125/emergency_cid not found in database.
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/2125-00000005", "EMERGENCYCID=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/2125-00000005", "TRUNKOUTCID="COmp" <131241234567>") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2125-00000005", "1?trunkcid") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-outbound-callerid,s,12)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2125-00000005", "1|Set|CALLERID(all)=COMP <1312441234567>") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Last app: Set|CALLERID(all)=COMP <131241234567>
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2125-00000005", "0|Set|CALLERID(all)=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2125-00000005", "0|Set|CALLERID(all)=") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2125-00000005", "0|SetCallerPres|prohib_passed_screen") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Macro
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2125-00000005", "0|AGI|fixlocalprefix") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/2125-00000005", "OUTNUM=18001234567") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/2125-00000005", "custom=DAHDI/g0") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2125-00000005", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: ExecIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2125-00000005", "dialout-trunk-predial-hook|") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2125-00000005", "") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Macro
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2125-00000005", "0?bypass|1") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2125-00000005", "0?customtrunk") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2125-00000005", "DAHDI/g0/18001234567|300|") in new stack
[Jun 2 06:29:54] NOTICE[4150] app_dial.c: Hey! chan SIP/2125-00000005's context='macro-dialout-trunk', and exten='s'
[Jun 2 06:29:54] WARNING[4150] channel.c: No channel type registered for 'DAHDI'
[Jun 2 06:29:54] WARNING[4150] app_dial.c: Unable to create channel of type 'DAHDI' (cause 66 - Channel not implemented)
[Jun 2 06:29:54] VERBOSE[4150] logger.c: == Everyone is busy/congested at this time (1:0/0/1)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Dial
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/2125-00000005", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 66") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Noop
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/2125-00000005", "s-CHANUNAVAIL|1") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Goto
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/2125-00000005", "RC=66") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/2125-00000005", "66|1") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-dialout-trunk,66,1)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Goto
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [66@macro-dialout-trunk:1] Goto("SIP/2125-00000005", "continue|1") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-dialout-trunk,continue,1)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Goto
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/2125-00000005", "1?noreport") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Goto (macro-dialout-trunk,continue,3)
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/2125-00000005", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 66 - failing through to other trunks") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Noop
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [continue@macro-dialout-trunk:4] Set("SIP/2125-00000005", "CALLERID(number)=2125") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Set
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [918001234567@from-internal:5] Macro("SIP/2125-00000005", "outisbusy|") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outisbusy:1] Progress("SIP/2125-00000005", "") in new stack
[Jun 2 06:29:54] DEBUG[4150] app_macro.c: Executed application: Progress
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- Executing [s@macro-outisbusy:2] Playback("SIP/2125-00000005", "all-circuits-busy-now|noanswer") in new stack
[Jun 2 06:29:54] VERBOSE[4150] logger.c: -- <SIP/2125-00000005> Playing 'all-circuits-busy-now' (language 'en')
[Jun 2 06:29:55] VERBOSE[4150] logger.c: == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/2125-00000005' in macro 'outisbusy'
[Jun 2 06:29:55] VERBOSE[4150] logger.c: == Spawn extension (from-internal, 918001234567, 5) exited non-zero on 'SIP/2125-00000005'
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Executing [h@from-internal:1] Macro("SIP/2125-00000005", "hangupcall") in new stack
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2125-00000005", "1?skiprg") in new stack
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Goto (macro-hangupcall,s,4)
[Jun 2 06:29:55] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2125-00000005", "1?skipblkvm") in new stack
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Goto (macro-hangupcall,s,7)
[Jun 2 06:29:55] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2125-00000005", "1?theend") in new stack
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Goto (macro-hangupcall,s,9)
[Jun 2 06:29:55] DEBUG[4150] app_macro.c: Executed application: GotoIf
[Jun 2 06:29:55] VERBOSE[4150] logger.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/2125-00000005", "") in new stack
[Jun 2 06:29:55] VERBOSE[4150] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2125-00000005' in macro 'hangupcall'
[Jun 2 06:29:55] VERBOSE[4150] logger.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2125-00000005'
[Jun 2 06:30:01] VERBOSE[467] logger.c: -- Remote UNIX connection
[Jun 2 06:30:02] VERBOSE[4154] logger.c: -- Remote UNIX connection disconnected
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#8
This is what I did and helped:

rpm -qa | grep dahdi
dahdi_cfg -vvv
service dahdi stop
wget http://downloads.asterisk.org/pub/telep ... 0.2.tar.gz
wget ftp://ftp.sangoma.com/linux/custom/3.5/ ... 5.11.7.tgz
ls
tar xvzf dahdi-linux-2.2.0.2.tar.gz
tar zxvf wanpipe-3.5.11.7.tgz
ls
cd dahdi-linux-2.2.0.2
./configure; make
cd ..
cd wanpipe-3.5.11.7
./Setup install
wanrouter stop
amportal stop
wanrouter stop
service dahdi stop
./Setup install
cd ..
cd dahdi-linux-2.2.0.2
service dahdi stop
make install
dahdi_cfg -v
service dahdi stop
wancfg_dahdi
wanrouter start
cd /etc/dahdi/system.conf
vi /etc/dahdi/system.conf
exit
wanrouter status


Before you do that there are some requirments:
yum -y install kernel-devel-$(uname -r);
yum -y install libtool;
yum -y install gcc;
yum -y install patch;
yum -y install perl;
yum -y install bison;
yum -y install gcc-c++;
yum -y install ncurses;
yum -y install ncurses-devel;
yum -y install flex;
yum -y install libtermcap-devel;
yum -y install lksctp-tools-devel;

And don't forget to change your voice channels to channel => 1-23 NOT 1-24 !!!!


This is what helped in getting Sangoma A101 to work with ELastix 1.6.2-2
 

kspare

Joined
Mar 23, 2009
Messages
73
Likes
0
Points
0
#9
Try using wancfg_dahdi instead of setup-sangoma, see if that helps?
 

robfantini

Joined
Aug 30, 2007
Messages
9
Likes
0
Points
0
#10
I just did a fresh install of Elastix-2.0.0-rc3-i386-18Jun2010.iso .

After an hour or so this is what worked for us:

Code:
/etc/init.d/asterisk stop
amportal stop  # may not be needed.
/usr/sbin/wancfg_dahdi
# made all our regular choices except:
# in config do normal choices, near the end:
5. Save cfg: Save cfg only (Not Recommanded!!!)
Without stopping asterisk wancfg_dahdi stopped with this error:
note i used wancfg_zaptel here but also had same result with wancfg_dahdi .
Code:
Dahdi and Wanpipe configuration complete: choose action
 1. Save cfg: Restart Asterisk & Wanpipe now
 2. Save cfg: Restart Asterisk & Wanpipe when convenient
 3. Save cfg: Stop Asterisk & Wanpipe now
 4. Save cfg: Stop Asterisk & Wanpipe when convenient
 5. Save cfg: Save cfg only (Not Recommanded!!!)
 6. Do not save cfg: Exit
[1-6]:1


Stopping Asterisk...
No such command 'stop now' (type 'core show help stop now' for other possible commands)
Failed to stop asterisk using command: 'stop now' 
 1. Force Stop - Send KILL signal to asterisk
 2. Wait - Wait for asterisk to stop
 3. Exit - Do not apply changes
[1-3]:1

Undefined subroutine &main::execute_command called at ./wancfg_zaptel.pl line 867, <STDIN> line 11.
Code:
elastix: ~ # wanrouter hwprobe verbose

-----------------------------------------
| Wanpipe Hardware Probe Info (verbose) |
-----------------------------------------
1 . AFT-A200-SH : SLOT=1 : BUS=3 : IRQ=5 : CPU=A : PORT=PRI : HWEC=32 : V=11
+01:FXO: PCI: NONE
+02:FXO: PCI: NONE
+03:FXO: PCI: NONE
+04:FXO: PCI: NONE
+05:FXO: PCI: NONE
+06:FXO: PCI: NONE
+07:FXO: PCI: NONE
+08:FXO: PCI: NONE
+09:EMPTY
...
+24:EMPTY

Card Cnt: A200=1
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#11
asterisk 1.6 (Elastix 2.0) no longer allows

stop *

replace with

core stop *
or
core restart *

replace the * with what you want (when convenient, now etc.)
 

robfantini

Joined
Aug 30, 2007
Messages
9
Likes
0
Points
0
#12
thanks!

I'll try to send the info to Sangoma so they can fix their pgm..
 

robfantini

Joined
Aug 30, 2007
Messages
9
Likes
0
Points
0
#13
Note
we still have not completely solved this problem.

We are not able to dial out using the Sangoma card Dahdi lines.

this occurs on Elastix 2.0 and another system using Debian + Asterisk built from source. Asterisk 1.6 is used on both systems.

I think the issue is with the Sangoma driver and Dahdi module .

We have ordered an Xorcom Astrabank , and will test it next week to see if this solves the issue.
 

robfantini

Joined
Aug 30, 2007
Messages
9
Likes
0
Points
0
#14
I forget how we solved this issue, but our current asterisk systems are working great with wanpipe-3.5.14 and asterisk-1.6.2.10 . using debian squeeze.
 

MST

Joined
Sep 25, 2009
Messages
317
Likes
0
Points
16
#15
we are still dealing with 80% functional Sangoma on Elastix .....

We cant's forward calls throught PSTN (using T1 card) like
number > MISC DESTINATION (international call) we have a message from AT&T that we have non working number


when we dial number directly all works....
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,901
Messages
130,885
Members
17,561
Latest member
marouen
Top