<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 August 2013 18:49, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">I wanted to add such logic in default config for kamailio as well
    (not mangle contact if not first proxy), but forgot about it, I'll
    do it soon. There is a new function is_first_hop() in devel version,
    for older version the solution is to store the number of
    record-route  headers for request and compare with the number of
    them in response.<br></div></blockquote><div><br></div><div>Hi Daniel,</div><div><br></div><div>If you are going to work on the default config, note also that the rtpproxy_manage as is doesn't work properly if the rtpproxy is working in bridged mode on a multi-homed box.   Per Alex's advice and my experiments you need to to the rtpproxy_manage with "ie" or "ei" flags depending whether the request is inside->outside or outside->inside.</div>
<div><br></div><div>Thanks,</div><div>Steve</div></div>
</div></div>