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

SIP Normalization CUCM

Leonardo Santana
Spotlight
Spotlight

Hi,

I wanna change the IP Address inside a inbound SIP Message but is not working

 

We need to convert the PUBLIC IP ADDRESS to the Internal CUCM IP Address

 

M = {}

function M.inbound_INVITE(msg)
local orig_to = msg:getHeader("To")
local new_to = orig_to:gsub("PUBLIC", "PRIVATE")
msg:modifyHeader("To", new_to)
end

return M

Regards
Leonardo Santana

*** Rate All Helpful Responses***
0 Replies 0