Problem Description:
Assistance in Hiding “remote party ID” in SIP calls using SIP normalization
Troubleshooting Performed:
We wanted to remove the remote party id header.
So we removed it from outgoing 180 ringing message and incoming invite message.
++
M = {}
Function M.outbound_INVITE(msg)
-- Remove the display name from the PAI header
local pai = msg:getHeader("P-Asserted-Identity")
local uri = string.match(pai, "(<.+>)")
msg:modifyHeader("P-Asserted-Identity", uri)
msg:removeHeader("Remote-Party-ID")
end
return M
++
M = {}
function M.outbound_180_INVITE(msg)
-- Remove the display name from the PAI header
local pai = msg:getHeader("P-Asserted-Identity")
local uri = string.match(pai, "(<.+>)")
msg:modifyHeader("P-Asserted-Identity", uri)
msg:removeHeader("Remote-Party-ID")
end
return M
Then we did the same for 200 OK messages.
The issue is, ASCII Display (Caller ID) number is showing up.
Any recomendation?
04/11/2016
Call Input 17:08:58 >>> OK
Calling 934966814
Called 953221485
Call Output 17:07:49 >>> Caller can see my Internall call identification, JAEN-406533
Calling 953221485
Called 934966814
We applie this too:
M = {}
local function removePAI(msg)
msg:removeHeader("P-Asserted-Identity")
end
M.inbound_INVITE = removePAI
M.inbound_180_INVITE = removePAI
M.inbound_183_INVITE = removePAI
M.inbound_200_INVITE = removePAI
M.outbound_INVITE = removePAI
M.outbound_180_INVITE = removePAI
M.outbound_183_INVITE = removePAI
M.outbound_200_INVITE = removePAI
return M
----------------------------------------------------------------------------------------------------------------------
and thiss too:
M = {}
function M.outbound_ANY_ANY(msg)
msg:removeHeader("P-Asserted-Identity")
msg:removeHeader("Remote-Party-ID")
msg:removeHeaderValue("Supported", "X-cisco-srtp-fallback")
end
function M.inbound_18X_ANY(msg)
msg:removeHeader("P-Asserted-Identity")
msg:removeHeader("Remote-Party-ID")
msg:removeHeaderValue("Supported", "X-cisco-srtp-fallback")
end
return M
--------------------------------------------------------------------------
Yesterday ,checking the traces ,I decided to test this other:
M = {}
function M.outbound_ANY_ANY(msg)
msg:removeHeader("P-Asserted-Identity")
msg:removeHeader("Remote-Party-ID")
msg:removeHeaderValue("Supported", "X-cisco-srtp-fallback")
local from = msg:getHeader("From")
local to = msg:getHeader("To")
local uri = string.match(from, "(<.+>)")
local uri1 = string.match(to, "(<.+>)")
msg:modifyHeader("From", uri)
msg:modifyHeader("To",uri1)
end
function M.inbound_18X_ANY(msg)
msg:removeHeader("P-Asserted-Identity")
msg:removeHeader("Remote-Party-ID")
msg:removeHeaderValue("Supported", "X-cisco-srtp-fallback")
end
return M
I noted that in the messaje invite continue appearing :
PAI and in the From and To label I see information about internal phone.