[asterisk-users] Return data from Fast AGI
Douglas Garstang
dgarstang at oneeighty.com
Thu Aug 17 14:42:13 MST 2006
> -----Original Message-----
> From: Justin Tunney [mailto:jtunney at gmail.com]
> Sent: Thursday, August 17, 2006 3:36 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Return data from Fast AGI
>
>
> On Thursday 17 August 2006 17:12, Douglas Garstang wrote:
> > Ok, maybe I'm having a brain fart, or maybe I've never
> gotten quite this
> > far, but, if you call a fast AGI script, how do you RETURN
> data from the
> > fast AGI back to the dialplan???
>
> You could set some channel variables.
See, that's what I can't work out. Let's say you have this in your dialplan.
exten => _X.,1,AGI(agi://server.gumby.com)
Control at this point is passed to the server. That server has no relationship with the Asterisk process. It doesn't even have access to the STDOUT and STDERR streams tied to Asterisk. If you send anything to STDOUT from the server (ie set a channel variable), it's just going to go to STDOUT of the server process, which is probably the terminal it's running on. And what happens if the server process is on a different host?
It seems like you can't return variable from Fast AGI or interact with the dial plan in any way, by setting or getting dial plan variables. I must be missing something here.
Doug.
More information about the asterisk-users
mailing list