<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>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="http://localhost:8080/ivr/fsentercardnumber/response/" 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/18188535351@</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>51@192.168.1.112 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>51@192.168.1.112 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>
</body>
</html>