cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1596
Views
0
Helpful
4
Replies

CUCM forwarding Call to another ITSP via SIP Manipulation

Gura24
Beginner
Beginner

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

1 Accepted Solution

Accepted Solutions

Hello,

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

View solution in original post

4 Replies 4

dijarvrella
Beginner
Beginner

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

Thanks for quick response!

 

Yes I have some assigned DIDs from provider 2 as well.

Hello,

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers