Hello i use this lua script tha i found on freeswitch wikiBut when i run it i have the errors:syntax error near unexpected token ;seesion.answer();and when i remove the ";" i have the error on the while loop, syntax error near the unexpected token ==, while (session:ready() == true.I there something i did not conigure in order the script to work? do we put ";" after an instructtion like session:answer() or not.Thank you or your reply.session:answer();while (session:ready() == true) dosession:setAutoHangup(false);session:set_tts_params("flite", "kal");session:speak("Welcome. Welcome to the VoIp World!. this is a Blind Users Programing Community. powered by Freeswitch, the free / ultimate PBX. thank to toni!");session:sleep(100);session:speak("please select an Action.");session:sleep(100);session:speak("to call the conference, press 1");session:sleep(100);session:speak("to call Freeswitch IVR, press 2");session:sleep(100);session:speak("to call Voice Mail, press 3");session:sleep(100);session:speak("for Music on hold, press 4");session:sleep(100);session:speak("to call me, press 0");session:sleep(3000);digits = session:getDigits(1, "", 3000);if (digits == "1") thensession:execute("transfer","9888");endif (digits == "2") thensession:execute("transfer","5000");endif (digits == "3") thensession:execute("transfer","4000");endif (digits == "4") thensession:execute("transfer","9999");endif (digits == "0") thensession:execute("transfer","voipaware@sip.voipuser.org");endend
NDUWAYEZU Joselyne
Haute École de Bruxelles
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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