[asterisk-users] [1.4/AGI] CHANNEL STATUS never "down & available"?

Gilles codecomplete at free.fr
Fri Feb 18 10:11:18 CST 2011


On Fri, 18 Feb 2011 07:52:40 -0800 (PST), Steve Edwards
<asterisk.org at sedwards.com> wrote:
>I've never written an AGI in lua, but don't you have to read the AGI 
>environment (from STDIN) before issuing requests?

Thanks for pointing it out. I forgot to prepend that part to that test
script.

>Also, you execute your AGI in the 'h' extension. I think once a channel is 
>hung up, it's state will not change until you reach the end of your 
>dialplan execution and the channel is destroyed.

Mmm... looks like it :-/

>I'm guessing you would have better luck kicking off an external process 
>that checks the channel status via AMI.

Yes, it looks like it's not possible to reuse the FXO from either
extensions.conf or through an AGI script.

Since the callback must be automated, I guess I'll have to add the
script to "at" to schedule the call.
Too bad Asterisk doesn't provide a way to reuse a port after calling
Hangup().

Thank you.




More information about the asterisk-users mailing list