PJSIP_HEADER add - header not sent

Hi!

I have this line on my dialplan:
Set(PJSIP_HEADER(add,X-CO-SIP-Auth)=awesome)

After this I bridge the call:
Dial(PJSIP/sip02/sip:+1999999999@example.com)

Using tcpdump / PCAP I can tell, that there is no “X-CO-SIP-Auth” header.
With verbose 9999 I can see that this diaplan line is executed.

Did I miss something?

Ok, solved it myself. PJSIP_HEADER works on the a-leg while I have to use a handler during Dial which is very ugly but actually seems to work.

2 Likes