<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>Thank you for your response. </p>
<p><br>
</p>
<p>Actually, we are using multiple <span style="font-size: 12pt;">play_and_get_digits in a single dialplan. And when user inputed any matching format of input then we need to leave all remaining </span><span style="font-size: 12pt;">play_and_get_digits</span><span style="font-size: 12pt;"> commands
of that dialplan. That is why I used </span><span style="font-size: 12pt;">bind_digit_action also in same dialplan.</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Please suggest how do we make the changes for this concern, how do we break the dialplan when required matching input found. </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Basically, its works fine as our requirement but we need to increase the DTMF </span><span style="font-size: 12pt;">delay time only, whenever user inputed </span>slowly then its take the chunk of inputed data and tried to match
the <span style="font-size: 12pt;">bind_digit_action</span><span style="font-size: 12pt;"> expression. As its break the DTMF into many chunks so its not matching expected regular expression of command. </span><br>
</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Please suggest.</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Thanks,</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Regards,</span></p>
<p>Manish Talwar</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Michael Collins <msc@freeswitch.org><br>
<b>Sent:</b> 26 August 2015 20:12<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] problem with "play_and_get_digits" command (DTMF delay time)</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Is there a reason that you're trying to use both bind_digit_action and play_and_get_digits? Normally you'd use just one or the other, and if you're explicitly asking the user for input then I'd think that you would only need play_and_get_digits.<br>
<br>
</div>
-MC<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Aug 25, 2015 at 5:56 AM, Manish Talwar <span dir="ltr">
<<a href="mailto:manish.talwar@nexxuspg.com" target="_blank">manish.talwar@nexxuspg.com</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">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I have found one small problem with "<span style="font-size:12pt">play_and_get_digits" command. We have a IVR application and I am trying to get either "</span><span style="font-size:12pt">16 digit" card number or "0" for move to customer support from the
user. </span><span style="font-size:12pt">Please find my dialplan as follows:</span></p>
<p><br>
</p>
<p><b>2015-08-25 18:05:37.535806 [CRIT] mod_httapi.c:1148 Debugging Return Data:</b></p>
<p><b><document type="xml/freeswitch-httapi"><params></params><work><execute applicati</b></p>
<p><b>on="log" data="card number inputed: 2"/><execute application="flush_dtmf"/><exec</b></p>
<p><b>ute application="sleep" data="2000"/><execute application="clear_digit_action"</b></p>
<p><b>data="my_digit" /><execute application="bind_digit_action" data="my_digit,~\d{1</b></p>
<p><b>6}|^[0]{1},exec:transfer,dummy_transfer" /><execute action="http:/</b></p>
<p><b>/localhost:8080/ivr/fsentercardnumber/response/" application="play_and_get_digi</b></p>
<p><b>ts" data="0 16 1 1000 # en-US/enter_card_number.mp3 '' Digits '' 1000 '' " /><ge</b></p>
<p><b>tVariable name="Digits"/><span style="font-size:12pt"><execute action="<a href="http://localhost:8080/ivr/fsentercardnumber/response/" target="_blank">http://localhost:8080/ivr/fsentercardnumber/response/</a>" a</span></b></p>
<p><b>pplication="play_and_get_digits" data="0 16 1 20000 # en-US/menu_speak_csr.mp3 '</b></p>
<p><b>' Digits '' 20000 '' " /><getVariable name="Digits"/><execute application="clea</b></p>
<p><b>r_digit_action" data="my_digit" /></work></document></b></p>
<p><br>
</p>
<p><br>
</p>
<p><span style="font-size:12pt">It is working fine as expected if user input 16 digit number </span><span style="font-size:12pt">continuously</span><span style="font-size:12pt"> without any delay. </span>After getting full 16 digit number it will match the
"<span style="font-size:12pt">bind_digit_action" and move to other dialplan. </span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">But my problem is if a user enter card number slowly then its trying to match already inputed DTMF values with matching binding and received next inputed value as different DTMF values. As a example, if I tried to input 55 and
then wait for 1-2 seconds then Freeswitch tried to match 55 with binding. </span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt"><b><br>
</b></span></p>
<p><b>2015-08-25 18:05:39.535920 [DEBUG] switch_ivr_play_say.c:1305 Codec Activated L1</b></p>
<p><b>6@8000hz 1 channels 20ms</b></p>
<p><b>2015-08-25 18:05:39.755933 [DEBUG] switch_rtp.c:5819 RTP RECV DTMF 5:2080</b></p>
<p><b>2015-08-25 18:05:40.015948 [DEBUG] switch_rtp.c:5819 RTP RECV DTMF 5:2080</b></p>
<p><b>2015-08-25 18:05:41.536035 [DEBUG] mod_dptools.c:132 sofia/internal/<a href="tel:18188535351" value="+18188535351" target="_blank">18188535351</a>@</b></p>
<p><b>192.168.1.112 <font color="#ff0000">Digit NOT match binding [55]</font></b></p>
<p><b>2015-08-25 18:05:41.536035 [DEBUG] switch_channel.c:486 RECV DTMF 5:2000</b></p>
<p><b>2015-08-25 18:05:41.536035 [DEBUG] switch_channel.c:582 sofia/internal/181885353</b></p>
<p><b><a href="mailto:51@192.168.1.112" target="_blank">51@192.168.1.112</a> Queue dtmf</b></p>
<p><b>digit=5 ms=250 samples=2000</b></p>
<p><b>2015-08-25 18:05:41.536035 [DEBUG] switch_channel.c:486 RECV DTMF 5:2000</b></p>
<p><b>2015-08-25 18:05:41.536035 [DEBUG] switch_channel.c:582 sofia/internal/181885353</b></p>
<p><b><a href="mailto:51@192.168.1.112" target="_blank">51@192.168.1.112</a> Queue dtmf</b></p>
<p></p>
<p><b>digit=5 ms=250 samples=2000</b></p>
<p><b><br>
</b></p>
<p><br>
</p>
<p>I don't want fresswtich tried to match the binding if there is any pause time while inputed the number as user can type slowly. </p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">I want to reset this binding delay time so that user can type slowly and we will get full 16 digits number for matching inputed value in certain time interval.</span></p>
<p><br>
</p>
<p>Please suggest me how can I resolve this problem and increase the DTMF delay time.</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p>Regards,</p>
<p>Manish Talwar</p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
</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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>