Dear All,<br><br>We have some cisco gw that they send to the Kamailio in the first invite and inside the VIA header an x-route-tag=&quot;The Gateway that the call entered&quot;.<br><br>I&#39;m trying to add this to the acc module in order to have it recorded but without sucess.<br>
My config is this:<br><br>if (search(&quot;x-route-tag&quot;))<br>        {<br>                avp(s:xroutetag) = $sel(@via);<br>                xlog(&quot;----- We have a x-route-tag in the SIP msg avp: $avp(s:xroutetag) -----&quot;);<br>
        };<br><br>I&#39;m trying to add the VIA header to an avp so I could manipulate the string but i cannot implement this.<br><br>Does anyone can suggest a way to add the <b>x-route-tag</b> value to an AVP?<br><br>Thank you in advance<br>
<br>Alex<br><br>sample VIA header:  Via: SIP/2.0/UDP  <a href="http://10.0.0.15:5060">10.0.0.15:5060</a>;<b>x-route-tag=&quot;tgrp:TANDEM-KOR&quot;</b><br><br>