Sangoma A200 2nd Card & New Server / DAHDI Driver setup

KhunIT
Posts: 7
Member Since:
2008-02-21

KhunIT
Posts: 7
Member Since:
2008-02-21
(No subject)

KhunIT
Posts: 7
Member Since:
2008-02-21
Sangoma A200 2nd Card & New Server / DAHDI Driver setup

I have been using A200 product quite successfully for 6 months now.
We have bought another card and put the two A200 cards in a new server with the latest version of TrixBox and are attempting to use the DAHDI drivers.

The Problem:
• I’m able to dial in from an out outside line but it does not seem to hang up after I’m done with the call.
• Also all OUTBOUND calls reports that all circuits are busy now.

I’m a bit confused because at the command line there seems to be three different options for configuring the WANPIPE and DAHDI
Setup-sangoma
Wancfg
Wancfg_dahdi (This is the last one I tried and I seem to be having some limited success with).

Since all three of these exists I’m wondering if there may a few different versions installed on this box.

Rick

________________________________________

Copies of Configuration & Log files:

[voip.safecoms.com ~]# wanrouter status

Devices currently active:
wanpipe1 wanpipe2

Wanpipe Config:

Device name | Protocol Map | Adapter | IRQ | Slot/IO | If's | CLK | Baud rate |
wanpipe1 | N/A | A200/A400/B600/B700| 50 | 2 | 1 | N/A | 0 |
wanpipe2 | N/A | A200/A400/B600/B700| 74 | 1 | 1 | N/A | 0 |

Wanrouter Status:

Device name | Protocol | Station | Status |
wanpipe1 | A-ANALOG | N/A | Connected |
wanpipe2 | A-ANALOG | N/A | Connected |

[voip.safecoms.com ~]# wanrouter summary

Configuration File Summary in : /etc/wanpipe/

Device Protocol Type Cpu/Io Slot/Irq Bus State
------------------------------------------------------------------------
wanpipe1 WAN_AFT_ANALOG PCI A 2 5 Connected
wanpipe2 WAN_AFT_ANALOG PCI A 1 5 Connected
[voip.safecoms.com ~]# wanrouter list

Devices currently active:
wanpipe1 wanpipe2

[voip.safecoms.com ~]# wanrouter hwprobe

-------------------------------
| Wanpipe Hardware Probe Info |
-------------------------------
1 . AFT-A200-SH : SLOT=2 : BUS=5 : IRQ=14 : CPU=A : PORT=PRI : HWEC=32 : V=11
2 . AFT-A200-SH : SLOT=1 : BUS=5 : IRQ=3 : CPU=A : PORT=PRI : HWEC=32 : V=11

Card Cnt: A200=2

[voip.safecoms.com ~]# wanrouter version

WANPIPE Release: 3.5.4.8

[voip.safecoms.com ~]#

voip*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-zaptel default In Service
1 from-zaptel default In Service
2 from-zaptel default In Service
3 from-zaptel default In Service
4 from-zaptel default In Service
25 from-zaptel default In Service
26 from-zaptel default In Service
27 from-zaptel default In Service
28 from-zaptel default In Service

voip*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
wrtdm Board 1 OK 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)
wrtdm Board 2 OK 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)

voip*CLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
2 calls processed

-- Unregistered SIP '711'
-- Registered SIP '711' at 10.254.1.209 port 4310
> Saved useragent "X-Lite Beta release 4.0 Beta 2 stamp 55091" for peer 711
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6

-- Executing [90855573000@from-internal:1] Macro("SIP/711-b76aa008", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/711-b76aa008", "AMPUSER=711") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/711-b76aa008", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/711-b76aa008", "1?Set(REALCALLERIDNUM=711)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/711-b76aa008", "AMPUSER=711") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/711-b76aa008", "AMPUSERCIDNAME=Mobile Rick") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/711-b76aa008", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/711-b76aa008", "AMPUSERCID=711") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/711-b76aa008", "CALLERID(all)="Mobile Rick" ") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/711-b76aa008", "REALCALLERIDNUM=711") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/711-b76aa008", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/711-b76aa008", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/711-b76aa008", "Using CallerID "Mobile Rick" ") in new stack
-- Executing [90855573000@from-internal:2] Set("SIP/711-b76aa008", "_NODEST=") in new stack
-- Executing [90855573000@from-internal:3] Macro("SIP/711-b76aa008", "record-enable,711,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/711-b76aa008", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/711-b76aa008", "recordingcheck,20091108-143644,1257665803.2") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20091108-143644,1257665803.2: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/711-b76aa008", "") in new stack
-- Executing [90855573000@from-internal:4] Macro("SIP/711-b76aa008", "dialout-trunk,3,0855573000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/711-b76aa008", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/711-b76aa008", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/711-b76aa008", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/711-b76aa008", "DIAL_NUMBER=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/711-b76aa008", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/711-b76aa008", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/711-b76aa008", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/711-b76aa008", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/711-b76aa008", "0?Set(REALCALLERIDNUM=711)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/711-b76aa008", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/711-b76aa008", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/711-b76aa008", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/711-b76aa008", "TRUNKOUTCID=2") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/711-b76aa008", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=2)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/711-b76aa008", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/711-b76aa008", "OUTNUM=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/711-b76aa008", "custom=DAHDI/2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/711-b76aa008", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/711-b76aa008", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/711-b76aa008", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/711-b76aa008", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/711-b76aa008", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/711-b76aa008", "DAHDI/2/0855573000,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/711-b76aa008", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/711-b76aa008", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/711-b76aa008", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [90855573000@from-internal:5] Macro("SIP/711-b76aa008", "dialout-trunk,2,0855573000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/711-b76aa008", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/711-b76aa008", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/711-b76aa008", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/711-b76aa008", "DIAL_NUMBER=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/711-b76aa008", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/711-b76aa008", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/711-b76aa008", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/711-b76aa008", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/711-b76aa008", "0?Set(REALCALLERIDNUM=711)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/711-b76aa008", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/711-b76aa008", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/711-b76aa008", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/711-b76aa008", "TRUNKOUTCID=1") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/711-b76aa008", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=1)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/711-b76aa008", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/711-b76aa008", "OUTNUM=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/711-b76aa008", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/711-b76aa008", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/711-b76aa008", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/711-b76aa008", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/711-b76aa008", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/711-b76aa008", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/711-b76aa008", "DAHDI/1/0855573000,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/711-b76aa008", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/711-b76aa008", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/711-b76aa008", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [90855573000@from-internal:6] Macro("SIP/711-b76aa008", "dialout-trunk,4,0855573000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/711-b76aa008", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/711-b76aa008", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/711-b76aa008", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/711-b76aa008", "DIAL_NUMBER=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/711-b76aa008", "OUTBOUND_GROUP=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/711-b76aa008", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/711-b76aa008", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/711-b76aa008", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/711-b76aa008", "outbound-callerid,4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/711-b76aa008", "0?Set(REALCALLERIDNUM=711)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/711-b76aa008", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/711-b76aa008", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/711-b76aa008", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/711-b76aa008", "TRUNKOUTCID=3") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/711-b76aa008", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=3)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/711-b76aa008", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/711-b76aa008", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/711-b76aa008", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/711-b76aa008", "OUTNUM=0855573000") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/711-b76aa008", "custom=DAHDI/3") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/711-b76aa008", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/711-b76aa008", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/711-b76aa008", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/711-b76aa008", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/711-b76aa008", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/711-b76aa008", "DAHDI/3/0855573000,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/711-b76aa008", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/711-b76aa008", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/711-b76aa008", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [90855573000@from-internal:7] Macro("SIP/711-b76aa008", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/711-b76aa008", "all-circuits-busy-now,noanswer") in new stack
-- Playing 'all-circuits-busy-now.ulaw' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/711-b76aa008", "pls-try-call-later,noanswer") in new stack
-- Playing 'pls-try-call-later.ulaw' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/711-b76aa008", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/711-b76aa008", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/711-b76aa008", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/711-b76aa008", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/711-b76aa008", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/711-b76aa008", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/711-b76aa008", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/711-b76aa008' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/711-b76aa008' in macro 'outisbusy'
== Spawn extension (from-internal, 90855573000, 7) exited non-zero on 'SIP/711-b76aa008'
-- Executing [h@from-internal:1] Macro("SIP/711-b76aa008", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/711-b76aa008", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/711-b76aa008", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/711-b76aa008", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/711-b76aa008", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/711-b76aa008", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/711-b76aa008", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/711-b76aa008' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/711-b76aa008'
voip*CLI>

/etc/wanpipe/

#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Mon Jul 31 17:10:23 EDT 2006
#
# Note: This file was generated automatically
# by /usr/local/sbin/setup-sangoma 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_ANALOG, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 2
PCIBUS = 5
FE_MEDIA = FXO/FXS
TDMV_LAW = MULAW
TDMV_OPERMODE = FCC
RM_BATTTHRESH = 3
RM_BATTDEBOUNCE = 16
FE_NETWORK_SYNC = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_HW_DTMF = NO
TDMV_HW_FAX_DETECT = NO

[w1g1]
ACTIVE_CH = ALL
MTU = 8
TDMV_HWEC = YES

#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Mon Jul 31 17:10:23 EDT 2006
#
# Note: This file was generated automatically
# by /usr/local/sbin/setup-sangoma program.
#
# If you want to edit this file, it is
# recommended that you use wancfg program
# to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe2 = WAN_AFT_ANALOG, Comment

[interfaces]
w2g1 = wanpipe2, , TDM_VOICE, Comment

[wanpipe2]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 1
PCIBUS = 5
FE_MEDIA = FXO/FXS
TDMV_LAW = MULAW
TDMV_OPERMODE = FCC
RM_BATTTHRESH = 3
RM_BATTDEBOUNCE = 16
FE_NETWORK_SYNC = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 2
TDMV_HW_DTMF = NO
TDMV_HW_FAX_DETECT = NO

[w2g1]
ACTIVE_CH = ALL
MTU = 8
TDMV_HWEC = YES

#-------------------------
#WANROUTER.RC
#-------------------------
#!/bin/sh
# router.rc WAN router meta-configuration file.
#
# This file defines variables used by the router shell scripts
# and should be located in /etc/wanpipe directory. These are:
#
# ROUTER_BOOT = Boot flag (YES/NO).
# WAN_CONF_DIR = Where to put wanpipe config files.
# WAN_INTR_DIR = Where to put wanpipe interface files.
# WAN_LOG = Where to put start-up log file.
# WAN_LOCK = File used as a lock.
# WAN_LOCK_DIR =
# WAN_IP_FORWARD = Enable IP Forwarding on startup.
# WAN_DEVICES="wanpipe1 wanpipe2 "
# loaded on 'wanrouter start'
# (ex: "wanpipe1 wanpipe2 wanpipe3...")
#
# Note: Name of wanpipe devices correspond
# to the configuration files in
# WANPIPE_CONF_DIR directory:
# (ex. /etc/wanpipe/wanpipe1.conf )
#
# Note: This file is 'executed' by the shell script, so
# the usual shell syntax must be observed.
ROUTER_BOOT=YES
WAN_CONF_DIR=/etc/wanpipe
WAN_INTR_DIR=/etc/wanpipe/interfaces
WAN_BIN_DIR=/usr/sbin
WAN_LOG=/var/log/wanrouter
WAN_LOCK=/var/lock/subsys/wanrouter
WAN_LOCK_DIR=/var/lock/subsys
WAN_IP_FORWARD=NO
NEW_IF_TYPE=NO
WAN_LIB_DIR=/etc/wanpipe/lib
WAN_ADSL_LIST=/etc/wanpipe/wan_adsl.list
WAN_ANNEXG_LOAD=NO
WAN_SCTP_LOAD=NO
WAN_LIP_LOAD=NO
WAN_DYN_WANCONFIG=NO
WAN_SCRIPTS_DIR=/etc/wanpipe/scripts
WAN_FIRMWARE_DIR=/etc/wanpipe/firmware
WAN_DEVICES_REV_STOP_ORDER=YES
WAN_DEVICES="wanpipe1 wanpipe2 "
#-------------------------
#END WANROUTER.RC
#-------------------------

ZAPATA-AUTO.CONF
; Autogenerated by /usr/local/sbin/sangoma/setup-sangoma -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived

;Sangoma AFT-A200 [slot:2 bus:5 span:1]
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 1

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 2

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 3

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 4

;Sangoma AFT-A200 [slot:1 bus:5 span:1]
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 25

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 26

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 27

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 28

ZAPTEL.CONF
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2009-10-29
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma AFT-A200 [slot:2 bus:5 span:1]
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4

#Sangoma AFT-A200 [slot:1 bus:5 span:1]
fxsks=25
echocanceller=mg2,25
fxsks=26
echocanceller=mg2,26
fxsks=27
echocanceller=mg2,27
fxsks=28
echocanceller=mg2,28

/etc/dahdi/

---------------------------
#
# /etc/dahdi/genconf_parameters
#
# This file contains parameters that affect the
# dahdi_genconf configuration generator.
#
# Syntax:
# * A comment from '#' to end of line
# * Blank lines ignored
# * Whitespace at end of line trimmed
# * Single valued items:
# key value
# * List valued items:
# key
# value1
# value2
# ...
#

# When generating extensions for chan_dahdi.conf or users.conf etc: the
# extension number will be channel_number+base_exten . The default is:
#base_exten 4000
#
# Make FXS (analog phones) extensions answer immediately (sets
# 'immediate = yes' for them in chan_dahdi.conf). Don't enable this before
# you're read documentation about this option.
#fxs_immediate yes
#
# For FXS (analog phones) - use KS or LS? ks is the only method for
# Asterisk to provide disconnect supervision and thus it would normally
# be preferred and is the default.
#fxs_default_start ls
#
# For FXO (analog lines) - use KS or LS? KS is the default and is
# normally the better choice as it allows detecting hang-ups on many
# lines.
#fxo_default_start ls

# Set tone zone values. This is used for playing tones (busy, dial-tone
# and such). The default is 'us'. This sets the value for both loadzone
# and defaultzone in system.conf .
#lc_country il

# The dialplan context into which to send trunks in chan_dahdi.conf or
# users.conf. The default value is:
#context_lines from-pstn
#
# The dialplan context into which to send extensions in chan_dahdi.conf or
# users.conf. The default value is:
#context_phones from-internal
#
# Two extra contexts for the input ports and output ports of an
# Astribank. Default values are:
#context_input astbank-input
#context_output astbank-output

# A group to put all analog phones in. By default 0, so you can dial to
# the 'first phone available' using Dahdi/g5 .
#group_phones 5
#
# A group in which to put all the channels belonging to some trunk.
# Thus you can dial through "some trunk" using Dahdi/G0/NUMBER
#group_lines 0

# Channels of digital trunk of span N are also added to group 10+N (that
# is: 14 for channels of span 4).

# Do we want to use PtP ('bri') or PtMP ('bri_ptmp') for BRI? PtMP
# allows connecting several CPE devices on the same network device
# (several BRI phones on the same line, kind of like several analog
# phones on the same analog line). However it is generally brings
# unnecessary complexity for a pbx-pbx connection. It is still the
# default as this is normally what you get for a BRI PSTN connection.
#bri_sig_style bri
#
# If this option is set (that is: not remmed-out), BRI NT ports will
# also be set as overlap. This is useful if you want to connect ISDN
# phones.
#brint_overlap

# The echo canceler to use. If you have a hardware echo canceler, just
# leave it be, as this one won't be used anyway.
#
# The default is mg2, but it may change in the future. E.g: a packager
# that bundles a better echo canceler may set it as the default, or
# dahdi_genconf will scan for the "best" echo canceler.
#
#echo_can hpec
#echo_can oslec
#echo_can none # to avoid echo canceler altogether

# bri_hardhdlc:
# 'yes' - forces BRI cards to use 'hardhdlc' signalling.
# 'no' - forces BRI cards to use 'dchan' (an alias for 'fcshdlc').
# It is usefull only for dahdi with the bristuff patch.
#
# If it is left out or set to 'auto':
# * Information supplied by the driver is used to decide:
# - Currently implemented for Astribanks.
# - Taken from /sys/bus/xpds/drivers/bri/dchan_hardhdlc.
# * Without this info, falls back to 'hardhdlc'.
#bri_hardhdlc auto

# For MFC/R2 Support: 'R2' will make E1 spans CAS and with the
# 'r2_idle_bits' bit in system.conf . It will also make dahdi_genconf default
# to generating the channels of this card in unicall.conf rather than in
# chan_dahdi.conf . The meaning of this may be extended somehow to support
# R2 through openr2/chan_dahdi later on.
#pri_connection_type R2
#r2_idle_bits 1101

# pri_termtype contains a list of settings:
# Currently the only setting is for TE or NT (the default is TE). This
# sets two different but normally related configuration items:
#
# A TE span will have *_cpe signalling in Asterisk and will also get
# timing from the remote party.
#
# A NT span will have *_new signalling in Asterisk and will provide
# timing to the remote party.
#
# pri_termtype is a list if span specs and configuration (TE/NT) for
# them. The first spec that matches is used. The matching is of perl
# regular expressions, but with '*' and '?' have their meaning from
# basic regular expressions.
#pri_termtype
# SPAN/2 NT
# SPAN/4 NT
#
#pri_termtype
# SPAN/* NT
#

---------------------------
#INIT.CONF
# Shell settings for Dahdi initialization scripts.
# This replaces the old/per-platform files (/etc/sysconfig/zaptel,
# /etc/defaults/zaptel)
#

# The maximal timeout (seconds) to wait for udevd to finish generating
# device nodes after the modules have loaded and before running dahdi_cfg.
#DAHDI_DEV_TIMEOUT=40

# Override settings for xpp_fxloader
#XPP_FIRMWARE_DIR=/usr/share/dahdi
#XPP_HOTPLUG_DISABLED=yes

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

#MODULES
# Contains the list of modules to be loaded / unloaded by /etc/init.d/dahdi.
#
# NOTE: Please add/edit /etc/modprobe.d/dahdi or /etc/modprobe.conf if you
# would like to add any module parameters.
#
# Format of this file: list of modules, each in its own line.
# Anything after a '#' is ignore, likewise trailing and leading
# whitespaces and empty lines.

# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
# Digium TE220: PCI-Express dual-port T1/E1/J1
# Digium TE420: PCI-Express quad-port T1/E1/J1
wct4xxp

# Digium TE120P: PCI single-port T1/E1/J1
# Digium TE121: PCI-Express single-port T1/E1/J1
# Digium TE122: PCI single-port T1/E1/J1
wcte12xp

# Digium T100P: PCI single-port T1
# Digium E100P: PCI single-port E1
wct1xxp

# Digium TE110P: PCI single-port T1/E1/J1
wcte11xp

# Digium TDM2400P/AEX2400: up to 24 analog ports
# Digium TDM800P/AEX800: up to 8 analog ports
# Digium TDM410P/AEX410: up to 4 analog ports
wctdm24xxp

# OpenVOx
opvxa1200

# X100P - Single port FXO interface
# X101P - Single port FXO interface
wcfxo

# Digium TDM400P: up to 4 analog ports
wctdm

# Digium B410P: 4 NT/TE BRI ports
wcb4xxp

# Digium TC400B: G729 / G723 Transcoding Engine
wctc4xxp

# Xorcom Astribank Devices
xpp_usb

--------------------------------
SYSTEM.CONF

#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2009-11-08
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma AFT-A200 [slot:2 bus:5 span:1]
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4
#Sangoma AFT-A200 [slot:1 bus:5 span:2]
fxsks=25
echocanceller=mg2,25
fxsks=26
echocanceller=mg2,26
fxsks=27
echocanceller=mg2,27
fxsks=28
echocanceller=mg2,28

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

/etc/asterisk/chan_dahdi.conf

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

;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2009-11-08
;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 AFT-A200 [slot:2 bus:5 span:1]
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 1

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 2

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 3

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 4

;Sangoma AFT-A200 [slot:1 bus:5 span:2]
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 25

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 26

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 27

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 28

RE



KhunIT
Posts: 7
Member Since:
2008-02-21
Not resolve yet but got

Not resolve yet but got these directions from Sangoma Thailand tech support.
Seems be directions to use an older version of the driver.... Trying it now....

yum install kernel-devel ( yum install kernel-xen-devel if you go with xen )
yum install libtool
yum install lksctp-tools-devel

cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/ast...
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/...

tar -zxvf asterisk-1.4.26.tar.gz
cd asterisk-1.4.26
./configure
make

cd ..
tar -zxvf dahdi-linux-2.1.0.4.tar.gz
cd dahdi-linux-2.1.0.4
make

cd ..
tar -zxvf wanpipe-3.4.4.tgz
cd wanpipe-3.4.4
amportal stop
wanrouter stop
service dahdi stop
./Setup install

amportal restart



KhunIT
Posts: 7
Member Since:
2008-02-21
Problem SOLVED! The below

Problem SOLVED!

The below steps solved my problem and all INBOUND and OUTBOUND calls are working.
I did NOT though do the steps to install the OLDer version of Wanpipe 3.4.4 I"m at Wanpipe version 3.5.4.8 still.

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

yum install kernel-devel ( yum install kernel-xen-devel if you go with xen )
yum install libtool
yum install lksctp-tools-devel

cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/ast...
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/...

tar -zxvf asterisk-1.4.26.tar.gz
cd asterisk-1.4.26
./configure
make

cd ..
tar -zxvf dahdi-linux-2.1.0.4.tar.gz
cd dahdi-linux-2.1.0.4
make



KhunIT
Posts: 7
Member Since:
2008-02-21
I thought this problem was

I thought this problem was fixed but it keeps coming back after a server reboot. It will say ALL CIRCUITS ARE BUSY NOW.
THe work around is to UNPLUG all the lines going into the SANGOMA Cards then Plug them back in after a REBOOT.
Then users can dial out.
I think there is version problems with the DAHDI drivers since before I did not have this issue with the ZAPTEL Drivers.

[voip]# rpm -qa |grep dahdi
kmod-dahdi-linux-2.2.0-3_RC4_trixbox.2.6.18_128.1.10.el5
dahdi-linux-2.2.0-4_trixbox
dahdi-tools-2.2.0-4_trixbox
asterisk16-dahdi-1.6.0.9-3_trixbox
dahdi-tools-doc-2.2.0-4_trixbox

[voip]# rpm -qa |grep wanpipe
wanpipe-util-3.5.4.8-0
wanpipe-modules-2.6.18-128.1.10.el5-3.5.4.8-0

---
KhunIT@Hotmail.com
Netropolitan Works ( http://www.NetropolitanWorks.com )
SEO Bangkok Thailand ( http://www.SEO-Bangkok-Thailand.com )



marc.sangoma
Posts: 373
Member Since:
2008-04-08
Hi, Please go to

Hi,
Please go to http://wiki.sangoma.com/Asterisk-FAQ#outboundcalls-1.4.22 and this will show you how to attempt to fix this, but if this does not work then you will have to contact the Asterisk developers or Trixbox support to see if there is a patch for this issue. The reason for this is the issue is with the Dahdi/Asterisk line detection and not our card. You can check the voltage on the line as shown in step 5 at http://wiki.sangoma.com/wanpipe-linux-asterisk-debugging#analog_d... and you will see the line. If you have any questions send an email to techdesk@sangoma.com referencing this post.

--

Marc



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.