Recently I upgraded to latest GIT version and found there was an extra parameter to this function.<div><br></div><div>I have two questions if someone can explain:</div><div><br></div><div>--> 4th parameter</div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">* timeout = Number of milliseconds to wait once the file is done playing before you type a digit.</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">From the name, I alway thought this had to do with user's inactivity at the prompt. So if value is 3000, after 3 seconds of inactivity prompt will either do a retry or move on.</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">But I think from wiki description, it seems # of milliseconds for which data entry will be blocked, am I correct?</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><br></span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">--> 10th parameter</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">* digit_timeout = Number of milliseconds to wait after DTMF ( Added Here<a href="http://fisheye.freeswitch.org/changelog/freeswitch.git/?cs=cfa30468e89788d220ad9fbc07ab1ae3406cf3fa" class="external autonumber" title="http://fisheye.freeswitch.org/changelog/freeswitch.git/?cs=cfa30468e89788d220ad9fbc07ab1ae3406cf3fa" rel="nofollow" style="text-decoration: none; color: rgb(51, 102, 187); background-image: url(http://wiki.freeswitch.org/skins/monobook/external.png); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; padding-right: 13px; background-position: 100% 50%; background-repeat: no-repeat no-repeat; ">[1]</a> )</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">What does this do? Is it # ms to wait before second digit can be pressed?</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">I have following function in mod_managed code.</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><div> pStrLivePreObInput = mObjMainSession.PlayAndGetDigits(5, 5, 3, 5000, "",</div>
<div> pStrObGreetTextFile.Replace(".txt", ".wav"),</div><div> @"C:\FreeSWITCH\sounds\en\us\chAsmt\static\error\invalid_number.wav",</div><div> "^\\d", "", 3000);</div>
<div><br></div></span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">Does that mean user has to wait 5 seconds before a key entry can be accepted?</span></div>
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">And there has to be 3 seconds gap between each key?</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">If so, I will need to redo the timing. Please let me know.</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">Malay</span></div>