I’m new to writing extension lines for asterisk, but in essence I need to check if the Remote-Party-ID header contains privacy=full. If so, then I need to run the following command:
exten => _X.,n,SIPAddHeader(Privacy:id)
Has anyone ever written code for this or come across this? I’d really appreciate some assistance on this.
If I put this in to the appropriate context it adds it perfectly fine, but on every call. I require this header to be added ONLY if the Remote-Party-ID header privacy option = full
I’m running asterisk 1.4