| Summary: | ASTERISK-09133: Response Timeout Deprecated | ||
| Reporter: | Mathew Jones (matjones) | Labels: | |
| Date Opened: | 2007-03-28 13:12:55 | Date Closed: | 2007-03-29 01:24:24 |
| Priority: | Minor | Regression? | No |
| Status: | Closed/Complete | Components: | Core/General |
| Versions: | Frequency of Occurrence | ||
| Related Issues: | |||
| Environment: | Attachments: | ||
| Description: | The ResponseTimeout function is now deprecated in 1.4, here is a fix to use the new method. Change this line, in menus.html: action_string = "s,"+ newpriority+ ",ResponseTimeout(" + $('newstep_var').value + ")"; To: action_string = "s,"+ newpriority+ ",Set(TIMEOUT(response)=" + $('newstep_var').value + ")"; Also, to make sure it displays in a user readable format in the 'Steps', change: if( temp[2].match("ResponseTimeout") ){ temp[2] = temp[2].replace(/ResponseTimeout\(/, ""); To: if( temp[2].match("TIMEOUT") ){ temp[2] = temp[2].replace(/Set\(TIMEOUT\(response\)\=/, ""); | ||
| Comments: | By: Pari Nannapaneni (pari) 2007-03-29 01:24:24 Thanks for taking the time to digging in and giving the drop-in replacement. Worked great ! applied in commit 538 :-) thanks Pari | ||