[Serusers] How to check the username if it is registered or not
Ravin Suri
ravinsuri at doclinx.com
Sat Sep 15 21:53:50 CEST 2007
I am using SER 2.0 RC1
- Ravin
> -----Original Message-----
> From: Tung Tran [mailto:tr.tung at gmail.com]
> Sent: Saturday, September 15, 2007 12:36 AM
> To: Ravin Suri; 'Michal Matyska'
> Cc: serusers at lists.iptel.org
> Subject: RE: [Serusers] How to check the username if it is
> registered or not
>
> Mr. Ravin,
>
> Which version of SER are you using now?
> Thanks and regards,
>
> Tung
>
>
> > Michal's solution worked for me. His code needed a small change.
> > The following worked:
> >
> >
> > lookup_user("$fu.uid", "@from.uri");
> >
> > $tu.uid=$f.uid;
> >
> > xlog("L_INFO", "Register check for: tu.uid=%$tu.uid\n");
> >
> > if (!registered("location"))
> > {
> > xlog("L_INFO", "Unregistered request[%rm]: From: %$tu.uid\n");
> > sl_reply("401", "Unauthorized"); drop; } del_attr("$tu.uid");
> >
> >
> > This helped me avoid repeated proxy auth in every request
> subsequent
> > to a successful register.
> >
> > Michal, Thank you very much!
> >
> > - Ravin
> >
> >
> >> -----Original Message-----
> >> From: serusers-bounces at lists.iptel.org
> >> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of
> Michal Matyska
> >> Sent: Thursday, September 13, 2007 11:05 PM To: Tung Tran
> >> Cc: serusers at lists.iptel.org
> >> Subject: Re: [Serusers] How to check the username if it is
> registered
> >> or not
> >>
> >> I'm sorry, there is no way to check that in SER 0.8 neither 0.9.x
> >> Michal
> >>
> >> On Fri, 2007-09-14 at 09:40 +0700, Tung Tran wrote:
> >>
> >>> I am using SER 0.8 and not easy to imgration to 2.0 soon,
> >>>
> >> so is there possible to use this on old version....
> >>
> >>> Thanks in advanced
> >>>
> >>> Tung
> >>>
> >>
> >> _______________________________________________
> >> Serusers mailing list
> >> Serusers at lists.iptel.org
> >> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list