[Voiceglue] Retrieving values from Voiceglue
Rob Anderson
altogether.elsewhere at gmail.com
Tue Jul 13 13:34:08 UTC 2010
Hi
I'm having some weird problems with the <transfer> tag - the call is
immediately disconnected and neither the Asterisk nor the Voiceglue logs
report anything amiss.
A simple solution for me may be to use the functionality listed in the
Voiceglue user guide in the 'retrieving values from Voiceglue' section - if
I can pass back an extension number then I can use the dialplan to make the
transfer.
Here's vxml page
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<property name="fetchtimeout" value="100s"/>
<form>
<var name="quicktest" expr="'hello'"/>
<exit namelist="quicktest"/>
</form>
</vxml>
And here's a simple dialplan (vxmlhost is set elsewhere):
[phoneglue]
exten => ivr,1,Answer
exten => ivr,2,Set(vxmlprotocol="http")
exten =>
ivr,3,Agi(agi://localhost/url=${vxmlprotocol}%3A%2F%2F${vxmlhost}%2Fivr%2Fwelcome)
exten =>
ivr,4,Agi(agi://localhost/url=${vxmlprotocol}%3A%2F%2F${vxmlhost}%2Fivr%2F${quicktest})
exten => ivr,5,Hangup
Obviously I would normally want to do a transfer to my variable - but here
I'm just calling a second URL to check the contents of the variable
In the voiceserver logs I can see the <hostname>/ivr/welcome URL being
called, followed by <hostname>/ivr/ (ie ${quicktest} is resolving to
blank)
Is there anything obvious I'm doing wrong here? How do I access the
variables set in the namelist?
Thanks
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100713/09e73e46/attachment.html>
More information about the Voiceglue
mailing list