Lua → VBScript SwxWare v13.27
Returns the type of the calling entity.
local nType = PBXCall.CallingEntityType()
This function returns a number value.
The following constants are available to check for the different entity types:
- PBXEntityTypeClient (internal call from another user)
-
PBXEntityTypeTrunk (external call via a trunk)
You can use PBXCall.CallingEntityId() to receive the SwyxWare internal user or trunk id.

By Tom Wellige