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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

UCCX 5.0 How to drop a prank caller

My call center is getting prank calls and i would like to setup my script to stop this.

My idea would be to use Call Contact Info with a IF then route the call to disconnect. Of course i would need the number of the caller.

I’m not sure what type of variables or how to set this up.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: UCCX 5.0 How to drop a prank caller

Hi,

I did something like that before, and as you said with a Get Call Contact info you can get the calling number of the triggering contact and store that in a String variable. Then with the If step you compare that string variable with the number of the caller.  But If the caller id is unknown you can't do anything about it.

Start

Accept

Get Call Contact Info

if ( callingNumber == "")


True

    Go to "Label disconnect"

False

    Let the call pass

Label disconnect

Terminate

End

Gabriel

3 REPLIES

Re: UCCX 5.0 How to drop a prank caller

Hi,

I did something like that before, and as you said with a Get Call Contact info you can get the calling number of the triggering contact and store that in a String variable. Then with the If step you compare that string variable with the number of the caller.  But If the caller id is unknown you can't do anything about it.

Start

Accept

Get Call Contact Info

if ( callingNumber == "")


True

    Go to "Label disconnect"

False

    Let the call pass

Label disconnect

Terminate

End

Gabriel

New Member

Re: UCCX 5.0 How to drop a prank caller

Thank you Gabriel!

I could not remember == or i just didnt know.

Andy

Re: UCCX 5.0 How to drop a prank caller

If callingNumber was ever null, the if step would fail the entire script.

A safer option:

if ("".equals(callingNumber))

Or a longer variation:

if (callingNumber != null && callingNumber == "")

Ofcourse, if you are receiving a single prank call today, this works great.  But what if tomorrow, you are receiving two prank callers?  Or ten?  Or 100?

Variables:

java.util.ArrayList prank_caller_list = new java.util.ArrayList(

     java.util.Arrays.asList(

          new String[] {

               "",

               "",

               ""

          }

     )

)

Script:

if (prank_caller_list.contains(calling_number))
Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
353
Views
5
Helpful
3
Replies
CreatePlease to create content