Lua → VBScript SwxWare v13.10
This function sets or returns the state of the users' (for whom the current script is running) own undconditional redirection setting.
if (PBXUser.UnconditionalRedirect() == true) then -- do something end -- enable redirection PBXUser.UnconditionalRedirect(true) -- disable redirection PBXUser.UnconditionalRedirect(false)
This function 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 list of rules. Otherwise your script will never be reached if the user has enabled his redirection.
Example from the Function Collection