<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On 16 August 2013 16:31, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I think this thread may help you:<br>
<br>
   <a href="http://lists.sip-router.org/pipermail/sr-users/2010-October/065669.html" target="_blank">http://lists.sip-router.org/<u></u>pipermail/sr-users/2010-<u></u>October/065669.html</a><br>
<br></blockquote><div><br></div></div><div>Hi Alex,</div><div><br></div><div>Thanks for the pointer!</div><div><br></div><div>I see that the kamailio.cfg that comes with 4.0.3 handles rtpproxy via the new rtpproxy_manage call:</div>

<div><br></div><div><div># RTPProxy control</div><div>route[NATMANAGE] {</div><div>#!ifdef WITH_NAT</div><div>        if (is_request()) {</div><div>                if(has_totag()) {</div><div>                        if(check_route_param("nat=yes")) {</div>

<div>                                setbflag(FLB_NATB);</div><div>                        }</div><div>                }</div><div>        }</div><div>        if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))</div><div>

                return;</div><div><br></div><div>        rtpproxy_manage("co");   # <---------------------------------------------------</div><div><br></div><div>        if (is_request()) {</div><div>                if (!has_totag()) {</div>

<div>                        if(t_is_branch_route()) {</div><div>                                add_rr_param(";nat=yes");</div><div>                        }</div><div>                }</div><div>        }</div>

<div>        if (is_reply()) {</div><div>                if(isbflagset(FLB_NATB)) {</div><div>                        add_contact_alias();</div><div>                }</div><div>        }</div><div>#!endif</div><div>        return;</div>

<div>}</div></div><div><br></div><div>this route block is called from a few places.</div><div><br></div><div>Seems like I will need to improve this to take account of the direction of the message and use "ie" or "ei" as appropriate?</div>

<div><br></div><div>Thanks,</div><div>Steve</div><div><br></div></div>
</div></div>
</div><br></div>