VBScript → Lua
This property returns or sets the state of the user's (for whom the current script is running) undconditional redirection setting.
If PBXUser.UnconditionalRedirect Then '... End If ' enable redirection PBXUser.UnconditionalRedirect = True ' disable redirection PBXUser.UnconditionalRedirect = 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.UnconditionalRedirectNumber function.
If your script should check how the user's redirection is configured, make sure it is placed above the Unconditional Redirection Rule in the Call Routing Manager's rule list. Otherwise your script will never be called if the user has enabled his redirection.