Lua → VBScript SwxWare v13.10
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* any so called post dialing digits.
local sCalledNumber = CalledNumber()
This function returns a string value.
This function is identical to the Server Script API function PBXCall.CalledPartyNumber().
There is a Server Script API function available PBXCall.DialedNumber() which returns all dialed digits, including the so called post dialing digits..
If you are just interested in the post dialing digits you can use the GSE build-in function PostDialingDigits().
Example:
- Script user has internal number 200
-
Internal caller dialed 200123
- PBXCall.CalledPartyNumber() returns 200
- PBXCall.DialedNumber() returns 200123
- PostDialingDigits() returns 123
By Tom Wellige