<div dir="ltr"><div><div><div>My bad: "cwii" - sounds ok, but WAN Kamailio in RTP debug "from/to".<br><br>rtpproxy_manage("cwie"); - good for Echo() test, <br>when UA behind NAT, registered on Kamailip and calling Asterisk Echo() test exten - voice perfect.<br>
</div><div>RTP - from/to only Kamailio LAN IP (2.2.2.2) - what is my goal.<br><br></div>But need to know, where I must put another flags for UA-t-UA calling, when both behind teh NAT and registered with Kamailio?<br></div>
<br>Because I have WAN2LAN in RTP and both are IPs of Kamailio: <br><br>Sent RTP packet to <a href="http://1.1.1.1:56324">1.1.1.1:56324</a> (type 00, seq 003320, ts 006080, len 000160)<br>Got RTP packet from <a href="http://2.2.2.2:62718">2.2.2.2:62718</a> (type 00, seq 032129, ts 006240, len 000160)<br>
Sent RTP packet to <a href="http://1.1.1.1:56324">1.1.1.1:56324</a> (type 00, seq 003321, ts 006240, len 000160)<br>Got RTP packet from <a href="http://2.2.2.2:62718">2.2.2.2:62718</a> (type 00, seq 032130, ts 006400, len 000160)<br>
Sent RTP packet to <a href="http://1.1.1.1:56324">1.1.1.1:56324</a> (type 00, seq 003322, ts 006400, len 000160)<br><br><br></div><br><div><div> <br># RTPProxy control<br>route[NATMANAGE] {<br>#!ifdef WITH_NAT<br> if (is_request()) {<br>
if(has_totag()) {<br> if(check_route_param("nat=yes")) {<br> setbflag(FLB_NATB);<br><br> }<br> }<br> }<br> if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))<br>
return;<br> <br> rtpproxy_manage("cwie");<br> <br> if (is_request()) {<br> if (!has_totag()) {<br> add_rr_param(";nat=yes");<br> }<br> }<br> if (is_reply()) {<br>
if(isbflagset(FLB_NATB)) {<br> fix_nated_contact();<br> }<br> }<br>#!endif<br> return;<br>}<br></div></div></div>