[Serusers] setflag() trouble

Dave ddx66 at yahoo.com
Tue Jan 25 18:47:39 CET 2005


Did you set the"nat_flag" attribute to 6...? 
something like:

modparam("registrar","nat_flag", 6)



--- Doug Eubanks <admin at dougware.net> wrote:

> I was expecting to find the same entry in the flags
> table...now I know better, but here is my problem.
> 
> My first if statement is
> 
>         if (client_nat_test("3")) {
>                 log(1, "NAT detected\n");
>                 fix_contact();
>                 force_rport();
>                 setflag(6);
>                 # flag 2 indicates that incoming
> request is from NATed client
>         };
> 
> I am know it is returning true because the log shows
> the "NAT detected" line, however the isflagset(6)
> tests later do not return true, so the mediaproxy
> does not get started.  I had it working but I broke
> something along the way.
> 
> Any clue?
> 
> Thanks,
> Doug
> 
> On Tue, January 25, 2005 11:20 am, Hendrik Scholz
> said:
> > Hi!
> > 
> > 
> > I do have a setup where I call setflag(1) and
> save("location")
> > afterwards as part of each REGISTER. I expect the
> flag to show up in the location table as flags
> > column. For whatever reason this doesn't work (I
> do see the username, callid,
> > ... though).
> > 
> > 
> > 
> > Any hints?
> > 
> > 
> > Thanks,
> > Hendrik
> > 
> > 
> > --
> > freenet Cityline GmbH, Hamburger Chaussee 2-4,
> 24114 Kiel, Germany Phone: +49 (0)431 9020552, Fax:
> > +49 (0)431 9020559
> > Internet: http://www.freenet.de, eMail:
> hendrik.scholz at freenet-ag.de
> > 
> > 
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> > 
> > 
> > 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 



		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 




More information about the sr-users mailing list