
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 02:51 AM
Hello,
I have to use a phone number from provider1 but I must route the external calls to provider 2.
1) On CUCM Site 2 is a phone with DN from provider 1
2) Call Flow:
- Call - Provider1 -> CUCM Site 1 -> CUCM Site 2 -> Phone on site 2 is ringing
- Phone on site 2 is dailing an external number -> Provider 2 -> External phone is ringing
Provider2 doesnt accept calling IDs from different providers. Is there any way to get this done via SIP Normalization script on CUCM?
Thank you for help!
Cheers
Solved! Go to Solution.
- Labels:
-
UC Manager SIP
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 11:24 AM
I just fixed that problem. In the INVITE I just added a Devision in the header.
M = {}
function M.outbound_INVITE(msg)
local pai = msg:getHeader("P-Asserted-Identity")
msg:addHeader("Diversion", pai)
end
return M
Now its working also with the correct calling DID!
Thanks for help!
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 04:19 AM
Hi there,
You can do SIP manipulation but the provider 2 will not accept calls that have different originating calling ID from the ones that is provided/assigned from the ITSP provider 2 to that specific SIP trunk.
Do you have an assigned DID from the provider 2?
Thanks,
Dijar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 08:18 AM - edited 03-28-2020 08:19 AM
Thanks for quick response!
Yes I have some assigned DIDs from provider 2 as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 11:24 AM
I just fixed that problem. In the INVITE I just added a Devision in the header.
M = {}
function M.outbound_INVITE(msg)
local pai = msg:getHeader("P-Asserted-Identity")
msg:addHeader("Diversion", pai)
end
return M
Now its working also with the correct calling DID!
Thanks for help!
Cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 09:33 AM
After you have to change also the PAI or Diversion Header.
M = {}
function M.outbound_INVITE(msg)
ocal diversHeader = msg:getHeader("Diversion")
if diversHeader
then
msg:applyNumberMask("Diversion", "+1234567)
end
end
