ok got it thanks!, it was a matter of putting it in the right parent tag structure.<div><br></div><div>I have one more thing to finetune.</div><div>this code use to work on the i6net vxml browser </div><div><br></div><div>
session.connection.remote.uri</div><div>session.connection.local.uri</div><div><br></div><div>don't seem to be populated properly</div><div><br>I'm dialing extension 1070 from a local sip client.<br><br></div><div>
<div>22:28:38:644 NOTI OPEN_VXI ivr01--- callid=[22] |140500766173520|22|EVENT|2|label=DNIS|expr=781871222</div><div>22:28:40:640 NOTI OPEN_VXI ivr01--- callid=[22] Channel 22: Call Terminated</div></div><div><br><div>my code:</div>
<div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><vxml version = "2.0" xmlns="<a href="http://www.w3.org/2001/vxml">http://www.w3.org/2001/vxml</a>"></div>
<div> <form></div><div> <block></div><div><log expr="session.connection.remote.uri" label="DNIS"/></div><div> <prompt> Welcome </prompt></div><div> </block></div>
<div> </form></div><div></vxml></div></div><div><br></div><div>Do I need to set this session variable else where in a conf file?</div><div><br></div><div>Thanks.</div><div><br></div><br><div class="gmail_quote">
On Fri, Dec 4, 2009 at 2:09 PM, Doug Campbell <span dir="ltr"><<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
here is an extract of my code.<br>
<form id="myrequest"><br>
<log expr="MYLOG"/><br>
</blockquote>
<br></div>
Note that the contents of the expr attribute is a javascript<br>
expression, so unless you have a javascript (or VXML) variable<br>
named MYLOG this probably won't work.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FYI. I'm running ubuntu 9.04 Asterisk 1.4 and the lastest voiceglue 0.11<br>
<br>
any additional ideas are welcome? <br>
</blockquote>
<br></div>
Using the exact same software as you, with dynlog level set to 5,<br>
I ran the following VXML script:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<vxml version = "2.0" xmlns="<a href="http://www.w3.org/2001/vxml" target="_blank">http://www.w3.org/2001/vxml</a>"><br>
<form><br>
<block><br>
<log expr="'MYLOG'"/><br>
<prompt> Welcome </prompt><br>
</block><br>
</form><br>
</vxml><br>
<br>
Here's what I got in the dynlog:<br>
<br>
17:04:01:579 NOTI VOICEGLU gnuzebra callid=[3] starting VXML interp on url="<a href="http://localhost/vg_test_www/vxml/tmp/test.vxml" target="_blank">http://localhost/vg_test_www/vxml/tmp/test.vxml</a>" for DNIS="4" perlfd=9 vxmlfd=10<br>
17:04:01:605 NOTI OPEN_VXI gnuzebra callid=[3] Channel 3: Waiting for Call 1<br>
17:04:01:605 NOTI OPEN_VXI gnuzebra callid=[3] Channel 3: In a Call<br>
17:04:01:654 NOTI OPEN_VXI gnuzebra callid=[3] |-1235530864|3|EVENT|2|expr=MYLOG<br>
17:04:02:640 NOTI OPEN_VXI gnuzebra callid=[3] Channel 3: Call Terminated<br>
17:04:02:643 NOTI VOICEGLU gnuzebra callid=[3] hanging up because VXML interpreter exited<br>
<br>
As you can see in the 4th line, the <log> generated output.<br>
<br>
Perhaps you can try the above example and see if it works for you.<br><font color="#888888">
<br>
Doug Campbell<br>
_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
</font></blockquote></div><br></div></div>