My only suggestion would be you could reduce your line count by replacing
your GotoIf statements with ExecIF statements.
exten => addheader,1,ExecIf($["x${ARG1}" !=
"x"]?Set(PJSIP_HEADER(add,Route)=${ARG1}))
same => n,ExecIf($["x${ARG2}" !=
"x"]?Set(PJSIP_HEADER(add,P-Charging-Vector)=${ARG2}))
On Wed, Aug 2, 2017, at 10:39 AM, Carsten Bock wrote:
> Hi,
>
> quick question:
> I need to pass-through some headers from the A-Leg to the B-Leg, which
> are connected using PJSIP.
> Currently I do the following:
>
> [handler]
> exten => addheader,1,GotoIf($["${ARG1}" == ""]?3)
> exten =>
Hi,
quick question:
I need to pass-through some headers from the A-Leg to the B-Leg, which
are connected using PJSIP.
Currently I do the following:
[handler]
exten => addheader,1,GotoIf($["${ARG1}" == ""]?3)
exten => addheader,2,Set(PJSIP_HEADER(add,Route)=${ARG1})
exten =>