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, 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.
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.