<div dir="ltr">What do you mean by "<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">what i just do that opensips </span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">will triger uac"?</span><div>
<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Trigger what?</span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div>Regards,</div><div>Ali</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 2:17 PM, Miha <span dir="ltr"><<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ali how can i tell opensips or what i just do that opensips<br>
will triger uac?<br>
<br>
I have registration time set to 3600, as on this server<br>
will be around 20k users registration time 30s is not<br>
possible:)<br>
<br>
On Thu, 12 Dec 2013 12:22:00 -0500<br>
<div class="HOEnZb"><div class="h5"> Ali Pey <<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>> wrote:<br>
> The udp packets should come from inside the firewall for<br>
> nat binding to<br>
> stay open so it should come from the client side.<br>
> Opensips can send Options<br>
> to trigger a response from the client to keep the nat<br>
> binding open.<br>
><br>
> If you don't have lots of clients and your clients don't<br>
> have any other<br>
> pinging capability, you can decrease the re-registration<br>
> time on the client<br>
> side to 30 seconds or so. That will also keep the nat<br>
> binding open.<br>
><br>
> Regards,<br>
> Ali Pey<br>
><br>
><br>
><br>
> On Thu, Dec 12, 2013 at 12:13 PM, Miha <<a href="mailto:miha@softnet.si">miha@softnet.si</a>><br>
> wrote:<br>
><br>
> > Ali tnx.<br>
> ><br>
> > Opensips is on public ip, uac's are behind nat.<br>
> ><br>
> > I tried to use info, options but stikal the same<br>
> error:(<br>
> ><br>
> > What abou that opensips sends udp packets, so that i<br>
> would<br>
> > not have to enable this on uac?<br>
> ><br>
> > We have One softswitch and there is no problem with<br>
> expired<br>
> > nat session and arso does not send info/notify/options,<br>
> i<br>
> > guess it is sending some udp packets.<br>
> ><br>
> > Tnx<br>
> > Miha<br>
> ><br>
> > On Thu, 12 Dec 2013 11:22:05 -0500<br>
> > Ali Pey <<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>> wrote:<br>
> > > BTW. the error you are getting is probably for the<br>
> fact<br>
> > > that your client<br>
> > > doesn't like the Notify pinging. Change it to Options<br>
> > > message and it will<br>
> > > work.<br>
> > ><br>
> > > Regards,<br>
> > > Ali Pey<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Thu, Dec 12, 2013 at 11:19 AM, Ali Pey<br>
> > > <<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>> wrote:<br>
> > ><br>
> > > > Hello Miha,<br>
> > > ><br>
> > > > The best way to handle nat keep alive is from your<br>
> sip<br>
> > > clients. They<br>
> > > > usually offer a variety of option and the most<br>
> > > efficient one is the udp<br>
> > > > pinging, in which it keeps sending opensips a udp<br>
> > > packet with 4 zeros in it<br>
> > > > to keep the nat binding open. That would work<br>
> perfectly<br>
> > > if you have static<br>
> > > > nat binding on the opensips server which means<br>
> doing<br>
> > > port forwarding on the<br>
> > > > firewall the opensips sits behind.<br>
> > > ><br>
> > > > You can also enable options pinging on your client<br>
> as<br>
> > > well and that will<br>
> > > > keep nats open on both side as opensips will<br>
> respond<br>
> > > with 200 OK.<br>
> > > ><br>
> > > > Enabling nat keep alive from opensips is more<br>
> expensive<br>
> > > in terms of<br>
> > > > resources but that is also a possible way to do.<br>
> > > ><br>
> > > > Regards,<br>
> > > > Ali Pey<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Thu, Dec 12, 2013 at 7:16 AM, Miha<br>
> <<a href="mailto:miha@softnet.si">miha@softnet.si</a>><br>
> > > wrote:<br>
> > > ><br>
> > > >> HI,<br>
> > > >><br>
> > > >> I need a little help with nat. UAC register's ok<br>
> and<br>
> > > it is reachable but<br>
> > > >> after a while it become unreachable due to nat<br>
> issue.<br>
> > > If I use<br>
> > > >> nat_keepalive on uac deivce everything is ok, but<br>
> I<br>
> > > would like that this is<br>
> > > >> handled by opensips.<br>
> > > >><br>
> > > >> I tried to use nat_keepalive but getting all the<br>
> time<br>
> > > this:<br>
> > > >><br>
> > > >> 54.820695 opensips -> uac_public_ip SIP 308<br>
> Request:<br>
> > > NOTIFY<br>
> > > >> sip:uac_public_ip:13401 |<br>
> > > >> 54.829847 uac_public_ip -> opensips SIP 297<br>
> Status:<br>
> > > *481 Call<br>
> > > >> Leg/Transaction Does Not Exis*t |<br>
> > > >><br>
> > > >> What is the best way to implement this?<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> modparam("registrar", "received_avp",<br>
> > > "$avp(received_avp)")<br>
> > > >> modparam("registrar", "tcp_persistent_flag", 10)<br>
> > > >> modparam("nathelper", "received_avp",<br>
> > > "$avp(received_avp)")<br>
> > > >> modparam("nathelper", "natping_interval", 10)<br>
> > > >> modparam("nathelper", "ping_nated_only", 1)<br>
> > > >><br>
> > > >><br>
> > > >> if (nat_uac_test("18")) {<br>
> > > >> xlog("fixing nat");<br>
> > > >> if (method=="REGISTER") {<br>
> > > >> nat_keepalive();<br>
> > > >><br>
> fix_nated_register();<br>
> > > >><br>
> > > >> } else {<br>
> > > >><br>
> fix_nated_contact();<br>
> > > >> }<br>
> > > >> force_rport();<br>
> > > >> }<br>
> > > >><br>
> > > >> tnx!<br>
> > > >><br>
> > > >> miha<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> _______________________________________________<br>
> > > >> Users mailing list<br>
> > > >> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> > > >><br>
> > ><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> > > >><br>
> > > >><br>
> > > ><br>
> ><br>
> ><br>
<br>
</div></div></blockquote></div><br></div>