[Serusers] mediaproxy functions client_nat_test()
Java Rockx
javarockx at yahoo.com
Fri Jan 7 14:42:48 CET 2005
Proson,
This is verbatim from the mediaproxy README file:
Regards,
Paul
- client_nat_test(type)
tests if the client is behind NAT or not. The types of tests are
specified by the type parameter which represents a sum of the
following numbers (add the values of the ones you wish to perform
tests for):
1 - tests if client has a private IP address (as defined by RFC1918)
in the Contact field of the SIP message.
2 - tests if client has contacted SER from an address that is
different from the one in the Via field.
4 - tests if client has a private IP address (as defined by RFC1918)
in the top Via field of the SIP message.
for example calling client_nat_test("3") in ser.cfg will perform
first 2 tests listen above and return true as soon as one succeeds
if both fail will return false.
--- proson cheng <proson.cheng at kaisource.com> wrote:
> Hello all,
>
> I asked the questions but i still don't find an appropiate answer, in
> the fuctions.
>
>
> client_nat_test("3");
> it takes an argument
> usually, i see a "3" for the arguments.
>
> what does that 3 mean? does it represent a type of NAT? If so, what
> others argument can I take?
>
> thanks proson
> .
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
More information about the sr-users
mailing list