[Freeswitch-users] global name 'varname' is not defined

Aqs Younas aqsyounas at gmail.com
Fri Jun 27 00:45:01 MSD 2014


Everytime i rum this code..

while (session.ready() == True):
                session.answer()
                number=session.getVariable("caller_id_number");
                session.setVariable("varname", "hammer");
                consoleLog("info",varname)

i get this error.

"Message: global name 'varname' is not defined
Exception: None"

Don't where i am doing something wrong

Any help would be much appreciated.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140627/bc51e82a/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list