<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">it should be just session.getVariable<div><br></div><div>var base_dir = session.getVariable ("base_dir"); </div><div><br></div><div>example taken from <a href="http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/javascript/aadir/aadir.js">http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/javascript/aadir/aadir.js</a></div><div><br></div><div>This of course assumes that you are running as an application and you have a session there.</div><div><br></div><div>Mike</div><div><br></div><div><br><div><div>On Jan 21, 2010, at 6:58 PM, Mouncif Benniane wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have the following in javascript:<br><font size="4"><br></font><pre><font size="4">caller_id = self.session.getVariable("caller_id_number")</font><br><br><br><font size="4">for some reasons it returns: <br>ReferenceError: self is not defined, I am following this page:<br>
<a href="http://wiki.freeswitch.org/wiki/Session_getVariable">http://wiki.freeswitch.org/wiki/Session_getVariable</a><br><br><br>any ideas?<br></font><br></pre></blockquote></div><br></div></body></html>