<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style='font-family: "Calibri","sans-serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;'>Any
ideas, how do I get this one working? <br style="mso-special-character: line-break;">
<br style="mso-special-character: line-break;">
Thanks.</span><br>&nbsp;<BR><div><hr id="stopSpelling">From: aksrini@hotmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Fri, 7 Mar 2014 09:00:09 -0800<br>Subject: Re: [Freeswitch-users] PlayAndGetDigits query<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Yes, I want to retry 3 times if the Invalid Zip is entered. I want to play only InvalidZip.wav every time&nbsp;when the invalid entry is made. I dont want EnterZip.wav to be&nbsp;repeated.<br>&nbsp;digits = session.PlayAndGetDigits(5, 5, 3, 5000, "#*", "EnterZip.wav", "InvalidZip.wav", "<a target="_blank"><font color="#0068cf">\\d</font></a>+", "", 3000, null)<br><br>Am I missing anything?<br>&nbsp;<br><div><hr id="ecxstopSpelling">From: callum.guy@x-on.co.uk<br>Date: Fri, 7 Mar 2014 15:10:51 +0000<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] PlayAndGetDigits query<br><br><div dir="ltr"><div style="color: rgb(7, 55, 99); font-family: verdana,sans-serif; font-size: small;" class="ecxgmail_default">I'm pretty sure you just have it repeating - maybe try&nbsp;</div><div style="color: rgb(7, 55, 99); font-family: verdana,sans-serif; font-size: small;" class="ecxgmail_default">

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

</div><div class="ecxgmail_extra"><br clear="all"><div><div dir="ltr"><pre style="white-space: pre-wrap; word-wrap: break-word;"><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&#58;//www.x-ondata.com/images/footerv2.jpg">
<br></font></font></pre><pre style="white-space: pre-wrap; word-wrap: break-word;"><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="ecxgmail_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 style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="ecxgmail_quote">

<div class="ecxHOEnZb"><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, "#*", "EnterZip.wav", "InvalidZip.wav", "<a target="_blank"><font color="#0068cf">\\d</font></a>+", "", 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>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                               </div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                               </div></body>
</html>