11-28-2019 04:33 AM
Hi,
I need some hints to configure following scenario.
Somebody calls number old directory number 11. This call will be transfererred to Unity Connection system call handler. There is a greeting. After greeting action should be transfer the call back to cucm to e.g. a new directory number 211. For one number I can realize this. But there are some more. And there is no design in relation old DN to new DN. Every time a call to old DN, the greeting should be played, after that transfer the call to the new DN. Maybe better in UCCX with a file, it contains the matching numbers?
Solved! Go to Solution.
11-28-2019 12:48 PM - edited 12-03-2019 08:24 AM
Yeah, I'm not able to visualize a way in CUC to handle this at scale. UCCX would definitely be my choice. You don't really need a file either, you could just hold a mapping table like this:
Variables
java.util.HashMap mappings = { java.util.HashMap m = new java.util.HashMap();
/* Format is: Old Number, New Number, and you can add as many as you want */ m.put("1000", "2003"); m.put("1001", "3014"); m.put("1002", "5040");
return m; } String called_number = "" String target_number = ""
Script
Start Accept (--Triggering Contact--)
Play Prompt (--Triggering Contact--, P[my_greeting.wav]) called_number = Get Call Contact Info (--Triggering Contact--, Called Number) If (mappings.containsKey(called_number)) True Set target_number = (String) mappings.get(called_number) False Set target_number = called_number Call Redirect (--Triggering Contact--, to target_number) Successful
Set Contact Info (--Triggering Contact--, handled)
End
EDIT: Just realized I incorrectly was referring to the Calling Number in my initial solution. I have since updated it to Called Number.
12-03-2019 08:38 AM
Here is a screenshot, and attached is a v12 script sample.
Keep in mind that in order for this to work, you need to create a Trigger in UCCX for each of the old numbers, and UCCX CSS needs to be able to dial the new numbers. E.g., if you map extension 211 to 323, then 211 is a Trigger and 323 is reachable by UCCX.
11-28-2019 12:48 PM - edited 12-03-2019 08:24 AM
Yeah, I'm not able to visualize a way in CUC to handle this at scale. UCCX would definitely be my choice. You don't really need a file either, you could just hold a mapping table like this:
Variables
java.util.HashMap mappings = { java.util.HashMap m = new java.util.HashMap();
/* Format is: Old Number, New Number, and you can add as many as you want */ m.put("1000", "2003"); m.put("1001", "3014"); m.put("1002", "5040");
return m; } String called_number = "" String target_number = ""
Script
Start Accept (--Triggering Contact--)
Play Prompt (--Triggering Contact--, P[my_greeting.wav]) called_number = Get Call Contact Info (--Triggering Contact--, Called Number) If (mappings.containsKey(called_number)) True Set target_number = (String) mappings.get(called_number) False Set target_number = called_number Call Redirect (--Triggering Contact--, to target_number) Successful
Set Contact Info (--Triggering Contact--, handled)
End
EDIT: Just realized I incorrectly was referring to the Calling Number in my initial solution. I have since updated it to Called Number.
11-28-2019 11:07 PM
12-02-2019 02:26 AM
Hi again, I'm not so firm in UCCX editor. How to script this?
12-02-2019 08:47 AM
12-02-2019 10:40 PM
That would be great! UCCX is 12.0.1. Many thanks in advance!
12-03-2019 08:38 AM
Here is a screenshot, and attached is a v12 script sample.
Keep in mind that in order for this to work, you need to create a Trigger in UCCX for each of the old numbers, and UCCX CSS needs to be able to dial the new numbers. E.g., if you map extension 211 to 323, then 211 is a Trigger and 323 is reachable by UCCX.
12-03-2019 10:46 PM
Thank you very much!
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