[Users] username prefixes
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Jul 20 10:27:05 CEST 2006
Take a look at the GROUP module
(http://www.openser.org/docs/modules/1.1.x/group.html#AEN178)
You can put all users which are not allowed to be called by everybody
into a group and during call routing check for group membership.
regards
klaus
Mark Kent wrote:
> I'm looking for opinions from people who may have already done
> something like this:
>
> Suppose I've got some entries in the location table that I want the
> whole world to get to, and some locations that I want only authorized
> users to get to. Some of these locations have $resources$ attached,
> but even so they aren't hard-coded in my config, they register just
> like JoeUser on a SIP phone.
>
> I'm thinking of handling this with a prefix on the username,
> like auth.foobar vs foobar, like this:
>
> if (!uri=~"^sip:auth\.") {
> log(1,"---not auth destination\n");
> if (lookup("location")) {
> append_hf("P-hint: non-auth usrloc\r\n");
> route(1);
> }
> }
>
> # rest of stuff requires authorization
>
> if (!proxy_authorize("", "subscriber")) {
> proxy_challenge("", "0");
> return;
> }
> consume_credentials();
>
> <snip rest of INVITE handling>
>
> Is this naive, stupid, already handled in XYZ, or reasonable?
>
> Thanks,
> -mark
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list