11-22-2020 05:41 AM - edited 11-22-2020 05:42 AM
We are using UCCX v 12.5 , And we have VIP costumers we want to set priority to these costumers in the application script to be the first in the queue , They are calling us using thier mobile phones , we need to set thier numbers to highest priority.
Can any one helps here?
Attached the script we are using .
Regards,
Solved! Go to Solution.
11-22-2020 11:24 AM - edited 11-22-2020 11:25 AM
There are several ways to solve this, and here is just one way:
Type | Name | Default Value |
String | vip_list | "+16125551212,+16125551313," |
String | calling_number | "" |
Start
Accept (--Triggering Contact--)
calling_number = Get Call Contact Info (--Triggering Contact--, Calling Number)
If (calling_number.length() >= 10 && vip_list.indexOf(calling_number + ",") >= 0) Then
True
Set Priority (--Triggering Contact--, 10)
False
Select Resource (--Triggering Contact-- from CSQ)
Connected
End
Queued
queueLoop:
Play Prompt (--Triggering Contact--, Loop)
Goto queueLoop
End
This works by checking to see if the string of digits inside of the calling_number variable exist anywhere inside of the longer string of comma separated VIP numbers held by vip_list.
A couple of points which may not seem too obvious at first:
11-23-2020 06:50 AM
Yes, that is possible to achieve. If you have the UCCX Premium license level, then you can do either a direct database connection and use the database steps in the script, or you can access data from a web request. If you have Enhanced or Standard then you're limited to web requests.
11-22-2020 11:24 AM - edited 11-22-2020 11:25 AM
There are several ways to solve this, and here is just one way:
Type | Name | Default Value |
String | vip_list | "+16125551212,+16125551313," |
String | calling_number | "" |
Start
Accept (--Triggering Contact--)
calling_number = Get Call Contact Info (--Triggering Contact--, Calling Number)
If (calling_number.length() >= 10 && vip_list.indexOf(calling_number + ",") >= 0) Then
True
Set Priority (--Triggering Contact--, 10)
False
Select Resource (--Triggering Contact-- from CSQ)
Connected
End
Queued
queueLoop:
Play Prompt (--Triggering Contact--, Loop)
Goto queueLoop
End
This works by checking to see if the string of digits inside of the calling_number variable exist anywhere inside of the longer string of comma separated VIP numbers held by vip_list.
A couple of points which may not seem too obvious at first:
11-22-2020 01:57 PM
Dear Anthony,
All (VIP & Non- VIP) incoming calls coming with 11 digits like 07708501997 .
Should i change this ---> If (calling_number.length() >= 11 && <---- instead of 10 ?
Regards,
11-22-2020 06:08 PM
Technically, it would still work, since we check for 10 or more digits, so it's optional to increase it to 11; which would work as well.
11-23-2020 02:09 AM
Dear Anthony,
One more question can i link these numbers with a database because its a lot of numbers like 1200 . and can be more and less , You know when i want to add more new numbers i should open the script,edit and reapload it to the application, So the database will be easy and more flexible.
looking forward to hear from you.
Kind Regards,
11-23-2020 06:50 AM
Yes, that is possible to achieve. If you have the UCCX Premium license level, then you can do either a direct database connection and use the database steps in the script, or you can access data from a web request. If you have Enhanced or Standard then you're limited to web requests.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide