Lua → VBScript SwxWare v13.10
This function returns the secondory calling party number, i.e. the network provided number.
local sNumber = PBXCall.SecondaryCallingPartyNumber()
This function returns a string value.
The functions PBXCall.CalledPartyNumber() and PBXCall.CalledPartyNumberCanonical() provide the so called user provided number. This number can either be suppressed or manipulated (via "clip no screening") by the caller.
The network provided number can't be manipulated by the caller. Usually it is not getting signalled by the provider. On special lines/trunks, e.g. emergency services (police, fire brigade), it will be signalled by the provider.
If the SwyxWare is connected to such special line/trunk the PBXCall.SecondaryCallingPartyNumber() provides the network provided number. Otherwise it is empty.