[Freeswitch-users] session:playAndGetDigits() play two files When digits are fetched

Snabel Kabiya snabel at lexifone.com
Wed Sep 24 09:16:40 MSD 2014


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 at freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at 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 at 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
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140924/7ba3b420/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list