Michael Collins
2006-Feb-13 06:37 UTC
[Asterisk-Users] problem with outgoing calls Unable to createchannel of type 'ZAP' (cause 34 - Circuit/channel congestion)
Nik, Just curious - what is your telco setup? Do you have PRI with the specified D channels? You need to make sure that your telco is set up to have the D channels on 16 and 47. When you first start Asterisk, or when you log on to the CLI, do you ever see messages stating the B channels are successfully started? Let us know. -MC -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of nik600 Sent: Monday, February 13, 2006 3:24 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] problem with outgoing calls Unable to createchannel of type 'ZAP' (cause 34 - Circuit/channel congestion) hi i've configured a TE205P on asterisk at home this is my zaptel.conf span=1,0,0,ccs,hdb3,crc4,yellow span=2,0,0,ccs,hdb3,crc4,yellow bchan = 1-15, 17-31 dchan = 16 bchan = 32-46,48-62 dchan = 47 loadzone = it defaultzone = it and my zapata.conf signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master switchtype=national usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes echotraining=400 rxgain=0.0 txgain=0.0 group=0 callgroup=1 pickupgroup=1 immediate=no faxdetect=both faxdetect=incoming faxdetect=outgoing faxdetect=no context=default ; Points to the default context of your extensions.conf channel => 1-15,17-31,32-46,48-62; for E1 i've configured the outgoing calls [outrt-001-9_outside] include => outrt-001-9_outside-custom exten => _9XXXXXXXXXX,1,Macro(dialout-trunk,1,${EXTEN:1},) exten => _9XXXXXXXXXX,2,Macro(outisbusy) ; No available circuits if i try to call i get: Feb 13 06:19:44 DEBUG[3637] chan_sip.c: Setting NAT on RTP to 0 Feb 13 06:19:44 DEBUG[3637] chan_sip.c: Stopping retransmission on '6EE9B5C0-2043-9AC4-9F18-76F84A25A698@192.168.100.180' of Response 65111: Match Found Feb 13 06:19:44 DEBUG[3637] chan_sip.c: Setting NAT on RTP to 0 Feb 13 06:19:44 DEBUG[3637] chan_sip.c: Checking SIP call limits for device 100 Feb 13 06:19:44 DEBUG[3637] chan_sip.c: build_route: Contact hop: <sip:100@192.168.100.180:5060> Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "dialout-trunk|1|33399999999|") in new stack Feb 13 06:19:44 DEBUG[5079] pbx.c: Expression result is '1' Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "1?3:2)") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Goto (macro-dialout-trunk,s,3) Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "user-callerid") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing DBget("SIP/100-611e", "AMPUSER=DEVICE/100/user") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: varname=AMPUSER, family=DEVICE, key=100/user Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: set variable AMPUSER to 100 Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing DBget("SIP/100-611e", "AMPUSERCIDNAME=AMPUSER/100/cidname") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=100/cidname Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: set variable AMPUSERCIDNAME to 100 Feb 13 06:19:44 DEBUG[5079] pbx.c: Expression result is '0' Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "0?5") in new stack Feb 13 06:19:44 DEBUG[5079] pbx.c: Not taking any branch Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing SetCallerID("SIP/100-611e", ""100" <100>") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing NoOp("SIP/100-611e", "Using CallerID "100" <100>") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "record-enable|100|OUT") in new stack Feb 13 06:19:44 DEBUG[5079] pbx.c: Function result is '0' Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "0 > 0?2:4") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Goto (macro-record-enable,s,4) Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing AGI("SIP/100-611e", "recordingcheck|20060213-061944|1139829584.46") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck Feb 13 06:19:44 VERBOSE[5079] logger.c: recordingcheck|20060213-061944|1139829584.46: Outbound recording not enabled Feb 13 06:19:44 VERBOSE[5079] logger.c: -- AGI Script recordingcheck completed, returning 0 Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing NoOp("SIP/100-611e", "No recording needed") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "outbound-callerid|1") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing DBget("SIP/100-611e", "USEROUTCID=AMPUSER/100/outboundcid") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: varname=USEROUTCID, family=AMPUSER, key=100/outboundcid Feb 13 06:19:44 VERBOSE[5079] logger.c: -- DBget: set variable USEROUTCID to 100 Feb 13 06:19:44 DEBUG[5079] pbx.c: Expression result is '1' Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "1?4") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Goto (macro-outbound-callerid,s,4) Feb 13 06:19:44 DEBUG[5079] pbx.c: Expression result is '0' Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "0?6") in new stack Feb 13 06:19:44 DEBUG[5079] pbx.c: Not taking any branch Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing SetCallerID("SIP/100-611e", "100") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing NoOp("SIP/100-611e", "CallerID set to 100") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing SetGroup("SIP/100-611e", "OUT_1") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing SetVar("SIP/100-611e", "DIAL_TRUNK=1") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Executing AGI("SIP/100-611e", "fixlocalprefix") in new stack Feb 13 06:19:44 VERBOSE[5079] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix Feb 13 06:19:45 VERBOSE[5079] logger.c: fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf Feb 13 06:19:45 VERBOSE[5079] logger.c: -- AGI Script fixlocalprefix completed, returning 0 Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing SetVar("SIP/100-611e", "OUTNUM=33399999999") in new stack Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing Cut("SIP/100-611e", "custom=OUT_1|:|1") in new stack Feb 13 06:19:45 WARNING[5079] ast_expr2.y: non-numeric argument Feb 13 06:19:45 DEBUG[5079] pbx.c: Expression result is '0' Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing GotoIf("SIP/100-611e", "0?16") in new stack Feb 13 06:19:45 DEBUG[5079] pbx.c: Not taking any branch Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing Dial("SIP/100-611e", "ZAP/g0/33399999999") in new stack Feb 13 06:19:45 NOTICE[5079] app_dial.c: Unable to create channel of type 'ZAP' (cause 34 - Circuit/channel congestion) Feb 13 06:19:45 VERBOSE[5079] logger.c: == Everyone is busy/congested at this time (1:0/1/0) Feb 13 06:19:45 DEBUG[5079] app_dial.c: Exiting with DIALSTATUS=CONGESTION. Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing Goto("SIP/100-611e", "s-CONGESTION|1") in new stack Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Goto (macro-dialout-trunk,s-CONGESTION,1) Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing NoOp("SIP/100-611e", "Dial failed due to CONGESTION") in new stack Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "outisbusy") in new stack Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Executing Playback("SIP/100-611e", "all-circuits-busy-now") in new stack Feb 13 06:19:45 DEBUG[5079] channel.c: Scheduling timer at 160 sample intervals Feb 13 06:19:45 VERBOSE[5079] logger.c: -- Playing 'all-circuits-busy-now' (language 'en') Feb 13 06:19:45 DEBUG[3637] chan_sip.c: Stopping retransmission on '6EE9B5C0-2043-9AC4-9F18-76F84A25A698@192.168.100.180' of Response 65112: Match Found Feb 13 06:19:47 DEBUG[5079] channel.c: Scheduling timer at 0 sample intervals Feb 13 06:19:47 DEBUG[5079] channel.c: Scheduling timer at 0 sample intervals Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Executing Playback("SIP/100-611e", "pls-try-call-later") in new stack Feb 13 06:19:47 DEBUG[5079] channel.c: Scheduling timer at 160 sample intervals Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Playing 'pls-try-call-later' (language 'en') Feb 13 06:19:47 DEBUG[5079] channel.c: Scheduling timer at 0 sample intervals Feb 13 06:19:47 VERBOSE[5079] logger.c: == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/100-611e' in macro 'outisbusy' Feb 13 06:19:47 VERBOSE[5079] logger.c: == Spawn extension (from-internal, 933399999999, 2) exited non-zero on 'SIP/100-611e' Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Executing Macro("SIP/100-611e", "hangupcall") in new stack Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Executing ResetCDR("SIP/100-611e", "w") in new stack Feb 13 06:19:47 DEBUG[5079] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record. Feb 13 06:19:47 DEBUG[5079] 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 ('2006-02-13 06:19:44','100','100','933399999999','from-internal', 'SIP/100-611e ','','ResetCDR','w',3,2,'FAILED',3,'','1139829584.46') Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Executing NoCDR("SIP/100-611e", "") in new stack Feb 13 06:19:47 WARNING[5079] cdr.c: CDR on channel 'SIP/100-611e' not posted Feb 13 06:19:47 WARNING[5079] cdr.c: CDR on channel 'SIP/100-611e' lacks end Feb 13 06:19:47 VERBOSE[5079] logger.c: -- Executing Wait("SIP/100-611e", "5") in new stack Feb 13 06:19:47 VERBOSE[5079] logger.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/100-611e' in macro 'hangupcall' Feb 13 06:19:47 VERBOSE[5079] logger.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-611e' where am i wrong? thanks _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
nik600
2006-Feb-13 07:02 UTC
[Asterisk-Users] problem with outgoing calls Unable to createchannel of type 'ZAP' (cause 34 - Circuit/channel congestion)
On 2/13/06, Michael Collins <mcollins@fcnetwork.biz> wrote:> Nik, > > Just curious - what is your telco setup? Do you have PRI with the > specified D channels? You need to make sure that your telco is set up > to have the D channels on 16 and 47. When you first start Asterisk, or > when you log on to the CLI, do you ever see messages stating the B > channels are successfully started? >sorry, i don't uderstand the question.... do you ever see messages stating the B channels are successfully started? how can i check this? thanks