How to insert P-Preferred-Identity header

I would like to insert P-Preferred-identity header into a single INVITE. I have searched high & low for this. SIPADDHeader gets “no such application found”. Version 16.23.0 plain vanilla CLI pjsip

SIPAddHeader is a chan_sip application.
When using pjsip you should use the PJSIP_HEADER function.

Thank you. Your answer led me to a simple solution once I saw that the PJSIP_HEADER add must be inside a pre-dial handler.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.