<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><span style="font-size: 12pt; font-family: Arial;">Hi.</span><div style="font-size: 12pt; font-family: Arial;"><span><br></span></div><div style="font-size: 12pt; font-family: Arial;"><span>After playback I ask to the user to digit a number between 1 and 9999 with or without terminating the input with '#'.</span></div><div style="font-size: 12pt; font-family: Arial;"><span><br></span></div><div style="font-size: 12pt; font-family: Arial;"><span>The first httapi xml I tried was the following:</span></div><div style="font-size: 12pt; font-family: Arial;"><span><br></span></div><div><div><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"><document type="text/freeswitch-httapi"></font></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <work></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <playback file="ivr/please_enter_number_between_1_9999.wav" digit-timeout="5000" name="user_input" terminators="#"></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <bind>~\d{1,4}#{0,1}</bind></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> </playback></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> </work></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"></document></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"><br></span></div><div><span style="font-family: Arial; font-size: 16px;">Freeswitch calls my action as soon as the user input the first digit.</span></div><div><span style="font-family: Arial; font-size: 16px;">So I modified the xml in order to use two bindings:</span></div><div><span style="font-family: Arial; font-size: 16px;"><br></span></div><div><div><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"><document type="text/freeswitch-httapi"></font></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <work></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <playback file="ivr/please_enter_number_between_1_9999.wav" digit-timeout="5000" name="user_input" terminators="#"></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <bind>~\d{1,3}#{0,1}</bind></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> <bind>~\d{4}#{0,1}</bind></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> </playback></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"> </work></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"></document></span></div></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: small;"><br></span></div><div style="font-size: 12pt; font-family: Arial;">Using this xml I get the user input only if the user press "#" after inserting the number.</div></div><div style="font-size: 12pt; font-family: Arial;">If the user presses 123 and then waits for timeout, Freeswitch doesn't send any digits to my action (but sometimes it does). Why?</div><div style="font-size: 12pt; font-family: Arial;"><br></div><div style="font-size: 12pt; font-family: Arial;">From the logs I see that the digits are always received from Freeswitch.</div><div style="font-size: 12pt; font-family: Arial;"><br></div><div style="font-size: 12pt; font-family: Arial;">Thank you in advance for your help.</div><div style="font-size: 12pt; font-family: Arial;">Denis Gasparin</div></div></body></html>