[Freeswitch-users] digits not able to announce in IVR

ram talk2ram at gmail.com
Thu Nov 22 10:24:55 MSK 2012


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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121122/62254fdb/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list