]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_caller_id chan_sip: Comply to RFC 3323 values for privacy
authorDaniel Tryba <daniel@pocos.nl>
Mon, 2 Oct 2017 12:48:41 +0000 (14:48 +0200)
committerdtryba <daniel@tryba.nl>
Thu, 5 Oct 2017 12:46:44 +0000 (07:46 -0500)
commitba37dd65d3784196279c3dfe6ed22ed41fa85342
tree10c507b7d25d94614420b1f6c05c2932f6283fd8
parent88e8c22b028ebd18fdf870f52e1e2e673d7b5180
res_pjsip_caller_id chan_sip: Comply to RFC 3323 values for privacy

Currently privacy requests are only granted if the Privacy header
value is exactly "id" (defined in RFC 3325). It ignores any other
possible value (or a combination there of). This patch reverses the
logic from testing for "id" to grant privacy, to testing for "none" and
granting privacy for any other value. "none" must not be used in
combination with any other value (RFC 3323 section 4.2).

ASTERISK-27284 #close

Change-Id: If438a21f31a962da32d7a33ff33bdeb1e776fe56
channels/chan_sip.c
res/res_pjsip_caller_id.c