Lua → VBScript SwxWare v13.10
This function sets or returns the timeout of the script users' (for whom the current script is running) own delayed redirection.
if (PBXUser.DelayedRedirectTimeout() == 30) then -- do something end -- configure delayed redirection timeout PBXUser.DelayedRedirectTimeout(30)
This property takes or returns a number value.
Please note, that you need to enable the delayed redirection using the PBXUser.DelayedRedirect() function.
Additionally you can configure the delayed redirection target using the function PBXUser.DelayedRedirectNumber().
-- enable delayed redirection of all calls to users voicemail after 30 seconds PBXUser.DelayedRedirect(true) PBXUser.DelayedRedirectNumber("voicemail") PBXUser.DelayedRedirectTimeout(30)
If your script should check how the users' redirection is configured, make sure it is placed above the Delayed Redirection rule in the Call Routing Manager list of rules. Otherwise your script will never be reached if the user has enabled his redirection.
By Tom Wellige