Not for file:// access, No...

----- Original Message ----
From: Alexander Lopez <[EMAIL PROTECTED]>
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Sent: Thursday, July 3, 2008 2:21:42 PM
Subject: Re: [asterisk-users] Asterisk VXML... Help.

 
Does vxml let you use absolute paths?
 
Wouldn’t it have the equivalent of a
DocRoot???
 
Alex
 
 

________________________________
 
From:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang
Sent: Thursday, July 03, 2008 5:03
PM
To: asterisk-users@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:

[EMAIL PROTECTED] 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:

[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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|local=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.


      
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to