<div dir="ltr">These are probably on the old wiki, just not migrated over yet. You're more than welcome to give back by documenting them too. :)<div><br></div><div>Thanks,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 5:34 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 <span style="font-size:12pt">Michael</span><span style="font-size:12pt">,</span></p>
<p><br>
</p>
<p>Thanks for your help.</p>
<p><br>
</p>
<p>Its working fine now with setting the value of "<span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><b>bind_digit_digit_timeout</b>" and "</span><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><b>bind_digit_input_timeout</b>"
channel variable. I have set it as 10000 and its wait till 10 sec now for matching the regular expression.</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><br>
</span></p>
<p><font color="#212121" face="wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif"><span style="font-size:15px"><execute application="set" data="bind_digit_digit_timeout=10000" /></span></font></p>
<p></p>
<p><font color="#212121" face="wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif"><span style="font-size:15px"><execute application="set" data="bind_digit_input_timeout=10000" /></span></font></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><br>
</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px">Its working fine with me, </span><span style="font-size:12pt">your docs team can document this if required.</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px">Thanks,</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><br>
</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px">Regards,</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px">Manish Talwar</span></p>
<p><span style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15px"><br>
</span></p>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><span class=""><b>From:</b> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>><br>
</span><b>Sent:</b> 28 August 2015 23:15<div><div class="h5"><br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] problem with "play_and_get_digits" command (DTMF delay time)</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>I found this in mod_dptools.c inside the bind_to_session function:<br>
<br>
if (!(dmachine = switch_core_session_get_dmachine(session, target))) {<br>
uint32_t digit_timeout = 1500;<br>
uint32_t input_timeout = 0;<br>
const char *var;<br>
<br>
if ((var = switch_channel_get_variable(channel, "bind_digit_digit_timeout"))) {<br>
digit_timeout = switch_atoul(var);<br>
}<br>
<br>
if ((var = switch_channel_get_variable(channel, "bind_digit_input_timeout"))) {<br>
input_timeout = switch_atoul(var);<br>
}<br>
<br>
switch_ivr_dmachine_create(&dmachine, "DPTOOLS", NULL, digit_timeout, input_timeout, NULL, digit_nomatch_action_callback, session);<br>
switch_core_session_set_dmachine(session, dmachine, target);<br>
}<br>
<br>
</div>
<br>
</div>
It appears that there might be two channel variables for you to try:<br>
bind_digit_digit_timeout<br>
bind_digit_input_timeout<br>
<br>
</div>
These appear not to be documented at present, so I think you can help pay it forward by tinkering with them and then reporting back what you find out. As a guess, I'd say you're running into an issue with people who spend more than 1.5 seconds between digits.
(It appears the default is 1500ms.) Try setting the bind_digit_digit_timeout value in the dialplan. Set it to something absurdly long like 7500 so that you can know for sure it is working.
<br>
<br>
</div>
Please report back with your findings so that the docs team can document this. Bonus points if you document it yourself. :)<br>
<br>
</div>
Hope this helps,<br>
</div>
Michael<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 26, 2015 at 10:16 PM, 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>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 style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b>
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>>
on behalf of Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>><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" target="_blank">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" target="_blank">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>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></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" 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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>