Cannot Dial Out ZAPTEL

I have a ZAP trunk, that has g1 as the identifier. When I setup an outbound route, and dial out with dial pattern 9|. I get a :

– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing NoOp(“SIP/100-b780a638”, “Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing Macro(“SIP/100-b780a638”, “outisbusy|”) in new stack
– Executing Playback(“SIP/100-b780a638”, “all-circuits-busy-now|noanswer”) in new stack

It seems pretty common yet I have yet to find a solution? Any ideas?

[code]span=1,0,0,ccs,hdb3,crc4,yellow
span=2,0,0,ccs,hdb3,crc4,yellow
span=3,0,0,ccs,hdb3,crc4,yellow
span=4,0,0,ccs,hdb3,crc4,yellow

bchan = 1-15, 17-31
dchan = 16
bchan = 32-46,48-62
dchan = 47
bchan = 63-77,79-93
dchan = 78
bchan = 94-108,110-124
dchan = 109

loadzone = uk
defaultzone = uk[/code]

[code]
[channels]
context=zap-in
switchtype=euroisdn
pridialplan=national
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
rxgain=0.0
txgain=0.0

group=1
callgroup=1
pickupgroup=1

immediate=no
callprogress=no

callerid=asreceived
group=1
signalling=pri_cpe
channel => 1-15,17-31

group=2
signalling=pri_cpe
channel => 32-46,48-62

group=3
signalling=pri_cpe
channel => 63-77,79-93

group=4
signalling=pri_cpe
channel => 94-108,110-124[/code]

Need more detail.

Does Asterisk see your channels?
If yes, then does inbound work?
How many digits is your provider requiring?

zap show channels shows all the 124 channels. Inbound IS working. I think the provider requires 11. the card is a TE410p.

For example 01545 883005

[root@asterisk1 asterisk]# tail -f /var/log/asterisk/full
Apr  3 16:35:06 DEBUG[6105] manager.c: Manager received command 'login'
Apr  3 16:35:06 DEBUG[6105] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Apr  3 16:35:06 DEBUG[6105] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Apr  3 16:35:06 DEBUG[6105] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Apr  3 16:35:06 DEBUG[6105] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Apr  3 16:35:59 DEBUG[6050] chan_sip.c: Stopping retransmission on '67856a7e1e0c835d150be3e44ae24043@192.168.16.180' of Request 102: Match Found
Apr  3 16:35:59 DEBUG[6050] chan_sip.c: Stopping retransmission on '3a5a2ed82b4863fb5b8215a04b5be76c@192.168.16.180' of Request 102: Match Found
Apr  3 16:36:04 DEBUG[6062] manager.c: Manager received command 'Command'
Apr  3 16:36:04 DEBUG[6062] manager.c: Manager received command 'Command'
Apr  3 16:36:04 DEBUG[6062] manager.c: Manager received command 'Command'
  recordingcheck|20070403-163647|1175614607.5: Outbound recording not enabled
Apr  3 16:36:47 DEBUG[6050] chan_sip.c: Setting NAT on RTP to 524288
Apr  3 16:36:47 DEBUG[6050] chan_sip.c: Stopping retransmission on '816D0822-2411-4EFB-876A-7ACD9950994B@192.168.16.129' of Response 1: Match Found
Apr  3 16:36:47 DEBUG[6050] chan_sip.c: Setting NAT on RTP to 524288
Apr  3 16:36:47 DEBUG[6050] chan_sip.c: Checking SIP call limits for device 100
Apr  3 16:36:47 DEBUG[6050] chan_sip.c: build_route: Contact hop: <sip:100@192.168.16.129:5060>
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is 'device'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '100'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '0'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Not taking any branch
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '0'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Not taking any branch
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '100'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '100'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is 'Chris Pottrell'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '0'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Not taking any branch
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '100'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '"Chris Pottrell" <100>'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '100'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '0'
Apr  3 16:36:47 VERBOSE[6109] logger.c:   recordingcheck|20070403-163647|1175614607.5: Outbound recording not enabled
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '0'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Not taking any branch
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is ''
Apr  3 16:36:47 DEBUG[6109] db.c: Unable to find key '100/emergency_cid' in family 'DEVICE'
Apr  3 16:36:47 DEBUG[6109] func_db.c: DB: DEVICE/100/emergency_cid not found in database.
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is ''
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is '"Chris Pottrell" <100>'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Function result is 'ZAP/g1'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Expression result is '0'
Apr  3 16:36:47 DEBUG[6109] pbx.c: Not taking any branch
Apr  3 16:36:47 DEBUG[6054] chan_zap.c: Queuing frame from PRI_EVENT_PROCEEDING on channel 0/1 span 1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Hangup: channel: 1 index = 0, normal = 18, callwait = -1, thirdcall = -1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Not yet hungup...  Calling hangup once with icause, and clearing call
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: disabled echo cancellation on channel 1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Updated conferencing on 1, with 0 conference users
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1
Apr  3 16:36:49 DEBUG[6109] chan_zap.c: disabled echo cancellation on channel 1
Apr  3 16:36:49 DEBUG[6109] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Apr  3 16:36:49 DEBUG[6109] channel.c: Scheduling timer at 160 sample intervals
Apr  3 16:36:50 DEBUG[6109] channel.c: Scheduling timer at 0 sample intervals
Apr  3 16:36:50 DEBUG[6109] channel.c: Scheduling timer at 0 sample intervals
Apr  3 16:36:50 DEBUG[6109] channel.c: Scheduling timer at 160 sample intervals
Apr  3 16:36:53 DEBUG[6109] channel.c: Scheduling timer at 0 sample intervals
Apr  3 16:36:53 DEBUG[6109] channel.c: Scheduling timer at 0 sample intervals
Apr  3 16:36:53 DEBUG[6109] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Apr  3 16:36:53 DEBUG[6109] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2007-04-03 16:36:47','\"Chris Pottrell\" <100>','100','901225737330','from-internal', 'SIP/100-0985e438','Zap/1-1','ResetCDR','w',6,0,'NO ANSWER',3,'100','1175614607.5')
Apr  3 16:36:53 WARNING[6109] cdr.c: CDR on channel 'SIP/100-0985e438' not posted
Apr  3 16:36:53 WARNING[6109] cdr.c: CDR on channel 'SIP/100-0985e438' lacks end
Apr  3 16:36:53 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:53 DEBUG[6109] pbx.c: Expression result is '1'
Apr  3 16:36:55 DEBUG[6050] chan_sip.c: Auto destroying call '72E5AE9D-D646-4068-BBA8-08A8E6B564C0@192.168.16.129'
Apr  3 16:36:57 DEBUG[6109] chan_sip.c: update_call_counter(100) - decrement call limit counter
Apr  3 16:36:57 DEBUG[6050] chan_sip.c: Stopping retransmission on '816D0822-2411-4EFB-876A-7ACD9950994B@192.168.16.129' of Response 2: Match Found
Apr  3 16:36:59 DEBUG[6050] chan_sip.c: Stopping retransmission on '099fad4f2b804a380c1b0a900c9aa395@192.168.16.180' of Request 102: Match Found
Apr  3 16:36:59 DEBUG[6050] chan_sip.c: Stopping retransmission on '05d37ebf21c919bd15c7f177143dcc20@192.168.16.180' of Request 102: Match Found

Screenshot of route setup : conceptmagazines.co.uk/routes.jpg

I can post any other config if required. Does ANYONE have any idea regarding this?

I have 10 Zap trunks setup, from 1-10 (I did have it setup as g1) but instead now im using individual channels like suggested from another forum, but still it fails.

try setting pridialplan=unknown prilocaldialplan=unknown in zapata.conf

and my advice would be to go back to using trunk groups, and using G1 as the trunk identifier instead … inbound uses channels from the bottom up, outbound from the top down.