PJSIP Trunk - Outgoing CID Information

I need to insert a line in the outgoing Invite header of either Remote-Party-ID or P-Aserted-Identify to convey outbound CID information to my VOIP provider.

I have tried adding trust_id_outbound=yes to my endpoint configuration and also have tried inserting the following line of dialplan code before the final dial command:

exten => s,n,set(PJSIP_HEADER(add,P-Aserted-Identify)=${CALLERID(name)} sip:${CALLERID(number)}@voiphost.net)

Neither of these methods have worked. Can anyone give me some guidance please?

Remote-Party-ID and P-Asserted-Identity can be enabled on the endpoint using the “send_rpid” and “send_pai” configuration options.


Thanks for the information

I have tried adding send_rpid=yes and send_pia=yes to the endpoint configuration but am not seeing the lines inserted into the first invite header.

Do you have any suggestions?


Nope, I’d suggest providing the configuraton, console output, and SIP traffic. It’s likely something specific to your environment.