So I’m mucking with activating CIDblocking again, in a PJsip world.
Using ‘func-set-sipheader,s,1(key,value)’ I can set SIP header values, like:
This works - I can see it happening via wireshark.
However if I also, in the FreePBX GUI, configure the trunk to send the ‘P-Asserted-ID’ header (i.e. via Trunks/PJsipSettings/Advanced I set field ‘Send RPID/PAI’ to be ‘Send PAI header’)… then my separate “Privacy:id” header is then no longer sent - it just get swallowed somwewhere…
(If I name the key as ‘Privacyy’, or ‘Privacie’, then activating PAI has no effect [and the misspelled key+value appear as a header as expected] - the problem is specific to using the header named “Privacy”.)
Anyone have an idea about what in tarnation is happening… or a sol’n or workaround for me to be able to send both PAI and ‘Privacy:id’ (which FWICT is what’s needed to properly mimic *67 when outdialing via SIP)?
Of interest, I tried toggling the neighbouring setting ‘SendPrivateCallerIDinformation’ to be yes but that assisted none.