VBScript → Lua
This functions returns all dialed digits *after* the script user was identified by his number/extension.
PBXCall.PostDialingDigits
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 need to know *all* dialed digits you can use the property PBXCall.DialedNumber.
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