<span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre>SOLVED</pre><pre>I found an old post from august asking the same thing.</pre><pre>variable is session.telephone.dnis

</pre></span><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 2:33 PM, Anthony Geoffron <span dir="ltr">&lt;<a href="mailto:anthony.geoffron@gmail.com" target="_blank">anthony.geoffron@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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&#39;t seem to be populated properly</div><div><br>I&#39;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><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;vxml version = &quot;2.0&quot; xmlns=&quot;<a href="http://www.w3.org/2001/vxml" target="_blank">http://www.w3.org/2001/vxml</a>&quot;&gt;</div>


<div> &lt;form&gt;</div><div>   &lt;block&gt;</div></div><div>&lt;log expr=&quot;session.connection.remote.uri&quot; label=&quot;DNIS&quot;/&gt;</div><div><div>     &lt;prompt&gt; Welcome &lt;/prompt&gt;</div>
<div>   &lt;/block&gt;</div>
<div> &lt;/form&gt;</div><div>&lt;/vxml&gt;</div></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><div></div><div><div>
<br></div><br><div class="gmail_quote">
On Fri, Dec 4, 2009 at 2:09 PM, Doug Campbell <span dir="ltr">&lt;<a href="mailto:voiceglue@campbellcastle.com" target="_blank">voiceglue@campbellcastle.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><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>
&lt;form id=&quot;myrequest&quot;&gt;<br>
&lt;log expr=&quot;MYLOG&quot;/&gt;<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&#39;t work.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FYI. I&#39;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>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;vxml version = &quot;2.0&quot; xmlns=&quot;<a href="http://www.w3.org/2001/vxml" target="_blank">http://www.w3.org/2001/vxml</a>&quot;&gt;<br>
  &lt;form&gt;<br>
    &lt;block&gt;<br>
      &lt;log expr=&quot;&#39;MYLOG&#39;&quot;/&gt;<br>
      &lt;prompt&gt; Welcome &lt;/prompt&gt;<br>
    &lt;/block&gt;<br>
  &lt;/form&gt;<br>
&lt;/vxml&gt;<br>
<br>
Here&#39;s what I got in the dynlog:<br>
<br>
17:04:01:579 NOTI VOICEGLU gnuzebra callid=[3] starting VXML interp on url=&quot;<a href="http://localhost/vg_test_www/vxml/tmp/test.vxml" target="_blank">http://localhost/vg_test_www/vxml/tmp/test.vxml</a>&quot; for DNIS=&quot;4&quot; 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 &lt;log&gt; 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></div></div>
</blockquote></div><br>