I want to write a script ,
For instance if contact info starts with '053' I want to redirect a specified group of agent ,
if starts with '021' redirect another group of agent .
I could get contact info but I couldn't get contact info if starts a specified number .
Thanks in advance
create a String type variable, named ani for instance, then use the Get Call Contact Info step, where you map the "Calling Number" attribute to the ani variable.
Then just use an If node like if ani.startsWith("022") etc