Hello,
since my provider requires the P-Preferred-Identity header to be added to REGISTER and INVITE requests in other for authentication to succeed, I added it to my PJSIP trunk by following the instructions in the post from @Igaetz written in July 2018 (can’t link it since I’m a new user)
However, it doesn’t seem to work at all, the custom header doesn’t appear in the request. I’ve checked the logs and can’t find any log messages regarding the custom header.
Content of /etc/asterisk/extensions_custom.conf:
[custom-sip-header]
exten => s,1,Noop(entering user defined context custom-sip-header in extensions_custom.conf)
exten => s,n,Set(HASH(__SIPHEADERS,P-Preferred-Identity)=sip:${CALLERID(number)}@siptrunk.a1.net)
exten => s,n,Return
Dial options of my trunk: TB(custom-sip-header^s^1)
Can anybody help me with this? Sorry if I’m missing something obvious, but I’m still a beginner with FreePBX.