VBScript → Lua SwxWare v13.27
Returns the SwyxWare internal id of the calling entity.
Dim nID nID = PBXCall.CallingEntityId
The property returns a long 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