Lua → VBScript SwxWare v13.27
Returns the SwyxWare internal id of the calling entity.
local nID = PBXCall.CallingEntityId()
The property returns a number value.
If the calling entity is an internal user the id is the SwyxWare internal user id. If the calling entity is a trunk the id is the SwyxWare internal trunk id.
You can use PBXCall.CallingEntityType() to figure if the calling entity is a client or trunk.

By Tom Wellige