It looks to me like you're mixing literal characters with variable names. Maybe you should build a variable that contains the whole string. Just as an example: entirePrompt = 'file_string:///usr/audio/phrase1.wav!/usr/audio/phrase2.wav' local digits = session:playAndGetDigits(minLength, maxLength, maxAttempts, 5000, termChar, entirePrompt, noMatchPrompt, grammarRegex, "digits", 1500); -MC On Tue, Sep 23, 2014 at 10:16 PM, Snabel Kabiya <snabel@lexifone.com> wrote:
Hi,
I'm calling the method from lua script
local digits = session:playAndGetDigits(minLength, maxLength, maxAttempts, 5000, termChar, menuPrompt, noMatchPrompt, grammarRegex, "digits", 1500);
Now when i tried using file_string: menuPrompt_part1=/usr/audio/phrase1.wav menuPrompt_part2=/usr/audio/phrase2.wav
local digits = session:playAndGetDigits(minLength, maxLength, maxAttempts, 5000, termChar, file_string://menuPrompt_part1!menuPrompt_part2, noMatchPrompt, grammarRegex, "digits", 1500);
i got the following error: *2014-09-24 07:58:25.677222 [ERR] mod_lua.cpp:203 /usr/local/freeswitch/scripts/....: '<name>' expected near '/'*
what did i miss? Thanks, Snabel
---------- Forwarded message ----------
From: Michael Collins <msc@freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Cc: Date: Thu, 18 Sep 2014 10:08:38 -0700 Subject: Re: [Freeswitch-users] session:playAndGetDigits() play two files When digits are fetched I think this might be what you're looking for: https://wiki.freeswitch.org/wiki/Mod_file_string
-MC
On Thu, Sep 18, 2014 at 5:56 AM, Snabel Kabiya <snabel@lexifone.com> wrote:
Hi,
I'm using this method https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits I've this parameter
- file = Sound file to play while digits are fetched
i wanted to ask if i can play two files? if yes what's the syntax?
Thanks, Snabel
_________________________________________________________________________ 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-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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