[Home]

Summary:ASTERISK-05223: Privacy (rfc3325) feature in sip
Reporter:adomjan (adomjan)Labels:
Date Opened:2005-10-03 10:56:08Date Closed:2011-06-07 14:10:29
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Since rpid feature implemented in chan_sip there is an rfc (rfc3325) for sip privacy. The rpid draft has expired and not moved in rfc.
The header looks like:

Privacy: id
P-Asserted-Identity: <sip:0619994557@195.56.24.129:5061;user=phone>

Our provider is using this method. I made an ugly but working implementation in dialplan:

inbond:
exten => _XX.,n,Set(PAI=${SIP_HEADER(P-Asserted-Identity)})
exten => _XX.,n,Set(PRIVACY=${SIP_HEADER(Privacy)})
exten => _XX.,n,ExecIf($["${PRIVACY}" = "id"]|SetCallerPres|prohib)
exten => _XX.,n,Set(tmpcid=${CUT(PAI,':',2)})
exten => _XX.,n,Set(tmpcid=${CUT(tmpcid,'@',1)})
exten => _XX.,n,ExecIf($["${PRIVACY}" = "id"]|Set|CALLERID(number)=${tmpcid})

outbond:
[macro-sip-hide-cid]
exten => s,1,SIPAddHeader(P-Asserted-Identity: <sip\:${CALLERID(num)}\@195.56.13.210\:5060\;user=phone>)
exten => s,n,SIPAddHeader(Privacy: id)

The real, nice solution is to implement it in chan_sip. If nobody will do it, I'll try it when I have time.
Comments:By: Olle Johansson (oej) 2005-10-03 11:00:12

Didn't I just mail the mailing list saying "Please, do not add feature requests to the bug tracker?" :-)

By: Kevin P. Fleming (kpfleming) 2005-11-15 20:55:22.000-0600

Please move this request to the mailing list or the wiki as a bounty if you wish to get it implemented.