<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;">Not for file:// access, No...<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Alexander Lopez &lt;Alex.Lopez@OpSys.com&gt;<br>To: Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<br>Sent: Thursday, July 3, 2008 2:21:42 PM<br>Subject: Re: [asterisk-users] Asterisk VXML... Help.<br><br>



 
 

<style>
<!-- 
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:navy;}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Does vxml let you use absolute paths?</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Wouldnąt it have the equivalent of a
DocRoot???</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Alex</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr tabindex="-1" align="center" size="2" width="100%">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style="font-weight: bold;">On Behalf Of </span></b>Douglas Garstang<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 03, 2008 5:03
PM<br>
<b><span style="font-weight: bold;">To:</span></b> asterisk-users@lists.digium.com<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Asterisk
VXML... Help.</span></font></p> 

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> &nbsp;</span></font></p> 

<div>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">So, I'm trying to get the
Asterisk vxml (from i6net) working.<br>
Having no luck with it.<br>
<br>
My dial plan has:<br>
<br>
exten =&gt; _X.,1,Answer()<br>
exten =&gt; _X.,n,Wait(1)<br>
exten =&gt; _X.,n,Vxml(file:///tmp/menu.vxml)<br>
<br>
The /tmp/menu.vxml file has:<br>
<br>
&lt;?xml version="1.0"?&gt;<br>
&nbsp;&lt;vxml version="1.0"&gt;<br>
&nbsp; &lt;form&gt;<br>
&nbsp;&nbsp; &lt;block&gt;&lt;audio
src="tt-monkeys.gsm"/&gt;&lt;/block&gt;<br>
&nbsp;&nbsp; &lt;block&gt;Hello world!&lt;/block&gt;<br>
&nbsp;&lt;/form&gt;<br>
&lt;/vxml&gt;<br>
<br>
The tmp directory also has the tt-monkeys.gsm file:<br>
<br>
[root@pabx002 tmp]# ls -l tt-monkeys.gsm<br>
-rw-r--r--&nbsp; 1 root root 26697 Jul&nbsp; 3 20:57 tt-monkeys.gsm<br>
<br>
The openvxi daemon is running:<br>
<br>
root@pabx002 tmp]# ps -ef | grep openvxi<br>
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2076&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 18:33
?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /bin/sh
/usr/sbin/safe_openvxi<br>
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2114&nbsp; 2076&nbsp; 0 18:33
?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 openvxi -channels 100
-config /etc/openvxi/client.cfg<br>
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2606&nbsp; 2409&nbsp; 0 21:00
pts/2&nbsp;&nbsp;&nbsp; 00:00:00 grep openvxi<br>
[root@pabx002 tmp]# <br>
<br>
The /etc/asterisk/vxml.conf file contains:<br>
<br>
; VoiceXML Configuration<br>
;<br>
[general]<br>
wav_codec=gsm<br>
videosilence=<br>
audiosilence=<br>
<br>
[license]<br>
max=1<br>
video=no<br>
key=<br>
<br>
And, finally here's my console output:<br>
<br>
&nbsp;&nbsp;&nbsp; -- Executing Vxml("SIP/xxx.201.84.142-b7600c30",
"file:///tmp/menu.vxml") in new stack<br>
VoiceBrowser interface file:///tmp/menu.vxml<br>
&nbsp;Initialiting<br>
&nbsp; == VXML_URL=(null)<br>
&nbsp; == VXML_ID=(null)<br>
&nbsp; == VXML_PARAM=(null)<br>
&nbsp; == url=file:///tmp/menu.vxml<br>
&nbsp; == session=1<br>
&nbsp; == id=0<br>
&nbsp; == param=0<br>
&nbsp; == Opening (url=file:///tmp/menu.vxml, id=(null), param=(null))<br>
&nbsp; == (dnid=1yyy3160157)<br>
&nbsp; == (name=1xxx8635808)<br>
&nbsp; == (num=1xxx8635808)<br>
&nbsp; == remote=1xxx8635808<br>
&nbsp; == local=1yyy3160157<br>
&nbsp;&nbsp;&nbsp; -- &gt;
open|session=1|module=2|url=file:///tmp/menu.vxml|remote=1xxx8635808|local=1yyy3160157<br>
&nbsp;&nbsp;&nbsp; -- &lt; open|session=1|result=ok<br>
&nbsp;Waiting<br>
&nbsp;&nbsp;&nbsp; -- &lt; close|session=1<br>
&nbsp;Exiting<br>
&nbsp; == VXML_RESULT=<br>
<br>
<br>
I hear NOTHING. Asterisk drops though to the next command in the dial plan.
Shouldn't I hear the tt-monkeys.gsm sound file being played? I tried to keep
this as simple as I could. I thought it was interesting too that when I tried
this with a web server instead of a local file, if the URL was wrong, the
VXML() app still said it connected and got the data ok.<br>
<br>
<br>
<br>
</span></font></p> 

</div>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> &nbsp;</span></font></p> 

</div>

</div>

</div></div></div><br>

      </body></html>