hi list,
I want copy all sip headers between two legs, but I don't obtain a good result.

example:
P-Asserted-identity, P-Preferred-Identity, Diversion, etc ... aren't copied for leg B.

I have found "sip_copy_custom_headers=true" but it's just for X-Header.


Actually, I use this code below, but it is not easy :(

<condition field="${sip_P-Asserted-Identity}" expression="\+(\d+)" break="never">
                                <action application="log" data="LOG Modifying PAI sip:+33xxxxxxxxx@DOMAIN" />
                                <action application="export" data="sip_h_P-Asserted-Identity=<sip:+$1@3008LI.hexavoip.fr>" />



Have you an idea for me ?

Thanks in advance

--
Cordialement

HUBERT Mickaël
Ingénieur VOIP - Hexanet