Jump to content

- PBXCall

- # PBXCall.DialedNumber()

  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 *all* digit, not just the first digits to correctly identify the script user but also the so called post dialing digits.

      local sNumber = PBXCall.DialedNumber()

  This function returns a string value.

  There is another function available PBXCall.CalledPartyNumber() which returns just the first digits to correctly identify the script user.

  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

  - May 22, 2022
  Share
  Share
  Followers 0

## 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.