<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
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
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Does vxml let you use absolute paths?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Wouldn’t it have the equivalent of a
DocRoot???<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Alex<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;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><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;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>
<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>