[Asterisk-Users] problems with outbound routing
David Newman
dnewman at networktest.com
Wed Jul 13 19:22:37 MST 2005
AAH 1.3, Digium 4-port FXO card connected to PSTN
I am having problems with outbound calls, where the call goes to either an
error message from the PSTN, or a fax number, or a wrong number. It works
correctly maybe 1 time in 10.
Also, outbound calls *sometimes* work if they are numbers previously dialed.
I've pasted below the relevant parts from extensions-additional and
zapata.conf, as well as a bad call log.
Inbound calls work fine. What's wrong with outbound?
many thanks
dn
[bad call log]
[root at asterisk1 root]# asterisk -rvvvvvvc
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Not found (No such file or
directory)
Asterisk 1.0.9, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
Connected to Asterisk 1.0.9 currently running on asterisk1 (pid = 1414)
Verbosity was 5 and is now 6
-- Executing Macro("SIP/101-1284", "dialout-trunk|1|12125551212|") in new
stack
-- Executing GotoIf("SIP/101-1284", "1?3:2)") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("SIP/101-1284", "record-enable|101|OUT") in new stack
-- Executing GotoIf("SIP/101-1284", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing GotoIf("SIP/101-1284", "1?5:8") in new stack
-- Goto (macro-record-enable,s,5)
-- Executing DBget("SIP/101-1284", "RecEnable=RECORD-OUT/101") in new stack
-- DBget: varname=RecEnable, family=RECORD-OUT, key=101
-- DBget: Value not found in database.
-- Executing SetVar("SIP/101-1284",
"CALLFILENAME=OUT101-20050713-110913-1121278153.6") in new stack
-- Executing Goto("SIP/101-1284", "s|14") in new stack
-- Goto (macro-record-enable,s,14)
-- Executing GotoIf("SIP/101-1284", "0?15:99") in new stack
-- Goto (macro-record-enable,s,99)
-- Executing NoOp("SIP/101-1284", "NO RECORDING NEEDED") in new stack
-- Executing GotoIf("SIP/101-1284", "1?7") in new stack
-- Goto (macro-dialout-trunk,s,7)
-- Executing GotoIf("SIP/101-1284", "fooNetwork?9") in new stack
-- Executing SetCallerID("SIP/101-1284", "Network Test") in new stack
-- Executing SetGroup("SIP/101-1284", "OUT_1") in new stack
-- Executing CheckGroup("SIP/101-1284", "2") in new stack
-- Executing SetVar("SIP/101-1284", "DIAL_NUMBER=12125551212") in new stack
-- Executing SetVar("SIP/101-1284", "DIAL_TRUNK=1") in new stack
-- Executing AGI("SIP/101-1284", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
-- AGI Script fixlocalprefix completed, returning 0
-- Executing SetVar("SIP/101-1284", "OUTNUM=12125551212") in new stack
-- Executing Cut("SIP/101-1284", "custom=OUT_1|:|1") in new stack
-- Executing GotoIf("SIP/101-1284", "0?19") in new stack
-- Executing Dial("SIP/101-1284", "ZAP/g0/12125551212") in new stack
-- Called g0/12125551212
-- Zap/1-1 answered SIP/101-1284
-- Hungup 'Zap/1-1'
== Spawn extension (macro-dialout-trunk, s, 17) exited non-zero on
'SIP/101-1284' in macro 'dialout-trunk'
== Spawn extension (from-internal, 12125551212, 1) exited non-zero on
'SIP/101-1284'
-- Executing Macro("SIP/101-1284", "hangupcall") in new stack
-- Executing ResetCDR("SIP/101-1284", "w") in new stack
-- Executing NoCDR("SIP/101-1284", "") in new stack
-- Executing Wait("SIP/101-1284", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/101-1284' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-1284'
asterisk1*CLI>
[excerpt from extensions-additional.conf]
[outrt-001-outside]
include => outrt-001-outside-custom
exten => 911,1,Macro(dialout-trunk,1,${EXTEN},)
exten => 911,2,Macro(outisbusy) ; No available circuits
exten => 9911,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => 9911,2,Macro(outisbusy) ; No available circuits
exten => _011.,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _011.,2,Macro(outisbusy) ; No available circuits
exten => _1800NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _1800NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _1866NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _1866NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _1877NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _1877NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _1888NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _1888NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _1NXXNXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _1NXXNXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _800NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _800NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _866NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _866NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _877NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _877NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _888NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _888NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9011.,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9011.,2,Macro(outisbusy) ; No available circuits
exten => _91800NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _91800NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _91866NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _91866NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _91877NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _91877NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _91888NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _91888NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _91NXXNXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _91NXXNXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9800NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9800NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9866NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9866NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9877NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9877NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9888NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9888NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9NXXNXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9NXXNXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _9NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},)
exten => _9NXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _NXXNXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _NXXNXXXXXX,2,Macro(outisbusy) ; No available circuits
exten => _NXXXXXX,1,Macro(dialout-trunk,1,${EXTEN},)
exten => _NXXXXXX,2,Macro(outisbusy) ; No available circuits
[zapata.conf]
;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
language=en
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=6.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include AMP configs
#include zapata_additional.conf
;Include genzaptelconf configs
#include zapata-auto.conf
[note that zapata_additional.conf is empty]
More information about the asterisk-users
mailing list