global name 'varname' is not defined
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
The variable varname has not been set prior to the consoleLog call. torsdag 26 juni 2014 skrev Aqs Younas <aqsyounas@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
thanks..it works On 27 June 2014 10:06, Peter Olsson <peter@olssononline.se> wrote:
The variable varname has not been set prior to the consoleLog call.
torsdag 26 juni 2014 skrev Aqs Younas <aqsyounas@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Aqs Younas
-
Peter Olsson