<div dir="ltr"><div><div>Hi,<br><br>I'm calling the method from lua script<br><br> local digits = session:playAndGetDigits(minLength, maxLength,
maxAttempts, 5000, termChar,<span style="background-color:rgb(255,255,0)"> menuPrompt</span>,
noMatchPrompt, grammarRegex, "digits", 1500);<br><br>Now when i tried using file_string:<br>menuPrompt_part1=/usr/audio/phrase1.wav<br>menuPrompt_part2=/usr/audio/phrase2.wav<br><br>local digits = session:playAndGetDigits(minLength, maxLength, maxAttempts, 5000, termChar, <span style="background-color:rgb(255,255,0)">file_string://menuPrompt_part1!menuPrompt_part2</span>, noMatchPrompt, grammarRegex, "digits", 1500);<br><br></div>i got the following error:<br><font size="4"><b>2014-09-24 07:58:25.677222 [ERR] mod_lua.cpp:203 /usr/local/freeswitch/scripts/....: '<name>' expected near '/'</b></font><br><br></div>what did i miss?<br><div><div><div>Thanks,<br></div><div>Snabel<br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>Cc: <br>Date: Thu, 18 Sep 2014 10:08:38 -0700<br>Subject: Re: [Freeswitch-users] session:playAndGetDigits() play two files When digits are fetched<br><div dir="ltr"><div>I think this might be what you're looking for:<br><a href="https://wiki.freeswitch.org/wiki/Mod_file_string" target="_blank">https://wiki.freeswitch.org/wiki/Mod_file_string</a><br><br></div>-MC<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 5:56 AM, Snabel Kabiya <span dir="ltr"><<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div></div>I'm using this method <a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits" target="_blank">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</a><br></div></div>I've this parameter <br></div><div><ul style="line-height:19.2px;list-style-type:disc;margin:0.3em 0px 0px 1.6em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.5714px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><li style="margin-bottom:0.1em">file = Sound file to play while digits are fetched</li></ul>i wanted to ask if i can play two files? if yes what's the syntax?<br><br></div><div>Thanks,<br></div><div>Snabel<br></div></div>
<br></blockquote></div></div></blockquote></div><br></div></div></div></div></div></div>