VBScript → Lua
The function returns the return value from the latest connect to attempt.
Dim nLastCause nLastCause = LastCause()
This function returns an integer value.
After having used a Connect To block within the call routing script where the result of the connect to attempt was evaluated by the extis of the block it is possible to use this LastCause() function to request that result again.
To evaluate the return values refer to Server Script API Return Values.
By Tom Wellige