How to change Calling Number in CCX script 11.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 05:13 AM
Hi ,
I need to change the calling number when the call goes to Agent/External number. How to change the calling # in UCCX script ?
Thanks in Advance.
R Rao.
- Labels:
-
UCCX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 08:17 AM
If you must do it in a script, you need to capture the calling party number and assign it to a variable.
Create a string varialbe - callingNumber
Get Call Contact Info (--Triggering Contact--)
- Attributes (Calling Number) - callingNumber
At this point you have captured the ANI, and can then perform whatever manipulation you want on the string variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 09:30 AM - edited 03-13-2020 12:21 AM
I came till there. But then I was wondering if there is any way to set calling Number (modified) when call goes to Agent. I was exploring Set Call Contact Info ; but could not figure out how to achieve this. ( I could do this in ICM/CCE).
In this usecase we need to modify only when call comes from few numbers.
Thanks,
R Rao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 10:45 AM
https://community.cisco.com/t5/contact-center/cisco-uccx-12-0-1-caller-id/m-p/3912233/highlight/true#M112631
Did you come up with the calling name trick, or did you see it somewhere? If not you as the original author, I wonder if the original author could devise a way to manipulate the number. After all, CER can modify the calling number via its CTI integration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 12:28 PM
The JTAPI extension - CiscoCall of course has various other fields we can pull data from. getCurrentCallingAddress() should pull the ANI but its not necessary as the calling number is already sent to CCX so using the built in Get Call Contact Info should be enough as all either steps are doing is to pull data into a string variable.
For reference:
https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/11_0_1/CUCM_BK_J2445637_00_jtapi-developers-guide_1101/Cisco_Unified___JTAPI_extensions.html#CUCM_RF_CCF06694_00
Getting the CNAME via jtapi seemed to be the only way I could find to pull that info from the call.
Then instead of the default layout, we can push the manipulated number to Finesse via the Set Enterprise Call Variable step and ECC layout. The main issue with this is the number will differ than what is presented on the phone as CUCM knows nothing of this manipulation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 02:59 PM
Modifying Calling Number
https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/11_0_1/CUCM_BK_J2445637_00_jtapi-developers-guide_1101/Features_supported___by_Cisco_Unified_JTAPI.html#CUCM_TP_M6DE6B5F_00
Is it not possible to tap into this JTAPI interface and do more advanced operations with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2020 12:25 AM
Thanks, that might be possible. I am not sure If I can integrate Jtapi Library with CCX scripts and call those function. For now playing with the Calling Number transformation seems the easiest way out.
Thanks for your help.
R Rao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2020 03:41 AM
I think that a possible solution would be to use CURRI.
This is enabled on a DN, Translation Pattern or Route Pattern and allows manipulation of various things including calling number.
In simple terms the way it works is a call hits a number with a CURRI based external call control profile enabled, CUCM then sends a https post containing an XML file with called and calling number and decisions can be made based upon those.
The server which receives the https post responds with an XML document which contains details of how the call should be treated. Possible actions include manipulation of the called and calling names and numbers as well as blocking/diverting the call and playing a CUCM announcement.
The XML snippet in the response that modifies calling number is shown below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 01:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2020 04:32 AM
I have not personally dug into the JTAPI more than I have had to. While its in the API and the scripting allows it, there seems to be more simple methods to achieve the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2020 08:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 11:29 AM
Hi all
I have a smilar problem for external clal forwarding via uccx I opened case with tac they said you need to make some script modification for cathing ANI can someone help me for this please.?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 12:42 PM
Hi Mike
How can I set external caller id after collecting caller id ? I meant I want to change change new calling number with cti port number as uccx use it previously. Normaly uccx is sending cti port number for the call redirect to pstn number. How can we set it ?
I can catch calling number on the script so I create new variable and When calls come in the script i can see calling number on the string variable.
thanks
