[Voiceglue] Voiceglue Digest, Vol 25, Issue 5
Ambreen Khan
ambreen at ebryx.com
Wed Aug 12 04:42:46 UTC 2009
Thank you bala.. you have been great help.
It works!!!
On Tue, Aug 11, 2009 at 5:21 PM, bala subramanian <getbala4u at gmail.com>wrote:
> Hi Ambreen,
> sorry ........not the previous file
>
>
> Let try this program in ur application may be u will get it
> .............put file as like test.php
>
> <?php
> $test=$_GET['test'];
> echo '<?xml version="1.0" encoding="UTF-8"?>
>
> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">'<http://www.w3.org/2001/vxml%22%3E'>
> ;
> ?>
> <var name="arg" expr="'<?php echo $test ?>'"/>
> <form>
> <block>
> <prompt>
> This is a test <value expr="arg" />.
> </prompt>
> </block>
> </form>
> </vxml>
>
>
>
> -----Original Message-----
> From: voiceglue-bounces at voiceglue.org [mailto:
> voiceglue-bounces at voiceglue.org] On Behalf Of
> voiceglue-request at voiceglue.org
> Sent: Tuesday, August 11, 2009 4:32 PM bala
> To: voiceglue at voiceglue.org
> Subject: Voiceglue Digest, Vol 25, Issue 5
>
>
>
> Send Voiceglue mailing list submissions to
>
> voiceglue at voiceglue.org
>
>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> or, via email, send a message with subject or body 'help' to
>
> voiceglue-request at voiceglue.org
>
>
>
> You can reach the person managing the list at
>
> voiceglue-owner at voiceglue.org
>
>
>
> When replying, please edit your Subject line so it is more specific
>
> than "Re: Contents of Voiceglue digest..."
>
>
>
>
>
> Today's Topics:
>
>
>
> 1. Re: voiceglue 0.10 cannot pass data from asterisk dialplan
>
> (Ambreen Khan)
>
> 2. Re: voiceglue 0.10 cannot pass data from asterisk dialplan
>
> (Andrew Zitnay)
>
>
>
>
>
> ----------------------------------------------------------------------
>
>
>
> Message: 1
>
> Date: Tue, 11 Aug 2009 13:50:55 +0600
>
> From: Ambreen Khan <ambreen at ebryx.com>
>
> To: General discussion about voiceglue <voiceglue at voiceglue.org>
>
> Subject: Re: [Voiceglue] voiceglue 0.10 cannot pass data from asterisk
>
> dialplan
>
> Message-ID:
>
> <6c891ff90908110050j372ff0d4wafc331d359e19578 at mail.gmail.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> php5 is installed. I renamed the file to test.php and still same error.
>
> Ambreen
>
>
>
> On Thu, Aug 6, 2009 at 5:36 PM, Andrew Zitnay <drew at lastpass.com> wrote:
>
>
>
> > Yes, it's clear from that error that PHP isn't being run.
>
> >
>
> > First, the obligatory question: is PHP installed?
>
> >
>
> > Next, like I said before, Apache typically wouldn't process .vxml files
> as
>
> > PHP. You should rename test.vxml to test.php.
>
> >
>
> > Drew
>
> >
>
> >
>
> > Ambreen Khan wrote:
>
> >
>
> > I dont see any relevant php errors in httpd log.
>
> > This is the error I get in voiceglue log when i use the php method:
>
> >
>
> > Parse error in file "http://localhost/vxml/test.vxml?test=1234", line
> 4,
>
> > column 52 - A '<' character cannot be used in attribute 'expr', except
>
> > through <
>
> > Seems like vxml is not recognising php.
>
> >
>
> > Ambreen
>
> >
>
> >
>
> > On Thu, Aug 6, 2009 at 5:12 PM, Andrew Zitnay <drew at lastpass.com> wrote:
>
> >
>
> >> PHP's error_log() function typically writes to the apache error log.
>
> >>
>
> >> Drew
>
> >>
>
> >> Ambreen Khan wrote:
>
> >>
>
> >> httpd access_log contains the line that you have mentioned. I am unable
>
> >> to locate php error log in the system.
>
> >>
>
> >> Ambreen
>
> >>
>
> >> On Thu, Aug 6, 2009 at 4:59 PM, Andrew Zitnay <drew at lastpass.com>
> wrote:
>
> >>
>
> >>> I'd first recommend checking your web server access logs to ensure the
>
> >>> parameter is being passed in the first place. The line should
> contain:
>
> >>>
>
> >>> GET /vxml/text.vxml?test=1234
>
> >>>
>
> >>> If the parameter isn't in place in there, it's certainly not going to
> be
>
> >>> accessible to PHP.
>
> >>>
>
> >>> Also, your web server probably isn't setup to handle .vxml files as
> PHP.
>
> >>> The easiest thing to do is probably to simply rename it test.vxml.php
> or
>
> >>> test.php.
>
> >>>
>
> >>> After all that, you can use PHP error_log()'s to determine what's
>
> >>> happening.
>
> >>>
>
> >>> Drew
>
> >>>
>
> >>> Ambreen Khan wrote:
>
> >>>
>
> >>> The php method does not provide me with the passed parameter value. Any
>
> >>> other suggestions??
>
> >>>
>
> >>> On Thu, Aug 6, 2009 at 3:56 PM, Andrew Zitnay <drew at lastpass.com>
> wrote:
>
> >>>
>
> >>>> First of all, you'll definitely need to replace your %26 with &.
>
> >>>>
>
> >>>> Second, I'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:
>
> >>>>
>
> >>>> <?xml version="1.0" encoding="UTF-8"?>
>
> >>>> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
>
> >>>>
>
> >>>> <var name="arg" expr="<?php echo $_GET['test']?>"/>
>
> >>>>
>
> >>>> <form>
>
> >>>> <block>
>
> >>>> <prompt>
>
> >>>> This is a test <value expr="arg" />.
>
> >>>> </prompt>
>
> >>>> </block>
>
> >>>> </form>
>
> >>>>
>
> >>>> </vxml>
>
> >>>>
>
> >>>> Drew
>
> >>>>
>
> >>>> Ambreen Khan wrote:
>
> >>>>
>
> >>>> 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
>
> >>>>
>
> >>>>
>
> >>>>
>
> >>>>
>
> >>>>
>
> >>>> ------------------------------
>
> >>>>
>
> >>>> _______________________________________________
>
> >>>> Voiceglue mailing listVoiceglue at voiceglue.orghttp://
> www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>>
>
> >>>>
>
> >>>> _______________________________________________
>
> >>>> Voiceglue mailing list
>
> >>>> Voiceglue at voiceglue.org
>
> >>>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>>
>
> >>>>
>
> >>> ------------------------------
>
> >>>
>
> >>> _______________________________________________
>
> >>> Voiceglue mailing listVoiceglue at voiceglue.orghttp://
> www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>
>
> >>>
>
> >>> _______________________________________________
>
> >>> Voiceglue mailing list
>
> >>> Voiceglue at voiceglue.org
>
> >>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>
>
> >>>
>
> >> ------------------------------
>
> >>
>
> >> _______________________________________________
>
> >> Voiceglue mailing listVoiceglue at voiceglue.orghttp://
> www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>
>
> >>
>
> >> _______________________________________________
>
> >> Voiceglue mailing list
>
> >> Voiceglue at voiceglue.org
>
> >> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>
>
> >>
>
> > ------------------------------
>
> >
>
> > _______________________________________________
>
> > Voiceglue mailing listVoiceglue at voiceglue.orghttp://
> www.voiceglue.org/mailman/listinfo/voiceglue
>
> >
>
> >
>
> > _______________________________________________
>
> > Voiceglue mailing list
>
> > Voiceglue at voiceglue.org
>
> > http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >
>
> >
>
> -------------- next part --------------
>
> An HTML attachment was scrubbed...
>
> URL: <
> http://www.voiceglue.org/pipermail/voiceglue/attachments/20090811/1ffd806b/attachment-0001.html
> >
>
>
>
> ------------------------------
>
>
>
> Message: 2
>
> Date: Tue, 11 Aug 2009 07:01:47 -0400
>
> From: Andrew Zitnay <drew at lastpass.com>
>
> To: General discussion about voiceglue <voiceglue at voiceglue.org>
>
> Subject: Re: [Voiceglue] voiceglue 0.10 cannot pass data from asterisk
>
> dialplan
>
> Message-ID: <4A814F9B.6090806 at lastpass.com>
>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
>
>
> 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.
>
>
>
> Drew
>
>
>
> Ambreen Khan wrote:
>
> > php5 is installed. I renamed the file to test.php and still same error.
>
> >
>
> > Ambreen
>
> >
>
> > On Thu, Aug 6, 2009 at 5:36 PM, Andrew Zitnay <drew at lastpass.com
>
> > <mailto:drew at lastpass.com>> wrote:
>
> >
>
> > Yes, it's clear from that error that PHP isn't being run.
>
> >
>
> > First, the obligatory question: is PHP installed?
>
> >
>
> > Next, like I said before, Apache typically wouldn't process .vxml
>
> > files as PHP. You should rename test.vxml to test.php.
>
> >
>
> > Drew
>
> >
>
> >
>
> > Ambreen Khan wrote:
>
> >> I dont see any relevant php errors in httpd log.
>
> >> This is the error I get in voiceglue log when i use the php method:
>
> >>
>
> >> Parse error in file "http://localhost/vxml/test.vxml?test=1234",
>
> >> line 4, column 52 - A '<' character cannot be used in attribute
>
> >> 'expr', except through <
>
> >>
>
> >> Seems like vxml is not recognising php.
>
> >>
>
> >> Ambreen
>
> >>
>
> >>
>
> >> On Thu, Aug 6, 2009 at 5:12 PM, Andrew Zitnay <drew at lastpass.com
>
> >> <mailto:drew at lastpass.com>> wrote:
>
> >>
>
> >> PHP's error_log() function typically writes to the apache
>
> >> error log.
>
> >>
>
> >> Drew
>
> >>
>
> >>
>
> >> Ambreen Khan wrote:
>
> >>> httpd access_log contains the line that you have mentioned.
>
> >>> I am unable to locate php error log in the system.
>
> >>>
>
> >>> Ambreen
>
> >>>
>
> >>> On Thu, Aug 6, 2009 at 4:59 PM, Andrew Zitnay
>
> >>> <drew at lastpass.com <mailto:drew at lastpass.com>> wrote:
>
> >>>
>
> >>> I'd first recommend checking your web server access logs
>
> >>> to ensure the parameter is being passed in the first
>
> >>> place. The line should contain:
>
> >>>
>
> >>> GET /vxml/text.vxml?test=1234
>
> >>>
>
> >>> If the parameter isn't in place in there, it's certainly
>
> >>> not going to be accessible to PHP.
>
> >>>
>
> >>> Also, your web server probably isn't setup to handle
>
> >>> .vxml files as PHP. The easiest thing to do is probably
>
> >>> to simply rename it test.vxml.php or test.php.
>
> >>>
>
> >>> After all that, you can use PHP error_log()'s to
>
> >>> determine what's happening.
>
> >>>
>
> >>> Drew
>
> >>>
>
> >>>
>
> >>> Ambreen Khan wrote:
>
> >>>> The php method does not provide me with the passed
>
> >>>> parameter value. Any other suggestions??
>
> >>>>
>
> >>>>
>
> >>>> On Thu, Aug 6, 2009 at 3:56 PM, Andrew Zitnay
>
> >>>> <drew at lastpass.com <mailto:drew at lastpass.com>> wrote:
>
> >>>>
>
> >>>> First of all, you'll definitely need to replace
>
> >>>> your %26 with &.
>
> >>>>
>
> >>>> Second, I'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:
>
> >>>>
>
> >>>>
>
> >>>> <?xml version="1.0" encoding="UTF-8"?>
>
> >>>> <vxml version="2.0"
>
> >>>> xmlns="http://www.w3.org/2001/vxml">
>
> >>>>
>
> >>>> <var name="arg" expr="<?php echo $_GET['test']?>"/>
>
> >>>>
>
> >>>> <form>
>
> >>>> <block>
>
> >>>> <prompt>
>
> >>>> This is a test <value expr="arg" />.
>
> >>>> </prompt>
>
> >>>> </block>
>
> >>>> </form>
>
> >>>>
>
> >>>> </vxml>
>
> >>>>
>
> >>>> Drew
>
> >>>>
>
> >>>> Ambreen Khan wrote:
>
> >>>>> 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
>
> >>>>> <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
>
> >>>>>
>
> >>>>>
>
> >>>>>
>
> >>>>>
>
> >>>>>
>
> >>>>>
> ------------------------------------------------------------------------
>
> >>>>>
>
> >>>>> _______________________________________________
>
> >>>>> Voiceglue mailing list
>
> >>>>> Voiceglue at voiceglue.org <mailto:
> Voiceglue at voiceglue.org>
>
> >>>>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>>>
>
> >>>>
>
> >>>> _______________________________________________
>
> >>>> Voiceglue mailing list
>
> >>>> Voiceglue at voiceglue.org
>
> >>>> <mailto:Voiceglue at voiceglue.org>
>
> >>>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>>
>
> >>>>
>
> >>>>
> ------------------------------------------------------------------------
>
> >>>>
>
> >>>> _______________________________________________
>
> >>>> Voiceglue mailing list
>
> >>>> Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> >>>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>>
>
> >>>
>
> >>> _______________________________________________
>
> >>> Voiceglue mailing list
>
> >>> Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> >>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>
>
> >>>
>
> >>>
> ------------------------------------------------------------------------
>
> >>>
>
> >>> _______________________________________________
>
> >>> Voiceglue mailing list
>
> >>> Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> >>> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>>
>
> >>
>
> >> _______________________________________________
>
> >> Voiceglue mailing list
>
> >> Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> >> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>
>
> >>
>
> >>
> ------------------------------------------------------------------------
>
> >>
>
> >> _______________________________________________
>
> >> Voiceglue mailing list
>
> >> Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> >> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >>
>
> >
>
> > _______________________________________________
>
> > Voiceglue mailing list
>
> > Voiceglue at voiceglue.org <mailto:Voiceglue at voiceglue.org>
>
> > http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >
>
> >
>
> > ------------------------------------------------------------------------
>
> >
>
> > _______________________________________________
>
> > Voiceglue mailing list
>
> > Voiceglue at voiceglue.org
>
> > http://www.voiceglue.org/mailman/listinfo/voiceglue
>
> >
>
> -------------- next part --------------
>
> An HTML attachment was scrubbed...
>
> URL: <
> http://www.voiceglue.org/pipermail/voiceglue/attachments/20090811/62cae1eb/attachment.html
> >
>
>
>
> ------------------------------
>
>
>
> _______________________________________________
>
> Voiceglue mailing list
>
> Voiceglue at voiceglue.org
>
> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
>
>
>
>
> End of Voiceglue Digest, Vol 25, Issue 5
>
> ****************************************
>
>
>
> _______________________________________________
> Voiceglue mailing list
> Voiceglue at voiceglue.org
> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20090812/45b68e3b/attachment-0001.html>
More information about the Voiceglue
mailing list