I have Asterisk 16 Server installed on Centos 7.9 with SIP trunk.
Presently am using the Asterisk AMI and chan_sip to make the call using the below AMI action.
telnet 127.0.0.1 5038
Variable: __SIPADDHEADER51=P-Preferred-Identity: sip:firstname.lastname@example.org
It’s working being able to make the call using the below action with P-Preferred-Identity SIP Header. But now being migrated from Chan_sip to chan_pjsip and for pjsip am unable to use the > Variable: __SIPADDHEADER51=P-Preferred-Identity: sip:email@example.com
and the pjsip channel did not allow to set header before the channel is getting created.
How can we set SIPHeader for AMI calls which use PJSIP ?