I'm trying to copy some of custom headers from A-leg to B-leg so I
have tried this:
sip_h_P-HEADER1=${sip_h_P-HEADER1}
but it seems like I cannot access customer header variables
${sip_h_} if I don't set before sip_copy_custom_headers=true.
If I do that, all the headers are being copied automatically from
LegA to LegB.
Is there any other way of doing it? I don't need them all to be
copied. I know I can remove them afterwards but since they are
dynamic I cannot predict how would they look like.
Another issue I have is that Freeswitch seems to be adding locally
generated P-Asserted-Identity (based on From header) to every final
response. I tried to disable it by settiing sip_cid_type=none but no
luck so far. Removing it by 'unset' did not help either - PAI
header is always there.