[Freeswitch-users] Using say in play_and_get_digits

Vishal Kakkar vishal.kakkar at gmail.com
Wed Jul 10 09:38:42 MSD 2013


Hi All,

I have an IVR like below.. Problem is it repeat complete input recieved
from user before asking for confirmation. i.e. user can not just press 1 to
proceed while system is repeating recieved inputs.

<action application="play_and_get_digits" data="20 21 50 15000 #
$${IVR_PROMPTS}/AppVoiceFolder/EnterRechargeDetails.wav
$${IVR_PROMPTS}/InvalidInput.wav my_digit ^((\d{10})\*(\d{6})\*(1|3|12))$"/>
<action application="playback"
data="$${IVR_PROMPTS}/AppVoiceFolder/RepeatEnteredDetails.wav"/>
<action application="say" data="hi name_spelled iterated  NEUTER
${my_digit}"/>
<action application="play_and_get_digits" data="1 1 2 5000 #
file_string://$${IVR_PROMPTS}/AppVoiceFolder/Press1ToConfirm.wav!file_string://$${IVR_PROMPTS}/AppVoiceFolder/Press2ToReEnter.wav
$${IVR_PROMPTS}/InvalidInput.wav my_choice ^[1-2]"/>


Something i tried to achieve this is-

<action application="play_and_get_digits" data="20 21 50 15000 #
$${IVR_PROMPTS}/AppVoiceFolder/EnterRechargeDetails.wav
$${IVR_PROMPTS}/InvalidInput.wav my_digit ^((\d{10})\*(\d{6})\*(1|3|12))$"/>
<action application="playback"
data="$${IVR_PROMPTS}/AppVoiceFolder/RepeatEnteredDetails.wav"/>
<action application="play_and_get_digits" data="1 1 2 5000 # say:'hi
name_spelled iterated  NEUTER ${my_digit}'
file_string://$${IVR_PROMPTS}/AppVoiceFolder/Press1ToConfirm.wav!file_string://$${IVR_PROMPTS}/AppVoiceFolder/Press2ToReEnter.wav
$${IVR_PROMPTS}/InvalidInput.wav my_choice ^[1-2]"/>

But issue is that it reads "hi name_spelled iterated  NEUTER
912345678*10001*12" as string.
Please help how can i fix it.

Please also note that i have local language sound files kept in "hi" folder
so that digits pronounced by system use the same and this is working when i
use first method.
But when i include say in "play_and_get_digits" it picks up english again.

Thanks,
-Vishal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130710/6f286283/attachment.html 


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