VBScript → Lua SwxWare 2011
This function returns the secondory calling party number, i.e. the network provided number.
This function returns a string value.
The function IpPbx.CallingNumber provides 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 IpPbx.SecondaryCallingNumber provides the network provided number. Otherwise it is empty.