I've never tried calling the say method of the session object directly. I personally use this syntax: session:execute("say","en number pronounced " .. digits) Try that and let us know if you get a different result. We'll take it from there. -MC On Wed, Nov 21, 2012 at 11:24 PM, ram <talk2ram@gmail.com> wrote:
Hi all
Iam trying to read the number entered and announce back using lua script
but i get following error..any suggestions
1. 2012-11-22 12:26:50.850983 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2. 2012-11-22 12:26:54.090983 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 8:800 3. 2012-11-22 12:26:54.690982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 1:800 4. 2012-11-22 12:26:55.110992 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 4:800 5. 2012-11-22 12:26:55.890982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 3:800 6. 2012-11-22 12:26:56.550979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 7:640 7. 2012-11-22 12:26:57.190981 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 5:640 8. 2012-11-22 12:26:57.830980 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 0:640 9. 2012-11-22 12:26:58.330979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 7:800 10. 2012-11-22 12:26:58.630979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 4:640 11. 2012-11-22 12:26:59.190980 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 6:640 12. 2012-11-22 12:26:59.750982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF #:640 13. 2012-11-22 12:26:59.750982 [DEBUG] switch_ivr_play_say.c:2034 Test Regex [8143750746][\d+] 14. 2012-11-22 12:26:59.750982 [INFO] switch_cpp.cpp:1227 Announcing number: 8143750746 15. 2012-11-22 12:26:59.750982 [DEBUG] switch_ivr.c:2883 No language specified - Using [en] 16. 2012-11-22 12:26:59.750982 [ERR] mod_say_en.c:130 Parse Error! 17. 18. my LUA script.
19. 20. local announce_number = function(number) 21. log("Announcing number: " .. number) 22. s:say(number, "en", "number", "pronounced") 23. s:streamFile("phone-confirm-re-enter.wav") 24. end
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org