VBScript → Lua
This property returns or sets the timeout of the user's (for whom the current script is running) delayed redirection.
If PBXUser.DelayedRedirectTimeout = 30 Then
'...
End If
' configure delayed redirection timeout
PBXUser.DelayedRedirectTimeout = 30
This property takes or returns an integer 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.
' 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 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.
By Tom Wellige