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="The Gateway that the call entered".<br><br>I'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("x-route-tag"))<br> {<br> avp(s:xroutetag) = $sel(@via);<br> xlog("----- We have a x-route-tag in the SIP msg avp: $avp(s:xroutetag) -----");<br>
};<br><br>I'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="tgrp:TANDEM-KOR"</b><br><br>