[asterisk-users] Asterisk VXML... Help.

Alexander Lopez Alex.Lopez at OpSys.com
Thu Jul 3 16:21:42 CDT 2008


Does vxml let you use absolute paths?

 

Wouldn't it have the equivalent of a DocRoot???

 

Alex

 

 

________________________________

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Douglas
Garstang
Sent: Thursday, July 03, 2008 5:03 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Asterisk VXML... Help.

 

So, I'm trying to get the Asterisk vxml (from i6net) working.
Having no luck with it.

My dial plan has:

exten => _X.,1,Answer()
exten => _X.,n,Wait(1)
exten => _X.,n,Vxml(file:///tmp/menu.vxml)

The /tmp/menu.vxml file has:

<?xml version="1.0"?>
 <vxml version="1.0">
  <form>
   <block><audio src="tt-monkeys.gsm"/></block>
   <block>Hello world!</block>
 </form>
</vxml>

The tmp directory also has the tt-monkeys.gsm file:

[root at pabx002 tmp]# ls -l tt-monkeys.gsm
-rw-r--r--  1 root root 26697 Jul  3 20:57 tt-monkeys.gsm

The openvxi daemon is running:

root at pabx002 tmp]# ps -ef | grep openvxi
root      2076     1  0 18:33 ?        00:00:00 /bin/sh
/usr/sbin/safe_openvxi
root      2114  2076  0 18:33 ?        00:00:00 openvxi -channels 100
-config /etc/openvxi/client.cfg
root      2606  2409  0 21:00 pts/2    00:00:00 grep openvxi
[root at pabx002 tmp]# 

The /etc/asterisk/vxml.conf file contains:

; VoiceXML Configuration
;
[general]
wav_codec=gsm
videosilence=
audiosilence=

[license]
max=1
video=no
key=

And, finally here's my console output:

    -- Executing Vxml("SIP/xxx.201.84.142-b7600c30",
"file:///tmp/menu.vxml") in new stack
VoiceBrowser interface file:///tmp/menu.vxml
 Initialiting
  == VXML_URL=(null)
  == VXML_ID=(null)
  == VXML_PARAM=(null)
  == url=file:///tmp/menu.vxml
  == session=1
  == id=0
  == param=0
  == Opening (url=file:///tmp/menu.vxml, id=(null), param=(null))
  == (dnid=1yyy3160157)
  == (name=1xxx8635808)
  == (num=1xxx8635808)
  == remote=1xxx8635808
  == local=1yyy3160157
    -- >
open|session=1|module=2|url=file:///tmp/menu.vxml|remote=1xxx8635808|loc
al=1yyy3160157
    -- < open|session=1|result=ok
 Waiting
    -- < close|session=1
 Exiting
  == VXML_RESULT=


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.





 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080703/52571eb9/attachment.htm 


More information about the asterisk-users mailing list