Lua SwxWare v13.10
This function returns the name of the user that has been called.
local sName = PBXCall.CalledPartyName()
This function returns a string value.
To figure which number has been called you can use the PBXCall.CalledPartyNumber() function.
By Tom Wellige