PJSIP Trunk settings in Freepbx 12

NooNoo

I tried that but it did not work. I also tried putting this macro in extensions_custom.conf:

[macro-dialout-trunk-predial-hook]
exten => s,1,SIPAddHeader(Remote-Party-ID: ${CALLERID(name)} <sip:${CALLERID(number)}@voiphost.net>)
exten => s,n,MacroExit()

The macro is read and shows up in the trace:

-- Executing [s@macro-dialout-trunk:17] Macro("PJSIP/6505-00000072", "dialout-trunk-predial-hook,") in new stack
 -- Executing [s@macro-dialout-trunk-predial-hook:1] SIPAddHeader("PJSIP/6505-00000072", "Remote-Party-ID: CidName <sip:[email protected]>") in new stack
 -- Executing [s@macro-dialout-trunk-predial-hook:2] MacroExit("PJSIP/6505-00000072", "") in new stack

but the Remote-Party-ID does not appear in the Sip Invite header. Does anyone have any ideas why this does not work?