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.
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige