<div dir="ltr"><div>Is there a reason that you&#39;re trying to use both bind_digit_action and play_and_get_digits? Normally you&#39;d use just one or the other, and if you&#39;re explicitly asking the user for input then I&#39;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">&lt;<a href="mailto:manish.talwar@nexxuspg.com" target="_blank">manish.talwar@nexxuspg.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 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 &quot;<span style="font-size:12pt">play_and_get_digits&quot; command. We have a IVR application and I am trying to get  either &quot;</span><span style="font-size:12pt">16 digit&quot; card number or &quot;0&quot; 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>&lt;document type=&quot;xml/freeswitch-httapi&quot;&gt;&lt;params&gt;&lt;/params&gt;&lt;work&gt;&lt;execute applicati</b></p>
<p><b>on=&quot;log&quot; data=&quot;card number inputed: 2&quot;/&gt;&lt;execute application=&quot;flush_dtmf&quot;/&gt;&lt;exec</b></p>
<p><b>ute application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;&lt;execute  application=&quot;clear_digit_action&quot;</b></p>
<p><b>data=&quot;my_digit&quot; /&gt;&lt;execute  application=&quot;bind_digit_action&quot; data=&quot;my_digit,~\d{1</b></p>
<p><b>6}|^[0]{1},exec:transfer,dummy_transfer&quot; /&gt;&lt;execute action=&quot;http:/</b></p>
<p><b>/localhost:8080/ivr/fsentercardnumber/response/&quot;  application=&quot;play_and_get_digi</b></p>
<p><b>ts&quot; data=&quot;0 16 1 1000 # en-US/enter_card_number.mp3 &#39;&#39; Digits &#39;&#39; 1000 &#39;&#39; &quot; /&gt;&lt;ge</b></p>
<p><b>tVariable name=&quot;Digits&quot;/&gt;<span style="font-size:12pt">&lt;execute action=&quot;<a href="http://localhost:8080/ivr/fsentercardnumber/response/" target="_blank">http://localhost:8080/ivr/fsentercardnumber/response/</a>&quot;  a</span></b></p>
<p><b>pplication=&quot;play_and_get_digits&quot; data=&quot;0 16 1 20000 # en-US/menu_speak_csr.mp3 &#39;</b></p>
<p><b>&#39; Digits &#39;&#39; 20000 &#39;&#39; &quot; /&gt;&lt;getVariable name=&quot;Digits&quot;/&gt;&lt;execute  application=&quot;clea</b></p>
<p><b>r_digit_action&quot; data=&quot;my_digit&quot; /&gt;&lt;/work&gt;&lt;/document&gt;</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 &quot;<span style="font-size:12pt">bind_digit_action&quot; 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&#39;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>