[Voiceglue] Receive Variable From VXML file in Asterisk Dial Plan
Doug Campbell
voiceglue at campbellcastle.com
Fri Mar 26 15:26:00 UTC 2010
> The <exit> tag is like the exit command in PHP right? It finishes the
> script, but you can define a value to it that will return to the
> dialpan.
Right.
> The voiceglue has it implemented? How to get this variable in dialplan?
Voiceglue has <exit>, but it currently does nothing with the
variables names and values supplied to it via "namelist".
> I was thingking... Is there a way to do something like this:
>
> exten => 9999,1,Set(vxmlreturn=0)
> exten => 9999,n,$vxmlreturn=Agi(agi://localhost/url=http%3A%2F%
> 2Flocalhost%2Fvxml%2Fvxmlscript.vxml)
>
> Then use the $vxmlreturn variable in dial plan?
Asterisk's Agi() command does not return a value directly,
so there's no way to do that explicitly. Also, VXML has
no way to return a single value, only the list of name/value
pairs via <exit>. That's why I suggested what I did, in
which case you could set any number of asterisk dialplan
variables from the <exit> command.
Doug Campbell
More information about the Voiceglue
mailing list