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

Aqs Younas aqsyounas at gmail.com
Fri Jun 27 15:19:24 MSD 2014


thanks..it works


On 27 June 2014 10:06, Peter Olsson <peter at olssononline.se> wrote:

> 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
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140627/1ebd4ea5/attachment.html 


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