Lua → VBScript SwxWare v13.10
This function returns the name of the calling device.
local sName = PBXCall.CallingDeviceName()
This function returns a string value.
If the call is "external", i.e. it comes via a gateway trunk, link trunk or sip trunk, this function returns the name of that trunk as configured in the SwyxWare Administration.
If you need to figure the calling device type as well you can use the function PBXCall.CallingDeviceType().
With the combination of PBXCall.CallingDeviceName() and PBXCall.CallingDeviceType() you can easily identify a specifc trunk a call came into your SwyxWare, be it an external trunk or a trunk to another linked SwyxWare.
By Tom Wellige