Javascript self.session.getVariable
I have the following in javascript: caller_id = self.session.getVariable("caller_id_number") for some reasons it returns: ReferenceError: self is not defined, I am following this page: http://wiki.freeswitch.org/wiki/Session_getVariable any ideas?
it should be just session.getVariable var base_dir = session.getVariable ("base_dir"); example taken from http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/javascript/aadir/aadi... This of course assumes that you are running as an application and you have a session there. Mike On Jan 21, 2010, at 6:58 PM, Mouncif Benniane wrote:
I have the following in javascript:
caller_id = self.session.getVariable("caller_id_number")
for some reasons it returns: ReferenceError: self is not defined, I am following this page:
http://wiki.freeswitch.org/wiki/Session_getVariable
any ideas?
participants (2)
-
Michael Jerris
-
Mouncif Benniane