Recently I started porting my legacy system based on Asterisk 1.8 to 13 (certified).
In my setup, every call executes an AGI application and all is being processed there.
I have resolved most of my issues but setting a custom header from the application seems to be problematic.
Previously I used SIPAddHeader AGI commands but it seems to gone now so I’m trying setting the PJSIP_HEADER variable but I have no luck so far.
SET VARIABLE PJSIP_HEADER(add,P-Custom-Header)=HeaderValue
The example above gives an error like:
pbx_variables.c:1096 pbx_builtin_setvar: Set requires an ‘=’ to be a valid assignment.
Does anyone know what should be the right format?
I also tried:
SET VARIABLE PJSIP_HEADER(add,P-Custom-Header) HeaderValue
but that gives the same error.