[asterisk-users] queue called by agi doesn't re-enter the script

Steve Edwards asterisk.org at sedwards.com
Wed Feb 9 09:38:47 CST 2011


On Wed, 9 Feb 2011, gincantalupo wrote:

> I tried this piece of extensions on my Asterisk 1.8:
> exten => 679,1,NoOp(start)
> exten => 679,2,AGI(/var/lib/asterisk/bin/test.py)
> exten => 679,3,NoOp(--- end ---)
> exten => 679,n,Hangup
>
> where test.py executes a queue command.
>
> The strange thing is my CLI never shows the '--- end ---' string. It 
> seems that with queues, the normal script flow is not going on to the 
> next step...just like the queue forces an exit from extension.conf.

What queue command does test.py execute?

Did you use a tested 'py' AGI library or write your own? (Nobody gets it 
right the first time.)

If you crank up verbosity and debug do you get any clues?

The CLI command 'agi set debug on' may also yield some clues.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list