[Voiceglue] voiceglue 0.10 cannot pass data from asterisk dialplan

Ambreen Khan ambreen at ebryx.com
Thu Aug 6 08:25:03 UTC 2009


Hello
This is my dialplan:

[phoneglue]
exten => 1,1,Set(pwd=1234)
exten => 1,2,Set(vxmlurl=http%3A%2F%2Flocalhost%2Fvxml%2Ftest.vxml)
exten => 1,3,Agi(agi://localhost/url=${vxmlurl}%26test=${pwd})
exten => 1,4,Hangup

This is my test.vxml:
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">

<var name="arg" expr="test"/>

<form>
   <block>
        <prompt>
         This is a test <value expr="arg" />.
        </prompt>
   </block>
</form>

</vxml>
--------------------------------------------------

Voiceglue log shows this error
VXIinterpreterRun: Failed to open|URL=
http://localhost/vxml/alive.vxml&test=1234

According to the user guide we should use percent encoding which i did but i
still get this error.
If i replace %26 with & in the dialplan, i dont get this error but then i
cannot retrieve the passed variable "test" in my vxml file.
I used different methods like session.connection.asterisk.values.test etc
but of no avail.

Ambreen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20090806/2cef69d9/attachment.html>


More information about the Voiceglue mailing list