- Silver, 250 points or more
Is it possible to check if the ANI that is seen by the CCX script start with for example +1 and the second digit isn't an 8? We have today a section that looks like this with in an if statement.
ANI.startsWith("+10") || ANI.startsWith("+12")
What I'd like to achieve is something similar to what can be done in CM, aka match +1[^8] on for example TPs.
I'd also like to get input to if you can do this check in a more effective way or more to the point nicer looking from a script perspective. Today we have quite a large block of numbers within many different if statements that map to separate language sections later on in the script.
on second thought, this would be even better:
This would return
true if the number starts with anything but +18, otherwise