VBScript → Lua
This function returns the dialed number that has leaded the call to reach the current script. It returns just the first digits to correctly identify the script user but *not* also the so called post dialing digits.
PBXCall.CalledPartyNumber
This function returns a string value.
This function is identical to the GSE build in function CalledNumber().
This function returns the internal number of the script user that was called. If you are interested in the external number that was dialed you can use the PBXCall.CalledPartyNumberCanonical.
There is another function available PBXCall.DialedNumber which returns all dialed digits, including the so post dialing digits..
If you are interested in the post dialing digits you can use the property PBXCall.PostDialingDigits or the GSE build in function PostDialingDigits().
Example:
-
Script user has internal number 200 and external number +4923147770
- Internal caller dialed 200123
- PBXCall.CalledPartyNumber returns 200
- PBXCall.DialedNumber returns 200123
-
PBXCall.PostDialingDigits returns 123
- External caller dialed +492314447
- PBXCall.CalledPartyNumberCanonical returns +4923147770
By Tom Wellige