Hai All,
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
Action: Login
UserName: testuser
Secret: testpassword
Action: Originate
CallerID: 123456
Channel: PJSIP/0123456789@Telecom-sip-trunk
Context: Testcal
Exten: s
Priority: 1
Variable: __SIPADDHEADER51=P-Preferred-Identity: sip:123456@10.10.10.10
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:123456@10.10.10.10
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 ?