Dante Alzamora
2003-Sep-26 10:35 UTC
[Asterisk-Users] dialing out with the outgoing queue problem.
Hi, I have cvs updated all my modules (zapata, libpri, zaptel and asterisk). I have also read in the archives & seems that no-one has run into this problem. What I'm trying to do is simple. Just make and outbound call using the /var/spool/asterisk/outgoing directory. I copied /usr/src/asterisk/sample.call and only changed the context & extension. I configured my Zap1 to the same context. I have two X100P (Zap1 & Zap2) and one S100U (Zap3). If I use my S100U and dial extension 800, it works. It calls. However when I copy my 1.call file. it says: Unable to create channel of type 'Zap'. Does anyone have any suggestions? or know what am I missing? Thanks, Dante Here's my configuration: extensions: [callme] ... exten => 800,1,Dial(Zap/1/19548738986) exten => 800,2,BackGround(demo-congrats) exten => 800,3,BackGround(demo-instruct) ... 1.call: Channel: Zap/1 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: callme Extension: 800 ... cp /tmp/1.call /var/spool/asterisk/outgoing -- Attempting call on Zap/1 for 800@callme:1 (Retry 1) -- Executing Dial("Zap/1-1", "Zap/1/195487389xx") in new stack NOTICE[360464]: File app_dial.c, Line 499 (dial_exec): Unable to create channel of type 'Zap' == Everyone is busy at this time -- Executing BackGround("Zap/1-1", "demo-congrats") in new stack -- Playing 'demo-congrats' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030926/fa65a459/attachment.htm
Steven Critchfield
2003-Sep-26 11:04 UTC
[Asterisk-Users] dialing out with the outgoing queue problem.
On Fri, 2003-09-26 at 12:35, Dante Alzamora wrote:> extensions: > [callme] > ... > exten => 800,1,Dial(Zap/1/19548738986) > exten => 800,2,BackGround(demo-congrats) > exten => 800,3,BackGround(demo-instruct) > ... > > 1.call: > Channel: Zap/1 > MaxRetries: 2 > RetryTime: 60 > WaitTime: 30 > Context: callme > Extension: 800 > ... > > > cp /tmp/1.call /var/spool/asterisk/outgoing > -- Attempting call on Zap/1 for 800@callme:1 (Retry 1) > -- Executing Dial("Zap/1-1", "Zap/1/195487389xx") in new stack > NOTICE[360464]: File app_dial.c, Line 499 (dial_exec): Unable to > create channel of type 'Zap' > == Everyone is busy at this time > -- Executing BackGround("Zap/1-1", "demo-congrats") in new stack > -- Playing 'demo-congrats'This is is pretty straight forward, you are using Zap/1 to pickup and your dial command is also trying to use Zap/1. You have it busy in one part of the call and the second part can't do it's job. BTW, you should not have a extension layout that is a dial, then background commands. The normal end of a dial command is a hangup or busy. What you probably want is something along the ways of this for your 1.call Channel: Zap/1/19548738986 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: callme Extension: 800 Priority: 2 This will make the outbound call and the play your messages. -- Steven Critchfield <critch@basesys.com>
Dante Alzamora
2003-Sep-26 11:59 UTC
[Asterisk-Users] dialing out with the outgoing queue problem.
That did the trick. Thanks Steven, Dante -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Steven Critchfield Sent: Friday, September 26, 2003 2:04 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] dialing out with the outgoing queue problem. On Fri, 2003-09-26 at 12:35, Dante Alzamora wrote:> extensions: > [callme] > ... > exten => 800,1,Dial(Zap/1/19548738986) > exten => 800,2,BackGround(demo-congrats) > exten => 800,3,BackGround(demo-instruct) > ... > > 1.call: > Channel: Zap/1 > MaxRetries: 2 > RetryTime: 60 > WaitTime: 30 > Context: callme > Extension: 800 > ... > > > cp /tmp/1.call /var/spool/asterisk/outgoing > -- Attempting call on Zap/1 for 800@callme:1 (Retry 1) > -- Executing Dial("Zap/1-1", "Zap/1/195487389xx") in new stack > NOTICE[360464]: File app_dial.c, Line 499 (dial_exec): Unable to > create channel of type 'Zap' > == Everyone is busy at this time > -- Executing BackGround("Zap/1-1", "demo-congrats") in new stack > -- Playing 'demo-congrats'This is is pretty straight forward, you are using Zap/1 to pickup and your dial command is also trying to use Zap/1. You have it busy in one part of the call and the second part can't do it's job. BTW, you should not have a extension layout that is a dial, then background commands. The normal end of a dial command is a hangup or busy. What you probably want is something along the ways of this for your 1.call Channel: Zap/1/19548738986 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: callme Extension: 800 Priority: 2 This will make the outbound call and the play your messages. -- Steven Critchfield <critch@basesys.com> _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
Olle E. Johansson
2003-Sep-26 14:36 UTC
[Asterisk-Users] dialing out with the outgoing queue problem.
I got curious of this function and tried to summarize by reading your mails and looking into the source code. http://www.voip-info.org/tiki-index.php?page=Asterisk+auto-dial+out As you see, there are some commands available in the call file that I could not figure out. If you have figured these out, just add them to the Wiki page. /O