Without any custom dialplan, if I set both ‘Send RPID/PAI’ to be ‘Send PAI header’ and turn on ‘SendPrivateCallerIDinformation’, then when I set the display name for the Outbound CID for my extension to “hidden”, then FreePBX:
- Puts ‘anonymous’ in the From header user field (you could override this if your provider requires an account number, etc. there).
- Adds a Privacy: id header
- Sends PAI with the display name “hidden” but the number sent normally.
Isn’t this what you want (or at least acceptable)?