[Freeswitch-users] Javascript self.session.getVariable

Michael Jerris mike at jerris.com
Sun Jan 24 01:57:17 PST 2010


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/aadir.js

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?
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100124/3d7868ea/attachment-0002.html 


More information about the FreeSWITCH-users mailing list