<div dir="ltr"><div><div><div>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:<br><br></div>entirePrompt = 'file_string:///usr/audio/phrase1.wav!/usr/audio/phrase2.wav'<br><br>local digits = session:playAndGetDigits(minLength, maxLength, maxAttempts, 5000, termChar, <span style="background-color:rgb(255,255,0)">entirePrompt</span>, noMatchPrompt, grammarRegex, "digits", 1500);<br></div><br></div><div>-MC<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 10:16 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">msc@freeswitch.org</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">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>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>