Predial hook - Headers

Hi there,
I was wondering, as we are transitioning to vitalpbx, how pre-dial headers are handled and how to “append” them to specific trunks. What we have in current pbx in extensions_custom.conf is something like this:
exten => s,1,NoOp(*** PRE DIAL***)
exten => s,n,Set(HASH(_SIPHEADERS,P-Preferred-Identity)=<sip${SPRINTF(%c,58)}<number_here>@sip.server:5060${SPRINTF(%c,59)}user${SPRINTF(%c,61)}phone>)
exten => s,n,Set(HASH(_SIPHEADERS,Privacy)=none)
exten => s,n,MacroExit()
I saw there is an advanced section in the trunk settings where you can input custom headers (header > value) but I would now know if it should be input there (trunk “advanced” tab or elsewhere).
Like header: P-Preferred-Identity
Value: sip:<number_here>@sip.server:5060;user=phone
Many thanks in advance.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.