<div dir="ltr">For me there was. &quot;enter the value or press # to skip&quot; because it&#39;s optional... seems a very possible use-case. It&#39;s an IVR for gathering information, not navigating a menu.<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 6:09 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

But but but the wiki says! The wiki just CAN&#39;T be wrong! ;) Actually, according to switch_ivr_play_say.c it looks like you can have a min_digits of &quot;0&quot;. Still, I&#39;d make the min digits &quot;1&quot; unless there&#39;s a compelling reason to want zero digits.<span class="HOEnZb"><font color="#888888"><br>


-MC</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 8:00 AM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</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, &quot;#&quot;, &quot;phrase:cc_phone_prompt:&quot;..phone_skip, &quot;phrase:cc_invalid_entry&quot;,&quot;\\d{&quot;..phone_min..&quot;,&quot;..phone_max..&quot;}&quot;);</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">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</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>
&quot;#&quot;, confPrompt, &quot;&quot;, &quot;\\d|\\*&quot;)<br>
 </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It complains of &quot;Invalid Args&quot; (and doesn&#39;t say anything). All it has to<br>
do is read out the number that it&#39;s intending to call, allowing the user<br>
to change their mind by hitting *.<br>
<br></blockquote></div><div><br>You can&#39;t have an argument of &quot;0&quot; 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>
</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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>
<br></blockquote></div><br></div>