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
Hi allIam trying to read the number entered and announce back using lua scriptbut i get following error..any suggestions
2012-11-22 12:26:50.850983 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-11-22 12:26:54.090983 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 8:800 2012-11-22 12:26:54.690982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 1:800 2012-11-22 12:26:55.110992 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 4:800 2012-11-22 12:26:55.890982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 3:800 2012-11-22 12:26:56.550979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 7:640 2012-11-22 12:26:57.190981 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 5:640 2012-11-22 12:26:57.830980 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 0:640 2012-11-22 12:26:58.330979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 7:800 2012-11-22 12:26:58.630979 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 4:640 2012-11-22 12:26:59.190980 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF 6:640 2012-11-22 12:26:59.750982 [DEBUG] switch_rtp.c:3798 RTP RECV DTMF #:640 2012-11-22 12:26:59.750982 [DEBUG] switch_ivr_play_say.c:2034 Test Regex [8143750746][\d+] 2012-11-22 12:26:59.750982 [INFO] switch_cpp.cpp:1227 Announcing number: 8143750746 2012-11-22 12:26:59.750982 [DEBUG] switch_ivr.c:2883 No language specified - Using [en] 2012-11-22 12:26:59.750982 [ERR] mod_say_en.c:130 Parse Error! my LUA script. local announce_number = function(number) log("Announcing number: " .. number) s:say(number, "en", "number", "pronounced") s:streamFile("phone-confirm-re-enter.wav") 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