cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
580
Views
0
Helpful
3
Replies

uccx scipt question

hasan yenilmez
Level 1
Level 1

Hi,

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

1 Accepted Solution

Accepted Solutions

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

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

G.

View solution in original post

3 Replies 3

Tanner Ezell
Level 4
Level 4

You'll need premium licensing but you can do:

Switch CallerANI.subString(0,2)

Case "052": Set CSQ == "someCSQ1"

Case "053": Set CSQ == "someCSQ2"

// ...

Select Resource (CSQ)

HTH

Tanner Ezell

My new book is now available! Get it here: http://amzn.to/GH4NdI

Tanner Ezell www.ctilogic.com

FEI (for everyone's information) - You don't need Premium licensing to use Java methods.  enhanced and premium will both work fine.

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

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

G.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: