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

Peter Olsson peter at olssononline.se
Fri Jun 27 09:06:27 MSD 2014


The variable varname has not been set prior to the consoleLog call.

torsdag 26 juni 2014 skrev Aqs Younas <aqsyounas at gmail.com>:

> 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/4557ec27/attachment-0001.html 


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