Hi,
I’m trying to add a custom header during outbound call on trunk that should only apply on a specific from user. I know that I can add a custom header on the trunk, but that custom header affects all outbound calls on that trunk.
What I would like to do is something like below, but I don’t know if I edit the dialplan that it will be overwritten på VitalPBX during apply changes?
same => n,ExecIf($["${CALLERID(name)}"="reception"]?Set(PJSIP_HEADER(add,Something)=somevalue))
Another problem is that if I’m in chan_sip I can’t use PJSIP_HEADER command and if I’m in chan_pjsip I can’t get CALLERID(name) variable…
The phones are using SIP and the trunk is using PJSIP.
I’m bashing my head here