VBScript → Lua
This function returns True if the current call is an internal call.
If InternalCall() Then ' do something Else ' do something else End If
or if being used directly within a GSE property dialog, e.g. in an Evaluate block to directly evaluate the Internal Call status and place it the block exits:
This function returns a boolean value.
This function can be called at any time within the call routing script.
To figure if the current call is an external call you can either check the InternalCall() function for False, or use the ExternalCall() function.
The function makes use of the Server Script API function PBXCall.IsInternal.
By Tom Wellige