Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

uccx scipt question

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

Re: uccx scipt question

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.

3 REPLIES

Re: uccx scipt question

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

uccx scipt question

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

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Re: uccx scipt question

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.

339
Views
0
Helpful
3
Replies
CreatePlease to create content