i am trying to make an javascripot ivr and collecting user input ,but during collection session.collectInput( mycb, dtmf, timeout );gets timeout and returnsfunction mycb( session, type, obj, arg ) {try {if ( type == "dtmf" ) {console_log( "info", "digit: "+obj.digit+"\n" );if ( obj.digit == "#" ) {console_log( "info", "detected pound sign.\n" );exit = true;return( false );}dtmf.digits += obj.digit;if ( dtmf.digits.length >= digitmaxlength ) {exit = true;return( false );}}} catch (e) {console_log( "err", e+"\n" );}return( true );} //end function collect_user_inputi want that timeout gets started countdown after last digit pressedhow to solve this ?
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest