But but but the wiki says! The wiki just CAN'T be wrong! ;) Actually, according to switch_ivr_play_say.c it looks like you can have a min_digits of "0". Still, I'd make the min digits "1" unless there's a compelling reason to want zero digits.<br>
-MC<br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 8:00 AM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</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">Uhm I thought I just wrote code that did that last week in lua. Seemed to work GREAT.<div><br></div><div><div>if(phone_required==true) then </div><div><span style="white-space:pre-wrap">                </span>...</div>
<div><span style="white-space:pre-wrap">        </span>else </div><div><span style="white-space:pre-wrap">                </span>phone_min=0 --no minimum on the match length</div><div><span style="white-space:pre-wrap">        </span>end</div>
<div>phone=session:playAndGetDigits(phone_min, phone_max, 3, 20000, "#", "phrase:cc_phone_prompt:"..phone_skip, "phrase:cc_invalid_entry","\\d{"..phone_min..","..phone_max.."}");</div>
</div><div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 5:55 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The problem is with<br>
confirmkey = session:playAndGetDigits(0, 1, 1, 1000,<br>
"#", confPrompt, "", "\\d|\\*")<br>
</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It complains of "Invalid Args" (and doesn't say anything). All it has to<br>
do is read out the number that it's intending to call, allowing the user<br>
to change their mind by hitting *.<br>
<br></blockquote></div><div><br>You can't have an argument of "0" for the minimum number of digits. See this page for details on play_and_get_digits args:<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</a><span><font color="#888888"><br>
<br>-MC <br></font></span></div></div><br></blockquote></div></div></div></blockquote></div><br>