<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><div><span><br></span></div><div><span>Hi.</span></div><div><span><br></span></div><div><span>I setup an ivr using httapi and I've got a strange behaviour with input-timeout and digit-timeout attributes.</span></div><div><span><br></span></div><div>The ivr xml is:</div><span><div><br></div><div>&lt;?xml version="1.0"?&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&lt;document type="text/freeswitch-httapi"&gt;</div><div>&nbsp; &nbsp; &lt;work&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;playback file="ivr/ivr-please_enter_the_number_where_we_can_reach_you.wav" name="FluentIvrDigitInput" terminators="#" input-timeout="10000" digit-timeout="5000"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;bind action="--my_bind_action_url--"&gt;~^\d+#&lt;/bind&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/playback&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;continue action="--my_continue_action--"/&gt;</div><div>&nbsp; &nbsp; &lt;/work&gt;</div><div>&lt;/document&gt;&nbsp;</div><div><br></div><div>With no input, t<span style="font-size: 12pt;">he timeout triggers after 10s but I was expecting 5s according to digit-timeout.</span></div><div>The relevant log of the call is:</div><div><div><br></div><div>2013-08-13 11:46:10.315627 [DEBUG] mod_httapi.c:1217 Process Tag: [playback]</div><div>2013-08-13 11:46:10.315627 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:46:10.315627 [DEBUG] switch_ivr_async.c:318 Digit parser HTTAPI: binding ^\d+#/default/0 callback: 0x7fa1e8486bd0 data: 0x880478</div><div>2013-08-13 11:46:10.315627 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:46:10.315627 [INFO] switch_ivr_async.c:201 Digit parser HTTAPI: Setting terminators for realm 'default' to '#'</div><div>2013-08-13 11:46:10.315627 [DEBUG] switch_ivr_play_say.c:1315 Codec Activated L16@8000hz 1 channels 20ms</div><div>2013-08-13 11:46:12.275614 [DEBUG] switch_ivr_play_say.c:1703 done playing file /u/freeswitch/sounds/en/us/callie/ivr/ivr-please_enter_the_number_where_we_can_reach_you.wav</div><div>2013-08-13 11:46:22.275617 [DEBUG] mod_httapi.c:1217 Process Tag: [continue]</div></div><div><br></div><div><br></div><div>With a single digit input,&nbsp;<span style="font-size: 12pt;">the timeout triggers after 5s: i was expecting 10s (according to input-timeout).</span></div><div><span style="font-size: 12pt;">The log follows:</span></div><div><br></div><div><div>2013-08-13 11:48:34.335616 [DEBUG] mod_httapi.c:1217 Process Tag: [playback]</div><div>2013-08-13 11:48:34.335616 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:48:34.335616 [DEBUG] switch_ivr_async.c:318 Digit parser HTTAPI: binding ^\d+#/default/0 callback: 0x7fa1e8486bd0 data: 0x7fa1ec0b7718</div><div>2013-08-13 11:48:34.335616 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:48:34.335616 [INFO] switch_ivr_async.c:201 Digit parser HTTAPI: Setting terminators for realm 'default' to '#'</div><div>2013-08-13 11:48:34.335616 [DEBUG] switch_ivr_play_say.c:1315 Codec Activated L16@8000hz 1 channels 20ms</div><div>2013-08-13 11:48:36.295615 [DEBUG] switch_ivr_play_say.c:1703 done playing file /u/freeswitch/sounds/en/us/callie/ivr/ivr-please_enter_the_number_where_we_can_reach_you.wav</div><div>2013-08-13 11:48:37.375645 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 1:880</div><div>2013-08-13 11:48:37.375645 [DEBUG] switch_channel.c:471 RECV DTMF 1:880</div></div><div><div>2013-08-13 11:48:42.395644 [DEBUG] mod_httapi.c:1217 Process Tag: [continue]</div></div><div><br></div><div><span style="font-size: 12pt;">With a multi-digit input, the timeout triggers after 10s from the end of playback (according to input-timeout). I was expecting a 10s timeout after each digit.</span></div><div><br></div><div><div>2013-08-13 11:51:44.715652 [DEBUG] mod_httapi.c:1217 Process Tag: [playback]</div><div>2013-08-13 11:51:44.715652 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:51:44.715652 [DEBUG] switch_ivr_async.c:318 Digit parser HTTAPI: binding ^\d+#/default/0 callback: 0x7fa1e8486bd0 data: 0x7fa1dc3c0468</div><div>2013-08-13 11:51:44.715652 [INFO] switch_ivr_async.c:212 Digit parser HTTAPI: Setting realm to 'default'</div><div>2013-08-13 11:51:44.715652 [INFO] switch_ivr_async.c:201 Digit parser HTTAPI: Setting terminators for realm 'default' to '#'</div><div>2013-08-13 11:51:44.715652 [DEBUG] switch_ivr_play_say.c:1315 Codec Activated L16@8000hz 1 channels 20ms</div><div>2013-08-13 11:51:46.675626 [DEBUG] switch_ivr_play_say.c:1703 done playing file /u/freeswitch/sounds/en/us/callie/ivr/ivr-please_enter_the_number_where_we_can_reach_you.wav</div><div>2013-08-13 11:51:47.615624 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 1:800</div><div>2013-08-13 11:51:47.615624 [DEBUG] switch_channel.c:471 RECV DTMF 1:800</div><div>2013-08-13 11:51:48.255615 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 2:800</div><div>2013-08-13 11:51:48.255615 [DEBUG] switch_channel.c:471 RECV DTMF 2:800</div><div>2013-08-13 11:51:48.975626 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 3:800</div><div>2013-08-13 11:51:48.975626 [DEBUG] switch_channel.c:471 RECV DTMF 3:800</div><div>2013-08-13 11:51:49.735623 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 4:800</div><div>2013-08-13 11:51:49.735623 [DEBUG] switch_channel.c:471 RECV DTMF 4:800</div><div>2013-08-13 11:51:50.355645 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 5:800</div><div>2013-08-13 11:51:50.355645 [DEBUG] switch_channel.c:471 RECV DTMF 5:800</div><div>2013-08-13 11:51:51.035623 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 6:800</div><div>2013-08-13 11:51:51.035623 [DEBUG] switch_channel.c:471 RECV DTMF 6:800</div><div>2013-08-13 11:51:51.755623 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 7:800</div><div>2013-08-13 11:51:51.755623 [DEBUG] switch_channel.c:471 RECV DTMF 7:800</div><div>2013-08-13 11:51:52.455625 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 8:800</div><div>2013-08-13 11:51:52.455625 [DEBUG] switch_channel.c:471 RECV DTMF 8:800</div><div>2013-08-13 11:51:53.235631 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 9:880</div><div>2013-08-13 11:51:53.235631 [DEBUG] switch_channel.c:471 RECV DTMF 9:880</div><div>2013-08-13 11:51:53.995624 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 0:880</div><div>2013-08-13 11:51:53.995624 [DEBUG] switch_channel.c:471 RECV DTMF 0:880</div><div>2013-08-13 11:51:54.695615 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 7:800</div><div>2013-08-13 11:51:54.695615 [DEBUG] switch_channel.c:471 RECV DTMF 7:800</div><div>2013-08-13 11:51:55.575615 [DEBUG] switch_rtp.c:3917 RTP RECV DTMF 8:800</div><div>2013-08-13 11:51:55.575615 [DEBUG] switch_channel.c:471 RECV DTMF 8:800</div><div>2013-08-13 11:51:56.675645 [DEBUG] mod_httapi.c:1217 Process Tag: [continue]</div></div><div><br></div><div><br></div><div>According to&nbsp;<span style="font-size: 12pt;">Freeswitch wiki, t</span><span style="font-size: 12pt;">hese are the definitions of input-timeout and digit-timeout attributes:</span></div><div><pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.3em; font-size: 13px;">digit-timeout      &nbsp;: Pause to wait for digits after file plays (when input bindings are present)
input-timeout      &nbsp;: Pause to wait for more digits in a multi-digit input</pre></div><div><br></div><div>However the input-timeout acts as the maximum time the user has to enter the total input digits after the end of playback while the digit-timeout seems to be "ignored" when input-timeout is present.</div><div><br></div><div>What am I missing?</div><div><br></div><div>I'm using the latest stable version of freeswitch (1.2.12).</div><div><br></div><div>Thank you for your help.</div><div><br></div><span name="x"></span>Denis Gasparin</span><div><br></div><div><br></div><div><br></div></div></body></html>