<br clear="all"><span style="color: rgb(51, 51, 255);"><font size="2"><span style="font-style: italic;"><span style="font-family: verdana;"><span style="font-weight: bold;">Hi Users, <br>
<br>
I install the openser 1.0.1 and rtp proxy 0.3 in same Linux System<br>
<span style="font-style: italic;"><span style="font-weight: bold;">openser server is located with public id xx.xxx.xxx.xx of <a href="http://192.168.2.2">192.168.2.2</a> ,<br>
And UAC are outside the NAT, <br>
When one UAC call to other UAC( are both in outside the NAT
where openser server), after the INVITE method get request by
server, after 32 second its hung up automatically, Voice is ok ,
and callee is hung upping, not caller,<br>
UAC ( inside the nAT , openser server ) in not hung uping and voice is not ok....<br>
<span style="font-style: italic;"><span style="font-weight: bold;">Where is the problem, in NAt with rtp or networking,<br>
<br>
route{<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
};<br>
if (msg:len >= 2048 ) {<br>
sl_send_reply("513", "Message too big");<br>
exit;<br>
};<br>
<br>
# NAT detection<br>
route(2);<br>
<br>
if (!method=="REGISTER")<br>
record_route();<br>
<br>
if (loose_route()) {<br>
append_hf("P-hint: rr-enforced\r\n"); <br>
route(1);<br>
};<br>
<br>
if (!uri==myself) {<br>
append_hf("P-hint: outbound\r\n"); <br>
route(1);<br>
};<br>
<br>
if (uri==myself) {<br>
if (method=="REGISTER") {<br>
if (!www_authorize("xx.xxx.xxx.xxx", "subscriber")) {<br>
www_challenge("xx.xxx.xxx.xxx", "0");<br>
exit;<br>
};<br>
<br>
if (isflagset(5)) {<br>
setflag(6);<br>
# if you want OPTIONS natpings uncomment next<br>
# setflag(7);<br>
};<br>
save("location");<br>
exit;<br>
};<br>
<br>
if (!lookup("location")) {<br>
sl_send_reply("404", "Not Found");<br>
exit;<br>
};<br>
append_hf("P-hint: usrloc applied\r\n"); <br>
};<br>
<br>
route(1);<br>
}<br>
<br>
<br>
route[1] {<br>
if (subst_uri('/(sip:.*);nat=yes/\1/')){<br>
setflag(6);<br>
};<br>
<br>
if (isflagset(5)||isflagset(6)) {<br>
route(3);<br>
}<br>
<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
};<br>
exit;<br>
}<br>
<br>
route[2]{<br>
force_rport();<br>
if (nat_uac_test("19")) {<br>
if (method=="REGISTER") {<br>
fix_nated_register();<br>
} else {<br>
fix_nated_contact();<br>
};<br>
setflag(5);<br>
};<br>
}<br>
<br>
route[3] {<br>
if (is_method("BYE|CANCEL")) {<br>
unforce_rtp_proxy();<br>
} else if (is_method("INVITE")){<br>
force_rtp_proxy();<br>
t_on_failure("1");<br>
};<br>
if (isflagset(5))<br>
search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');<br>
t_on_reply("1");<br>
}<br>
<br>
failure_route[1] {<br>
if (isflagset(6) || isflagset(5)) {<br>
unforce_rtp_proxy();<br>
}<br>
}<br>
<br>
onreply_route[1] {<br>
if ((isflagset(5) || isflagset(6)) && status=~"(183)|(2[0-9][0-9])") {<br>
force_rtp_proxy();<br>
}<br>
search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');<br>
<br>
if (isflagset(6)) {<br>
fix_nated_contact();<br>
}<br>
exit;<br>
}<br>
<br>
<br>
</span></span></span></span><br>
</span></span></span></font></span>-- <br>Thanks and Regards with cheers<br>Sunkara Ravi Prakash (Voip Developer)<br>Hyperion Technology<br>Kondapur, Hi-tech city,<br>Hyderabad.<br><a href="http://www.hyperion-tech.com">
www.hyperion-tech.com</a><br>+91-9985077535