<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'd recommend taking Voiceglue out of the loop temporarily, and simply
ensuring that your Apache+PHP setup is functioning correctly, because
it sounds like it's not to me.<br>
<br>
Drew<br>
<br>
Ambreen Khan wrote:
<blockquote
 cite="mid:6c891ff90908110050j372ff0d4wafc331d359e19578@mail.gmail.com"
 type="cite">php5 is installed. I renamed the file to test.php and
still same error.
  <div><br>
  </div>
  <div>Ambreen<br>
  <br>
  <div class="gmail_quote">On Thu, Aug 6, 2009 at 5:36 PM, Andrew
Zitnay <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:drew@lastpass.com">drew@lastpass.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Yes, it's clear from that error that PHP isn't being run.<br>
    <br>
First, the obligatory question: is PHP installed?<br>
    <br>
Next, like I said before, Apache typically wouldn't process .vxml files
as PHP.&nbsp; You should rename test.vxml to test.php.<br>
    <br>
Drew
    <div>
    <div class="h5"><br>
    <br>
Ambreen Khan wrote:
    <blockquote type="cite">
      <div>I dont see any relevant php errors in httpd log.</div>
      <div>This is the error I get in voiceglue log when i use the php
method:</div>
      <div><br>
      </div>
Parse error in file "<a moz-do-not-send="true"
 href="http://localhost/vxml/test.vxml?test=1234" target="_blank">http://localhost/vxml/test.vxml?test=1234</a>",
line 4, column 52 - A '&lt;' character cannot be used in attribute
'expr', except through &amp;lt;
      <div><br>
      </div>
      <div>Seems like vxml is not recognising php.</div>
      <div><br>
      </div>
      <div>Ambreen<br>
      <div><br>
      <br>
      <div class="gmail_quote">On Thu, Aug 6, 2009 at 5:12 PM, Andrew
Zitnay <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:drew@lastpass.com" target="_blank">drew@lastpass.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div bgcolor="#ffffff" text="#000000">PHP's error_log()
function typically writes to the apache error log.<br>
        <br>
Drew
        <div>
        <div><br>
        <br>
Ambreen Khan wrote:
        <blockquote type="cite">httpd access_log contains the line that
you
have mentioned.
          <div>I am unable to locate php error log in the system.</div>
          <div><br>
          </div>
          <div>Ambreen<br>
          <br>
          <div class="gmail_quote">On Thu, Aug 6, 2009 at 4:59 PM,
Andrew
Zitnay <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:drew@lastpass.com" target="_blank">drew@lastpass.com</a>&gt;</span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div bgcolor="#ffffff" text="#000000">I'd first recommend
checking your web server access logs to ensure the
parameter is being passed in the first place.&nbsp; The line should contain:<br>
            <br>
GET /vxml/text.vxml?test=1234<br>
            <br>
If the parameter isn't in place in there, it's certainly not going to
be accessible to PHP.<br>
            <br>
Also, your web server probably isn't setup to handle .vxml files as
PHP.&nbsp; The easiest thing to do is probably to simply rename it
test.vxml.php or test.php.<br>
            <br>
After all that, you can use PHP error_log()'s to determine what's
happening.<br>
            <br>
Drew
            <div>
            <div><br>
            <br>
Ambreen Khan wrote:
            <blockquote type="cite">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 moz-do-not-send="true"
 href="mailto:drew@lastpass.com" target="_blank">drew@lastpass.com</a>&gt;</span>
wrote:<br>
              <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
                <div bgcolor="#ffffff" text="#000000">First of all,
you'll
definitely need to replace your %26 with &amp;.<br>
                <br>
Second, I'm not sure variables passed in this manner are accessible to
VXML...&nbsp; I personally use PHP as a preprocessor to handle passed-in
variables.&nbsp; For example:
                <div><br>
                <br>
                <div>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</div>
                <div>&lt;vxml version="2.0" xmlns="<a
 moz-do-not-send="true" href="http://www.w3.org/2001/vxml"
 target="_blank">http://www.w3.org/2001/vxml</a>"&gt;</div>
                <div><br>
                </div>
                </div>
                <div>&lt;var name="arg" expr="&lt;?php echo
$_GET['test']?&gt;"/&gt;</div>
                <div>
                <div><br>
                </div>
                <div>&lt;form&gt;</div>
                <div>&nbsp;&nbsp; &lt;block&gt;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;prompt&gt;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; This is a test &lt;value expr="arg" /&gt;.</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/prompt&gt;</div>
                <div>&nbsp;&nbsp; &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>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="1.0" encoding="UTF-8"?&gt;</div>
                  <div>&lt;vxml version="2.0" xmlns="<a
 moz-do-not-send="true" href="http://www.w3.org/2001/vxml"
 target="_blank">http://www.w3.org/2001/vxml</a>"&gt;</div>
                  <div><br>
                  </div>
                  <div>&lt;var name="arg" expr="test"/&gt;</div>
                  <div><br>
                  </div>
                  <div>&lt;form&gt;</div>
                  <div>&nbsp;&nbsp; &lt;block&gt;</div>
                  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;prompt&gt;</div>
                  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; This is a test &lt;value expr="arg"
/&gt;.</div>
                  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/prompt&gt;</div>
                  <div>&nbsp;&nbsp; &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
 moz-do-not-send="true"
 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 "test" 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 moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org"
 target="_blank">Voiceglue@voiceglue.org</a>
<a moz-do-not-send="true"
 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 moz-do-not-send="true"
 href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
                <a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
                <br>
              </blockquote>
              </div>
              <br>
              </div>
              <pre><hr size="4" width="90%">
_______________________________________________
Voiceglue mailing list
<a moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org"
 target="_blank">Voiceglue@voiceglue.org</a>
<a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a>
  </pre>
            </blockquote>
            </div>
            </div>
            </div>
            <br>
_______________________________________________<br>
Voiceglue mailing list<br>
            <a moz-do-not-send="true"
 href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
            <a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
            <br>
          </blockquote>
          </div>
          <br>
          </div>
          <pre><hr size="4" width="90%">
_______________________________________________
Voiceglue mailing list
<a moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org"
 target="_blank">Voiceglue@voiceglue.org</a>
<a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a>
  </pre>
        </blockquote>
        </div>
        </div>
        </div>
        <br>
_______________________________________________<br>
Voiceglue mailing list<br>
        <a moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org"
 target="_blank">Voiceglue@voiceglue.org</a><br>
        <a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
        <br>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
      <pre><hr size="4" width="90%">
_______________________________________________
Voiceglue mailing list
<a moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org"
 target="_blank">Voiceglue@voiceglue.org</a>
<a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a>
  </pre>
    </blockquote>
    </div>
    </div>
    </div>
    <br>
_______________________________________________<br>
Voiceglue mailing list<br>
    <a moz-do-not-send="true" href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
    <a moz-do-not-send="true"
 href="http://www.voiceglue.org/mailman/listinfo/voiceglue"
 target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Voiceglue mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a>
<a class="moz-txt-link-freetext" href="http://www.voiceglue.org/mailman/listinfo/voiceglue">http://www.voiceglue.org/mailman/listinfo/voiceglue</a>
  </pre>
</blockquote>
</body>
</html>