VBScript → Lua
This property returns or sets the state of the user's (for whom the current script is running) delayed redirection setting.
If PBXUser.DelayedRedirect Then '... End If ' enable delayed redirection PBXUser.DelayedRedirect = True ' disable delayed redirection PBXUser.DelayedRedirect = False
This property takes or returns a boolean value.
Please note, that you need to set the number to which should be redirected using the PBXUser.DelayedRedirectNumber function.
Additionally you can configure the timeout (in seconds) for the delayed redirection to take affect using the function PBXUser.DelayedRedirectTimeout.
If your script should check how the user's redirection is configured, make sure it is placed above the Delayed Redirection Rule in the Call Routing Manager's rule list. Otherwise your script will never be called if the user has enabled his redirection.