Jump to content

- References

- # CalledNumber()

  Followers 0

  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

  - May 21, 2022
  Share
  Share
  Followers 0
  Previous Page CallDuration()
  Next Page CallID()

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.