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:
  • 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