<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi sorry,<br><br>I forget to give my openser.cfg, there is one more point if i am using STUN server in our linksys device the call goes normal for long time till user finish the call. It seems something wrong in NAT configuration.<br><br>#<br># sample config file to be used with nathelper/rtpproxy<br>#<br><br>#<br><br># ----------- global configuration parameters ------------------------<br><br>debug=7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)<br>fork=yes<br>log_stderror=yes # (cmd line: -E)<br><br>/* Uncomment these lines to enter debugging mode <br>fork=no<br>log_stderror=yes<br>*/<br><br>check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: -v)<br>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)<br>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -R)<br>listen=212.XXX.XXX.XXX:5064<br>#port=5064<br>children=4<br><br>disable_dns_blacklist = yes<br><br># --- module loading<br><br>mpath="/usr/local/lib/openser/modules/"<br><br>loadmodule "mysql.so"<br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "nathelper.so"<br>loadmodule "auth.so"<br>loadmodule "auth_db.so"<br>loadmodule "mi_fifo.so"<br><br>modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")<br><br>modparam("usrloc", "db_mode", 2)<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "password_column", "password")<br>modparam("usrloc|auth_db","db_url","mysql://proxy:MoHaKa21@192.168.1.50/emafone")<br><br># -- usrloc params --<br><br>modparam("usrloc", "nat_bflag", 6)<br><br># -- registrar params --<br>modparam("registrar|nathelper", "received_avp", "$avp(i:42)")<br><br># -- auth params --<br><br><br># -- rr params --<br>modparam("rr", "enable_full_lr", 1)<br><br># -- nathelper<br><br>modparam("nathelper", "natping_interval", 0)<br>modparam("nathelper", "ping_nated_only", 1)<br>modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")<br>modparam("nathelper", "rtpproxy_disable", 0)<br>modparam("nathelper", "rtpproxy_disable_tout", 60)<br>modparam("nathelper", "rtpproxy_tout", 1)<br>modparam("nathelper", "rtpproxy_retr", 5)<br>modparam("nathelper", "sipping_method", "OPTIONS")<br>modparam("nathelper", "received_avp", "$avp(i:801)")<br><br><br>#modparam("nathelper", "rtpproxy_sock", "udp:212.100.235.229:22222") <br>#modparam("nathelper", "rtpproxy_sock", "/var/run/rtpproxy.sock") <br>#modparam("nathelper", "natping_interval", 30)<br>#modparam("nathelper", "ping_nated_only", 1)<br>#modparam("nathelper", "sipping_bflag", 7)<br>#modparam("nathelper", "sipping_from", "sip:pinger@openser.org")<br><br># --- main routing logic<br>route{<br>&nbsp;&nbsp;&nbsp; if (!mf_process_maxfwd_header("10")) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("483","Too Many Hops");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; if (msg:len &gt;=&nbsp; 2048 ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("513", "Message too big");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br><br><br><br><br><br>&nbsp;&nbsp;&nbsp; # NAT detection<br>&nbsp;&nbsp;&nbsp; route(2);<br><br>&nbsp;&nbsp;&nbsp; if (!method=="REGISTER")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route();<br><br>&nbsp;&nbsp;&nbsp; if (loose_route()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; append_hf("P-hint: rr-enforced\r\n"); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (!uri==myself) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #append_hf("P-hint: outbound\r\n"); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (uri==myself) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (method=="REGISTER") {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!www_authorize("212.XXX.XXX.XXX", "subscriber")) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; www_challenge("212.XXX.XXX.XXX", "0");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (isflagset(5)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setbflag(6);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # if you want OPTIONS natpings uncomment next<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # setbflag(7);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; save("location");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br><br><br>&nbsp;&nbsp;&nbsp; #########PSTTN CALL #############################################<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (uri=~"sip:00[1-9][0-9]+@.*") {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strip(2);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewritehostport("212.XXX.XXX.XXX:5060");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; <br><br><br>&nbsp;&nbsp;&nbsp; ###################################################################<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!lookup("location")) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "Not Found");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; append_hf("P-hint: usrloc applied\r\n"); <br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; route(1);<br>}<br><br><br>route[1] {<br>&nbsp;&nbsp;&nbsp; if (subst_uri('/(sip:.*);nat=yes/\1/')){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setbflag(6);<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (isflagset(5)||isbflagset(6)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(3);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (!t_relay()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; exit;<br>}<br><br>route[2]{<br>&nbsp;&nbsp;&nbsp; force_rport();<br>&nbsp;&nbsp;&nbsp; if (nat_uac_test("19")) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (method=="REGISTER") {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_register();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(6);<br>&nbsp;&nbsp;&nbsp; };<br>}<br><br>route[3] {<br>&nbsp;&nbsp;&nbsp; if (is_method("BYE|CANCEL")) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<br>&nbsp;&nbsp;&nbsp; } else if (is_method("INVITE")){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_on_failure("1");<br><br><br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (isflagset(5))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; search_append('Contact:.*sip:[^&gt;[:cntrl:]]*', ';nat=yes');<br>&nbsp;&nbsp;&nbsp; t_on_reply("1");<br>}<br><br>failure_route[1] {<br>&nbsp;&nbsp;&nbsp; if (isbflagset(6) || isflagset(5)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>onreply_route[1] {<br>&nbsp;&nbsp;&nbsp; if ((isflagset(5) || isbflagset(6)) &amp;&amp; status=~"(183)|(2[0-9][0-9])") {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; search_append('Contact:.*sip:[^&gt;[:cntrl:]]*', ';nat=yes');<br><br>&nbsp;&nbsp;&nbsp; if (isbflagset(6)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; exit;<br>}<br><br><br>Regards, <br>www.Go4Calls.Com <br>VoIP Forums <br><br><blockquote><hr>From: go4calls@hotmail.com<br>To: users@lists.openser.org; users@openser.org<br>Subject: Calls disconnect automatically<br>Date: Sun, 20 Jan 2008 18:01:48 +0800<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>


Hi Friends,<br><br>I start getting one problem, the calls disconnect automatically in 30 and 32 sec.<br>I am using openser + rtpproxy before with the same openser.cfg it was running smoothly and once traffic increased this problem appeared.<br><br>Could you please help me to solve this issue because i put openser in production and now no one can make long call.<br><br><br><br>Regards, <br>www.Go4Calls.Com <br>VoIP Forums <br><hr>Express yourself instantly with MSN Messenger! <a href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target="_blank">MSN Messenger</a>
</blockquote><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>