SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
spykeOffline



Joined: Feb 07, 2008
Posts: 6

Status: Offline
Posted: Mar 19, 2008 - 03:07 PM Reply with quote Back to top
Hi,
what are the differences between the client_nat_test function of the mediaproxy module and the nat_uac_test function of the nathelper module?

Thanks in advance,

C.
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1133
Location: Leeds UK
Status: Offline
Posted: Mar 19, 2008 - 03:34 PM Reply with quote Back to top
iirc, the mediaproxy function tests for a private address in the contact header, a private source IP address, and a private address in the Via header.

nat_uac_test() checks all the above, tests the ports as well, and tests the SDP. the mediaproxy functions may do that also.. i'm not that familiar with the code.
View user's profile Send private message Yahoo Messenger
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1133
Location: Leeds UK
Status: Offline
Posted: Mar 19, 2008 - 03:37 PM Reply with quote Back to top
...and yes, we dont need both functions to do the same thing.. there is work planned on abstracting nat functions that are not application specific into a separate module.
View user's profile Send private message Yahoo Messenger
spykeOffline



Joined: Feb 07, 2008
Posts: 6

Status: Offline
Posted: Mar 19, 2008 - 04:44 PM Reply with quote Back to top
Thank you for your answer,
so, you agree with me, we don't need both functions to do the same thing.
But can I make a cross thing like using client_nat_test (--> mediaproxy) and fix_nated_register (nathelper) or viceversa?

Thanks in advance,

C.
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1133
Location: Leeds UK
Status: Offline
Posted: Mar 19, 2008 - 05:57 PM Reply with quote Back to top
Quote:
can I make a cross thing like using client_nat_test (--> mediaproxy) and fix_nated_register (nathelper) or viceversa?


not without dipping into the source.. but not sure what you would gain by doing that? what are you trying to accomplish?
View user's profile Send private message Yahoo Messenger
spykeOffline



Joined: Feb 07, 2008
Posts: 6

Status: Offline
Posted: Apr 09, 2008 - 02:28 PM Reply with quote Back to top
I'm tryng to do what described here:

http://www.openser.org/docs/modules/1.3 ... tml#AEN218

loadmodule "/lib/openser/modules/mediaproxy.so"
loadmodule "/lib/openser/modules/nathelper.so"

modparam("mediaproxy", "natping_interval", 0)

modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "sipping_from", "sip:ping@sipserver.net")

modparam("registrar", "nat_flag", 6)
modparam("registrar", "sip_natping_flag", 2)
....
....
if (method=="REGISTER") {
setflag(6); # nat
setflag(2); # sip_ping
if (!save("location")) {
sl_reply_error();
}
}

But 'sip_natping_flag' doesn't exist anymore in 1.3 ,so I think I have to use modparam("nathelper", "sipping_bflag", 7).
Can you suggest me the better way to use mediaproxy in conjunction with nathelper in order to detect and fix the NAT properly and ping (i.e. send OPTION or NOTIFY) natted clients?
Thanks in advance,

C.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.