[OpenSIPS-Users] permissions, pattern
Alexander
goal81 at gmail.com
Tue Jan 26 14:23:25 CET 2010
Thank you very much, seems to work properly :)
2010/1/26 Bogdan-Andrei Iancu <bogdan at voice-system.ro>
> Well, as time as you want a to check against a fix value "like $fU ==
> 123456" , you can use the "info" field - during the check for IP, the
> "info" field (an opaque string from module point of view) is loaded into
> script (into an AVP) - this value will be available in script after the
> check_source_address(), so you can compare it against $fU....
>
> Regards,
> Bogdan
>
>
> Alexander wrote:
> > Yes. For example, I would like to allow requests without
> > authorization from IP 192.168.3.4 for username ($fU) 123456. It would
> > be nice to have such ability. I've read documentation on permissions
> > module, but found no way solve this task :(
> >
> > 2010/1/26 Bogdan-Andrei Iancu <bogdan at voice-system.ro
> > <mailto:bogdan at voice-system.ro>>
> >
> > Hi Alexander,
> >
> > You mean to have the "pattern" parameter as variable also ?
> >
> > Regards,
> > Bogdan
> >
> > Alexander wrote:
> > > Hi all!
> > >
> > > Can I use pseudo-variables as pattern argument in
> > check_address()? I
> > > would like to check $fU variable, but check_address() treats it as
> > > "$fU", not as user part of From-URI.
> > >
> >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > >
> >
> >
> > --
> > Bogdan-Andrei Iancu
> > www.voice-system.ro <http://www.voice-system.ro>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100126/528f2cb9/attachment.htm
More information about the Users
mailing list