The php method does not provide me with the passed parameter value. Any other suggestions??<div><br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 3:56 PM, Andrew Zitnay <span dir="ltr">&lt;<a href="mailto:drew@lastpass.com">drew@lastpass.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
  

<div bgcolor="#ffffff" text="#000000">
First of all, you&#39;ll definitely need to replace your %26 with &amp;.<br>
<br>
Second, I&#39;m not sure variables passed in this manner are accessible to
VXML...  I personally use PHP as a preprocessor to handle passed-in
variables.  For example:<div class="im"><br>
<br>
<div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div>
<div>&lt;vxml version=&quot;2.0&quot; xmlns=&quot;<a href="http://www.w3.org/2001/vxml" target="_blank">http://www.w3.org/2001/vxml</a>&quot;&gt;</div>
<div><br>
</div>
</div><div>&lt;var name=&quot;arg&quot; expr=&quot;&lt;?php echo $_GET[&#39;test&#39;]?&gt;&quot;/&gt;</div><div class="im">
<div><br>
</div>
<div>&lt;form&gt;</div>
<div>   &lt;block&gt;</div>
<div>        &lt;prompt&gt;</div>
<div>         This is a test &lt;value expr=&quot;arg&quot; /&gt;.</div>
<div>        &lt;/prompt&gt;</div>
<div>   &lt;/block&gt;</div>
<div>&lt;/form&gt;</div>
<div><br>
</div>
</div><div>&lt;/vxml&gt;<br>
<br>
Drew<br>
</div>
<br>
Ambreen Khan wrote:
<blockquote type="cite"><div><div></div><div class="h5">Hello
  <div><br>
  </div>
  <div>This is my dialplan:</div>
  <div><br>
  </div>
  <div>[phoneglue]</div>
  <div>
  <div>exten =&gt; 1,1,Set(pwd=1234)</div>
  <div>exten =&gt;
1,2,Set(vxmlurl=http%3A%2F%2Flocalhost%2Fvxml%2Ftest.vxml)</div>
  <div>exten =&gt; 1,3,Agi(agi://localhost/url=${vxmlurl}%26test=${pwd})</div>
  <div>exten =&gt; 1,4,Hangup</div>
  <div><br>
  </div>
  <div>This is my test.vxml:</div>
  <div>-------------------------------------------------</div>
  <div>
  <div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div>
  <div>&lt;vxml version=&quot;2.0&quot; xmlns=&quot;<a href="http://www.w3.org/2001/vxml" target="_blank">http://www.w3.org/2001/vxml</a>&quot;&gt;</div>
  <div><br>
  </div>
  <div>&lt;var name=&quot;arg&quot; expr=&quot;test&quot;/&gt;</div>
  <div><br>
  </div>
  <div>&lt;form&gt;</div>
  <div>   &lt;block&gt;</div>
  <div>        &lt;prompt&gt;</div>
  <div>         This is a test &lt;value expr=&quot;arg&quot; /&gt;.</div>
  <div>        &lt;/prompt&gt;</div>
  <div>   &lt;/block&gt;</div>
  <div>&lt;/form&gt;</div>
  <div><br>
  </div>
  <div>&lt;/vxml&gt;</div>
  <div>--------------------------------------------------</div>
  <div><br>
  </div>
  <div>Voiceglue log shows this error</div>
  <div>VXIinterpreterRun: Failed to open|URL=<a href="http://localhost/vxml/alive.vxml&amp;test=1234" target="_blank">http://localhost/vxml/alive.vxml&amp;test=1234</a></div>
  <div><br>
  </div>
  <div>According to the user guide we should use percent encoding which
i did but i still get this error.</div>
  <div>If i replace %26 with &amp; in the dialplan, i dont get this
error but then i cannot retrieve the passed variable &quot;test&quot; in my vxml
file.</div>
  <div>I used different methods like
session.connection.asterisk.values.test etc but of no avail.</div>
  <div><br>
  </div>
  <div>Ambreen</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  </div>
  </div>
  </div></div><pre><hr size="4" width="90%">
_______________________________________________
Voiceglue mailing list
<a href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a>
  </pre>
</blockquote>
</div>

<br>_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br></blockquote></div><br></div>