Can't dial out on Sangoma A101DE

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Can't dial out on Sangoma A101DE

Postby farmerjim » Thu Nov 10, 2011 7:58 am

I'm having trouble dialling out on vicibox using a Sangoma A101DE E1 card.
I've installed vicidial redux 3.1.12 as per the walkthrough. Created extensions and can make an internal call.
I ran wancfg_dahdi and answered the questions correctly (I think). Now I can't make an external call. When I try to make an external call asterisk reports
Asterisk 1.4.39.2-vici, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.39.2-vici currently running on vicibox (pid = 2665)
Verbosity is at least 21
[Nov 10 12:52:06] == Parsing '/etc/asterisk/manager.conf': [Nov 10 12:52:06] Found
[Nov 10 12:52:06] == Manager 'sendcron' logged on from 127.0.0.1
[Nov 10 12:52:06] == Manager 'sendcron' logged off from 127.0.0.1
[Nov 10 12:52:10] NOTICE[2733]: chan_sip.c:15566 handle_request_invite: Call from '203' to extension '07881525795' rejected because extension not found.
vicibox*CLI>


Can anyone point me in the right direction please?

Dell T110 server 4Gb | Vicibox redux 3.1.12 | asterisk 1.4.39.2-vici | VERSION: 2.2.1-237 BUILD: 100510-2015
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby mark_flynn » Thu Nov 10, 2011 9:06 am

Can you post your Dialplan used for this call?
VERSION: 2.4-362a
BUILD: 120316-1203
mark_flynn
 
Posts: 78
Joined: Fri Sep 23, 2011 8:15 am
Location: Manchester, UK

Postby farmerjim » Thu Nov 10, 2011 9:20 am

You'll have to guide me a little on this as I'm a linux/asterisk beginner just following the manual.
Do you mean the contents of extensions.conf?
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby mark_flynn » Thu Nov 10, 2011 9:39 am

Did you do this first:

1.Type wancfg_dahdi

2. Answer the questions on screen

3. once it has done type dahdi_cfg -vvvv

4. asterisk -r

5. module reload chan_dahdi.so

6. dahdi show status

7. dahdi show channels

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

Dial plan is in your extensions.conf under the title.

; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,tTor)
exten => _XXXXXXXXXXX,3,Hangup

where TRUNKX is:

TRUNKX=DAHDI/g1

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

Also on your phone setup make sure you change zap/g1 to DAHDI/g1

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

If you need to understand extensions.conf abit more read this:

http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf
VERSION: 2.4-362a
BUILD: 120316-1203
mark_flynn
 
Posts: 78
Joined: Fri Sep 23, 2011 8:15 am
Location: Manchester, UK

Postby farmerjim » Thu Nov 10, 2011 11:08 am

I had done this...
1.Type wancfg_dahdi

2. Answer the questions on screen

3. once it has done type dahdi_cfg -vvvv


...but not this...
4. asterisk -r

5. module reload chan_dahdi.so

6. dahdi show status

7. dahdi show channels

...so I've now executed them.
The dial plan was 'out of the box' so edited it as per your example and edited the entry at the top of extensions.conf from TRUNKX=Zap/g1 to TRUNKX=DAHDI/g1.

Now when I make a call (after a reboot) the asterisk output is
[Nov 10 16:01:04] -- Executing [07881525795@default:1] AGI("SIP/203-00000001", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 10 16:01:04] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 10 16:01:04] -- Executing [07881525795@default:2] Dial("SIP/203-00000001", "DAHDI/g1/7881525795||To") in new stack
[Nov 10 16:01:04] WARNING[3062]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Nov 10 16:01:04] == Everyone is busy/congested at this time (1:0/0/1)
[Nov 10 16:01:04] -- Executing [07881525795@default:3] Hangup("SIP/203-00000001", "") in new stack
[Nov 10 16:01:04] == Spawn extension (default, 07881525795, 3) exited non-zero on 'SIP/203-00000001'
[Nov 10 16:01:04] -- Executing [h@default:1] DeadAGI("SIP/203-00000001", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Nov 10 16:01:04] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby mark_flynn » Thu Nov 10, 2011 11:18 am

"DAHDI/g1/7881525795||To") in new stack


Your missing a 0, Have you put an X in the dial prefix on Campaign settings?

Also this might not work for you because your provider might require a dial prefix.

But try putting X in dial prefix and see what happens.

-------------
The code i posted was my own code so it might not work for your setup it was a guide
-------------

Hope its helpful
VERSION: 2.4-362a
BUILD: 120316-1203
mark_flynn
 
Posts: 78
Joined: Fri Sep 23, 2011 8:15 am
Location: Manchester, UK

Postby farmerjim » Thu Nov 10, 2011 11:31 am

At the moment I'm dialling manually to test the card and connectivity at the moment. The dial plan currently reads

; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,tTor)
exten => _XXXXXXXXXXX,3,Hangup

I'm in UK so need 11 digit number and provider doesn't need a prefix. I'll read up on extensions.conf. Thanks for your help :)
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby mark_flynn » Thu Nov 10, 2011 12:53 pm

DId you put an "X" in the Dial Prefix section on Campaign details screen. (Dial Prefix:)

Also i had to set "Omit Phone Code:" to Y
VERSION: 2.4-362a
BUILD: 120316-1203
mark_flynn
 
Posts: 78
Joined: Fri Sep 23, 2011 8:15 am
Location: Manchester, UK

Postby farmerjim » Fri Nov 11, 2011 8:22 am

I think I'm getting somewhere but not sure what you mean't by this
Also on your phone setup make sure you change zap/g1 to DAHDI/g1

Do you mean change TRUNKX=Zap/r1 to TRUNKX=DAHDI/g1 in the globals section of extensions.conf. I also have a TRUNK=Zap/r1 entry in there.
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby farmerjim » Sat Nov 12, 2011 4:46 pm

I've made tha changes suggested above and still can't get an out bound call on the Sangoma A101. Not tried a campaign call yet as I want to get manual dialling working first.
The asterisk output from an attempted call is
[Nov 12 21:09:23] == Parsing '/etc/asterisk/users.conf': [Nov 12 21:09:23] Found
[Nov 12 21:09:29] -- Executing [9xxxxxxxxxxx@default:1] AGI("SIP/202-00000004", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 12 21:09:29] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 12 21:09:29] -- Executing [9xxxxxxxxxxx@default:2] Dial("SIP/202-00000004", "DAHDI/g1/xxxxxxxxxxx||To") in new stack
[Nov 12 21:09:29] WARNING[3803]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Nov 12 21:09:29] == Everyone is busy/congested at this time (1:0/0/1)
[Nov 12 21:09:29] -- Executing [9xxxxxxxxxxx@default:3] Hangup("SIP/202-00000004", "") in new stack
[Nov 12 21:09:29] == Spawn extension (default, 9xxxxxxxxxxx, 3) exited non-zero on 'SIP/202-00000004'
[Nov 12 21:09:29] -- Executing [h@default:1] DeadAGI("SIP/202-00000004", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Nov 12 21:09:29] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
vicibox*CLI>
(I've replaced the number I'm attempting with xxxxxxxxxxx)

Dahdi hardware
vicibox:~ # dahdi_hardware
pci:0000:06:04.0 wanpipe- 1923:0040 Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card

/etc/dahdi/system.conf contents
loadzone=us
defaultzone=us

#Sangoma A101 port 1 [slot:4 bus:6 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
echocanceller=mg2,1-15,17-31
hardhdlc=16

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

/etc/asterisk/chan_dahdi.conf
[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=tes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

;Sangoma A101 port 1 [slot:4 bus:6 span:1] <wanpipe1>
switchtype=euroisdn
context=from-pstn
group=0
echocancel=yes
signalling=pri_cpe
channel =>1-15,17-31

contents of extensions.conf
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=Zap/r1 ; Trunk interface
TRUNKX=DAHDI/g0 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk

; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _9XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _9XXXXXXXXXXX,3,Hangup

Let me know if you need me to show any more information.
Any help gratefully received as I'm stuck with this now!
Vicidial-redux 3.1.12 from iso | Asterisk 1.4.39.2-vici | Sangoma A101D | no additional software | VICIdial VERSION: 2.4-346a BUILD: 111102-1930
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby williamconley » Sat Nov 12, 2011 7:25 pm

farmerjim wrote:I think I'm getting somewhere but not sure what you mean't by this
Also on your phone setup make sure you change zap/g1 to DAHDI/g1

Do you mean change TRUNKX=Zap/r1 to TRUNKX=DAHDI/g1 in the globals section of extensions.conf. I also have a TRUNK=Zap/r1 entry in there.
yep. the system is presently using zap, you want dahdi, it gets the zap from the globals variable definition. so change the globals definition ... and it will dial with dahdi instead of zap. you can use r1 or g1 depending on your pattern intent (look up the dahdi dial group options for asterisk with google).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby farmerjim » Sun Nov 13, 2011 5:35 am

Thanks for clarifying that point. I've changed the globals section in extensions.conf to read
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=Zap/r1 ; Trunk interface
TRUNKX=DAHDI/g0 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk

; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _9XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _9XXXXXXXXXXX,3,Hangup

With all other settings unchanged. Now when I make a call Zoiper reports 'no route to destination' and the output from asterisk is
[Nov 13 09:56:32] -- Executing [9xxxxxxxxxxx@default:1] AGI("SIP/202-00000002", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 13 09:56:32] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 13 09:56:32] -- Executing [9xxxxxxxxxxx@default:2] Dial("SIP/202-00000002", "DAHDI/g0/xxxxxxxxxxx||To") in new stack
[Nov 13 09:56:32] -- Requested transfer capability: 0x00 - SPEECH
[Nov 13 09:56:32] -- Called g0/xxxxxxxxxxx
[Nov 13 09:56:32] -- DAHDI/1-1 is proceeding passing it to SIP/202-00000002
[Nov 13 09:56:34] -- Channel 0/1, span 1 got hangup request, cause 1
[Nov 13 09:56:34] WARNING[10920]: app_dial.c:801 wait_for_answer: Unable to forward voice or dtmf
[Nov 13 09:56:34] -- Hungup 'DAHDI/1-1'
[Nov 13 09:56:34] == Everyone is busy/congested at this time (1:0/0/1)
[Nov 13 09:56:34] -- Executing [9xxxxxxxxxxx@default:3] Hangup("SIP/202-00000002", "") in new stack
[Nov 13 09:56:34] == Spawn extension (default, 9xxxxxxxxxxx, 3) exited non-zero on 'SIP/202-00000002'
[Nov 13 09:56:34] -- Executing [h@default:1] DeadAGI("SIP/202-00000002", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL----------") in new stack
[Nov 13 09:56:34] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
vicibox*CLI>
Vicidial-redux 3.1.12 from iso | Asterisk 1.4.39.2-vici | Sangoma A101D | no additional software | VICIdial VERSION: 2.4-346a BUILD: 111102-1930
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby williamconley » Sun Nov 13, 2011 3:39 pm

Is this card a PSTN or an E1/T1 connection? If it's a PSTN, plug a regular phone into the PSTN instead of vicidial and test by dialing the number you replaced with xxxxxxxxxx. Do so on all available plugs.

Also try reversing the trunk order in case some work and some don't.

Are you trying auto-dial or manual dial? (try manual dial which may pass through audio of the error such as the requirement to dial a 1 or 0 or NOT dial a 1 or 0 before the number).

Then call gardo. He does this in his sleep. I think he's even memorized the model numbers of the cards. We rarely deal with telephony cards. One hour of Gardo's time could resolve your entire issue ... and you'd be UP. 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby farmerjim » Tue Nov 15, 2011 12:18 pm

Finally got to the bottom of this one
Firstly I'm a beginner with VICIdial and asterisk and hadn't realised the significance of
${EXTEN:n}
where this will strip the first n digits from the number to be dialled.
I also need to prefix the number I'm calling with 1284 to route the call for billing purposes.
To cut a (very) long story short I had to add
pridialplan=unknown
prilocaldialplan=unknown
to chan_dahdi.conf, amend my dial plan to
exten => _9XXXXXXXXXXX,2,Dial(${TRUNKX}/1284${EXTEN:1},,To)
and use 9 as a dial prefix in a campaign. Now everything works.
My challenge was a lack of knowledge of VICIdial, asterisk and configuring the dahdi channels (not necessarily in that order!).
Thanks everyone for your help, I've learned a lot from the experience so far :)
Vicidial-redux 3.1.12 from iso | Asterisk 1.4.39.2-vici | Sangoma A101D | no additional software | VICIdial VERSION: 2.4-346a BUILD: 111102-1930
farmerjim
 
Posts: 58
Joined: Sun Nov 06, 2011 6:15 am
Location: Manchester

Postby williamconley » Tue Nov 15, 2011 9:05 pm

Welcome to Matt's world Jim. Happy dialing. Make no mistake: we all started out like this. Now help a few newbies!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 104 guests