<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(7,55,99)">I&#39;m pretty sure you just have it repeating - maybe try </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(7,55,99)">

<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(7,55,99)"><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">digits = session.PlayAndGetDigits(5, 5, 1, 5000, &quot;#*&quot;, &quot;EnterZip.wav&quot;, &quot;InvalidZip.wav&quot;, &quot;</span><a style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">\\d</a><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">+&quot;, &quot;&quot;, 3000, null)</span></div>

</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><pre style="word-wrap:break-word;white-space:pre-wrap"><font color="#073763"><font face="verdana, sans-serif">______________________________</font><font size="1" face="verdana, sans-serif">

Callum Guy
Senior Developer

X-on
Framlingham Technology Centre
Station Road, Framlingham,
Suffolk, IP13 9EZ

T       0333 332 0116
E       <a href="mailto:callum.guy@x-on.co.uk" target="_blank">callum.guy@x-on.co.uk</a>


<img src="http://www.x-ondata.com/images/footerv2.jpg">
<br></font></font></pre><pre style="word-wrap:break-word;white-space:pre-wrap"><font color="#073763"><font size="1" face="verdana, sans-serif">X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead, Herts, HP3 9SD  
Company Registration No. 2578478 

This email has been sent from X-on.The contents and attachments are confidential to the sender and the intended addressees.If the message
is received by anyone other than the addressee please return the message to the sender by replying to it and then delete the message from 
your computer without copying or disclosing the contents to anyone.Opinions, conclusions and statements of intent in this email are those of
the sender and do not bind X-on unless confirmed by authorised representatives independently of this message.While best endeavours have 
been taken to avoid transmission of viruses, it is the responsibility of the recipient to scan for these.Please note emails sent to and from X-on 
are routinely monitored for record keeping and quality control, to ensure regulatory compliance and prevent unauthorised use of our systems.

</font><font size="1" face="verdana, sans-serif">Please consider the environment before printing this email.</font></font></pre></div></div>
<br><br><div class="gmail_quote">On 7 March 2014 14:34, Srini K <span dir="ltr">&lt;<a href="mailto:aksrini@hotmail.com" target="_blank">aksrini@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">


<div><div dir="ltr">Hi,<br>Iam using Mod_Managed to PlayAndGetDigits.<br>It plays EnterZip.wav file and waits for 5 digit Zip code to be entered. No issues on succesful entry.<br>On invalid entry (within the retry limits) it plays InvalidZip.wav followed by EnterZip.wav. Is it the expected behaviour ?<br>

On Invalid entry I want only InvalidZip.wav to be played NOT EnterZip.wav is there a way?<br><br>My API call looks like<br>digits = session.PlayAndGetDigits(5, 5, 3, 5000, &quot;#*&quot;, &quot;EnterZip.wav&quot;, &quot;InvalidZip.wav&quot;, &quot;<a><font color="#0068cf">\\d</font></a>+&quot;, &quot;&quot;, 3000, null)<br>

 <br>I referred the following wiki too.<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits" target="_blank"><font color="#0068cf">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</font></a><br>

<a href="https://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits" target="_blank"><font color="#0068cf">https://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits</font></a><br><br>Thanks<br>Srini                                               </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>
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>
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>