[Freeswitch-users] cant get session variable in javascript

Gayatri Kulkarni xtpl.gayatri at gmail.com
Tue Sep 16 08:44:06 PDT 2008


var cid = session.getVariable("caller_id_number");

returns:
2008-09-16 08:31:57 [ERR] readFile.js:36 mod_spidermonkey()  TypeError: session.
getVariable is not a function

var cid = self.session.getVariable("caller_id_number");

returns:
2008-09-16 08:31:57 [ERR] readFile.js:36 mod_spidermonkey()  TypeError: session.
self is not defined.

what would I be doing wrong?

Regards,
Gayatri Kulkarni

-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080916/2794114a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list