<div dir="ltr">Hi list,<div>I have my freeswitch in SBC "mode" and topology hiding.</div><div><br></div><div>I'd like to copy some header between A leg and B leg (not to copy all headers).</div><div><br></div>
<div>My code is OK, but when I have multiple same headers in my INVITE, freeswitch only copy the last header.</div><div><br></div><div>Ex: </div><div style>A Leg:</div><div>Diversion: <<a href="mailto:sip%3A0326123456@hexanet.fr">sip:0326123456@hexanet.fr</a>>; reason=user-busy; privacy=off</div>
<div>Diversion: <<a href="mailto:sip%3A0326654321@hexanet.fr">sip:0326654321@hexanet.fr</a>>; reason=user-busy; privacy=full ;counter=3<br clear="all"><div><br></div><div style>B leg:</div><div style>Diversion: <<a href="mailto:sip%3A0326645321@hexanet.fr">sip:0326645321@hexanet.fr</a>>;reason=user-busy;privacy=full;counter=3</div>
<div><br></div><div style>Only last Diversion header is copied.</div><div style><br></div><div style>how can I copy all same header please ?</div><div style><br></div><div style>my code:</div><div style><div><i><condition field="${sip_h_Diversion}" expression="(.*)" break="never"></i></div>
<div><i><span class="" style="white-space:pre">        </span><action application="log" data="LOG Modifying Diversion" /></i></div><div><i><span class="" style="white-space:pre">        </span><action application="export" data="sip_h_Diversion=$1" /></i></div>
<div><i></condition></i></div><div><br></div></div><div style><br></div><div style>thanks in advance</div><div style><br></div>-- <br>Cordialement<br><br>Hubert Mickaël<br>Ingénieur VOIP - Hexanet<br>
</div></div>
<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif">