[Voiceglue] Receive Variable From VXML file in Asterisk Dial Plan
Willian S. Domingues
willian at fiscalweb.com.br
Fri Mar 26 11:33:28 UTC 2010
> > Is there a way to receive a variable from the vxml file in the asterisk
> > dialplan?
>
> This is an excellent question, and one that has been discussed before.
>
> There currently is no easy way to do this. Of course, you can
> always do something like create a web service to put the data in a
> database, use <data> to call it from VXML, then retrieve the data
> from the database in asterisk's dialplan. But that's a lot of
> work and very inefficient.
>
> The method that makes the most sense to me is to use the <exit>
> tag's namelist to send variable names and values back to the
> asterisk dialplan. This will require a code change to voiceglue.
>
> Anybody have a better suggestion?
>
> Doug Campbell
> _______________________________________________
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.
The voiceglue has it implemented? How to get this variable in dialplan?
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?
Thanks,
Willian
More information about the Voiceglue
mailing list