Due to Cisco bug CSCux82917,- loose routing(lr) needs to be disabled or removed from record-route header.
SCRIPT1 and SCRIPT2 is not working can someone please assist. The header I'm targeting is Record-Route: <sip:hu-gen-sip-pxy-pool.xxx.com:5060;lr;150->
SCRIPT1
Record-Route: <sip:hu-gen-sip-pxy-pool.xxx.com:5060;lr;150->
M = {}
function M.inbound_INVITE(msg)
local recordroute = mgs:getHeader{"Record-Route")
local b = string.gsub(recordroute, "<sip:hu-gen-sip-pxy-pool.xxx.com:5060;lr;150->", "lr", "")
msg:modifyHeader("Record-Route", b)
end
return M
------------
SCRIPT2
M = {}
function M.inbound_INVITE(msg)
local recordroute = mgs:getHeader{"Record-Route")
local b = string.gsub(recordroute, "lr;150-", "")
msg:modifyHeader("Record-Route", b)
end
return M