Hi All,
I need to modify this script to change this header
From
Remote-Party-ID "Test" ;party=calling;screen=yes;privacy=off
To
Remote-Party-ID "Test" ;party=calling;screen=yes;privacy=full
Please confirm if below script is ok:
M = {}
function M.outbound_INVITE(msg)
local fromtag = msg:getHeaderValueParameter("From", "tag")
local pai = msg:getHeader("P-Asserted-Identity")
local uri = string.match(pai, "(<sip:%+8820.+>)")
local uri2 = string.match(pai, "(<sip:%+881995.+>)")
if uri or uri2
then
msg:modifyHeader("From", "Anonymous <sip:anonymous@anonymous.invalid>")
msg:addHeaderValueParameter("From", "tag", fromtag)
msg:addHeader("Privacy", "id")
end
end
return M
Please assist.
Devraj