Hi list,
I have my freeswitch in SBC "mode" and topology hiding.
I'd like to copy some header between A leg and B leg (not to copy all headers).
My code is OK, but when I have multiple same headers in my INVITE, freeswitch only copy the last header.
Ex:
A Leg:
Diversion: <
sip:0326654321@hexanet.fr>; reason=user-busy; privacy=full ;counter=3
B leg:
Only last Diversion header is copied.
how can I copy all same header please ?
my code:
<condition field="${sip_h_Diversion}" expression="(.*)" break="never">
<action application="log" data="LOG Modifying Diversion" />
<action application="export" data="sip_h_Diversion=$1" />
</condition>
thanks in advance
--
Cordialement
Hubert Mickaël
Ingénieur VOIP - Hexanet