uccx scipt question

Answered Question
Apr 18th, 2012
User Badges:

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

Correct Answer by Gergely Szabo about 5 years 4 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Tanner Ezell Wed, 04/18/2012 - 05:47
User Badges:
  • Silver, 250 points or more

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

Anthony Holloway Wed, 04/18/2012 - 12:39
User Badges:
  • Purple, 4500 points or more

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

Correct Answer
Gergely Szabo Wed, 04/18/2012 - 07:01
User Badges:
  • Green, 3000 points or more
  • Community Spotlight Award,

    Member's Choice, December 2015

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.

Actions

This Discussion