cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
199
Views
0
Helpful
4
Replies
Highlighted
Beginner

CUCM forwarding Call to another ITSP via SIP Manipulation

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

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: CUCM forwarding Call to another ITSP via SIP Manipulation

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
Highlighted
Beginner

Re: CUCM forwarding Call to another ITSP via SIP Manipulation

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

Highlighted
Beginner

Re: CUCM forwarding Call to another ITSP via SIP Manipulation

Thanks for quick response!

 

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

Highlighted
Beginner

Re: CUCM forwarding Call to another ITSP via SIP Manipulation

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

Highlighted
Beginner

Re: CUCM forwarding Call to another ITSP via SIP Manipulation

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