<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 class="Apple-tab-span" style="white-space:pre">                </span>...</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>else </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>phone_min=0 --no minimum on the match length</div><div><span class="Apple-tab-span" style="white-space:pre">        </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 class="im"><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 class="HOEnZb"><font color="#888888"><br>


<br>-MC <br></font></span></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></div>