<div dir="ltr">Hi list,<div>I have my freeswitch in SBC &quot;mode&quot; and topology hiding.</div><div><br></div><div>I&#39;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: &lt;<a href="mailto:sip%3A0326123456@hexanet.fr">sip:0326123456@hexanet.fr</a>&gt;; reason=user-busy; privacy=off</div>

<div>Diversion: &lt;<a href="mailto:sip%3A0326654321@hexanet.fr">sip:0326654321@hexanet.fr</a>&gt;; reason=user-busy; privacy=full ;counter=3<br clear="all"><div><br></div><div style>B leg:</div><div style>Diversion: &lt;<a href="mailto:sip%3A0326645321@hexanet.fr">sip:0326645321@hexanet.fr</a>&gt;;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>&lt;condition field=&quot;${sip_h_Diversion}&quot; expression=&quot;(.*)&quot; break=&quot;never&quot;&gt;</i></div>

<div><i><span class="" style="white-space:pre">        </span>&lt;action application=&quot;log&quot; data=&quot;LOG Modifying Diversion&quot; /&gt;</i></div><div><i><span class="" style="white-space:pre">        </span>&lt;action application=&quot;export&quot; data=&quot;sip_h_Diversion=$1&quot; /&gt;</i></div>

<div><i>&lt;/condition&gt;</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">