VBScript → Lua SwxWare 2011
This function returns the secondory calling party number, i.e. the network provided number.
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.
By Tom Wellige