<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 <Alex.Lopez@OpSys.com><br>To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com><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;"> </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;"> </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;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </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;"> </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: "Courier New";">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 => _X.,1,Answer()<br>
exten => _X.,n,Wait(1)<br>
exten => _X.,n,Vxml(file:///tmp/menu.vxml)<br>
<br>
The /tmp/menu.vxml file has:<br>
<br>
<?xml version="1.0"?><br>
<vxml version="1.0"><br>
<form><br>
<block><audio
src="tt-monkeys.gsm"/></block><br>
<block>Hello world!</block><br>
</form><br>
</vxml><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-- 1 root root 26697 Jul 3 20:57 tt-monkeys.gsm<br>
<br>
The openvxi daemon is running:<br>
<br>
root@pabx002 tmp]# ps -ef | grep openvxi<br>
root 2076 1 0 18:33
? 00:00:00 /bin/sh
/usr/sbin/safe_openvxi<br>
root 2114 2076 0 18:33
? 00:00:00 openvxi -channels 100
-config /etc/openvxi/client.cfg<br>
root 2606 2409 0 21:00
pts/2 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>
-- Executing Vxml("SIP/xxx.201.84.142-b7600c30",
"file:///tmp/menu.vxml") in new stack<br>
VoiceBrowser interface file:///tmp/menu.vxml<br>
Initialiting<br>
== VXML_URL=(null)<br>
== VXML_ID=(null)<br>
== VXML_PARAM=(null)<br>
== url=file:///tmp/menu.vxml<br>
== session=1<br>
== id=0<br>
== param=0<br>
== Opening (url=file:///tmp/menu.vxml, id=(null), param=(null))<br>
== (dnid=1yyy3160157)<br>
== (name=1xxx8635808)<br>
== (num=1xxx8635808)<br>
== remote=1xxx8635808<br>
== local=1yyy3160157<br>
-- >
open|session=1|module=2|url=file:///tmp/menu.vxml|remote=1xxx8635808|local=1yyy3160157<br>
-- < open|session=1|result=ok<br>
Waiting<br>
-- < close|session=1<br>
Exiting<br>
== 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;"> </span></font></p>
</div>
</div>
</div></div></div><br>
</body></html>