yes, actually 'nat_flag' parameter its uncommented lines above, as I told in my last post this configuration works very well, in fact I'am using it in a production sip proxy that serve lots of UA´s like Linksys-PAP, Sipura, Addpac, X-pro, Snom phones and asterisk, With those UA´s that support STUN there is no problem because my Stun can find its public ip/port and then openser will not detect a NATed client and do not enforce rtpproxy/nathelper, the problem appears only for UA´s behind same nat and this nat doesn't support hairpinning (send back data in the source direction to reach the target), so this new solution using avp in combination with nathelper and STUN will cover a 100% of Nated UA cases and I´d like to complete and share my configuration that support other useful features the can be useful for this community, I will appreciate your help in this issue.
thank you Rafael
On 12/13/05, Norman Brandinger norm@goes.com wrote:
Hello Rafael,
I took a very quick look at your conifguration and noticed that you have commented out the "nat_flag" line. This setting is documented here: http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN103 I believe that you should, at a minimum, uncomment this line.
# modparam("registrar", "nat_flag", 6)
Your configuration looks as though it is based on information from the iptel.org site. I would suggest that you also review the NAT example configuration from the onsip.org site. The onsip.org configurations are a little more current. The nice part of the onsip.org configurations is that they are provided with line-by-line explanations.
Regards, Norm
Rafael R. GV wrote:
Hi thank you!, now i am using Openser, it was easy to move from ser, just some minor changes like 'break' to 'return' etc, my nathelper implementation is based on a ser example and it works very well, just made some minor changes to set flag 6 and flag 7 to 'Register' and 'Invites' when 'nat_uac_test("19")' in order to try Tavis code snippet, in my tests there is no audio when reset flag 6 and 7 after detected the two clients behind the same NAT and can't hungup or cancel calls properly, please someone see my cfg attached and send some advice, what I am missing?
thanks rafael
On 12/7/05, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
Hi Rafael, You would use the "example code snippet" when you want to decide whether or not to use rtpproxy or mediaproxy based on the fact that both the caller and the callee are behind the same NAT device. Please review the mailing lists as this topic has been discussed many times. I added some additional comments in regard to the setting of flags 2 and 3 in the posted example at: http://openser.org/dokuwiki/doku.php?id=avp_examples Generally, I have found that if OpenSER fails to start with an error indicating that the function can't be found, it's time to find the correct module to add. In response to your last question "etc." I suggest that you review
the
three web sites: openser.org <http://openser.org>, iptel.org <http://iptel.org> and onsip.org <http://onsip.org>. The last one
has
some really great material that explains alot. Regards, Norm Rafael R. GV wrote: > Hi > I am using nathelper/rtpproxy in ser , please see my ser.cfg attached > and tell me where do I have to use this code snippet? where did
you
> set flags 2 and 3?, what other modules I need?, etc. > > thank you > Rafael > Lima-Peru >
No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
12/13/2005
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users