cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
715
Views
0
Helpful
1
Replies

Updating UCCX Script to Handle Multiple Prefixes

OPRoger
Level 1
Level 1

Dear Experts,

I would like your assistance in updating a script in UCCX. Currently, the script is configured as follows:

If (ClientPhoneNumber.startsWith("9")) Then
    Set ClientPhoneNumber = "9" + ClientPhoneNumber
End If

However, we now have multiple teams using different prefixes—some use "9" while others use "6". this prefix configured in CUCM for national or international call. I would like to update the script to accommodate both cases. My proposed logic is as follows:

If ClientPhoneNumber.startsWith("9") Then
    Set ClientPhoneNumber = "9" + ClientPhoneNumber
ElseIf ClientPhoneNumber.startsWith("6") Then
    Set ClientPhoneNumber = "6" + ClientPhoneNumber
End If

Additionally, the script includes logic to limit the number of calls, and if the user exceeds the maximum allowed, an audio prompt is played to notify them. with 9 its working fine and i can see this in database. but 6 is not there. how to add 6 in the script.

i dont know how to do this in uccx. kindly support please.

 

 

 

1 Reply 1

Can you post a screenshot of your script? Also, what version of UCCX?