[Serusers] Groups Question.

Sergio Diaz sdiaz at comnet.net.mx
Fri Apr 30 19:09:10 CEST 2004


Thank You Andreas.!!

Let me try... =)


On Fri, 2004-04-30 at 09:04 +0200, Andreas Granig wrote:

> Sergio Diaz wrote:
> > Group  marketing 8000,8001,8002
> > 
> > Group  sales	 9000,9001,9002
> > 
> > User 8000 can't call to User 9000 and viceversa, marketing can't call to
> > group sales....
> 
> Maybe you should try something like this:
> 
>    if (!proxy_authorize("your.domain", "subscriber"))
>    {
>      log(1, "No proxy authorization\n");
>      proxy_challenge("your.domain", "0");
>      break;
>    };
> 
>    if(!(uri=~"^sip:8[0-9]+ at your.domain.*"
>      && is_user_in("credentials", "marketing")))
>    {
>      log(1, "Unpermitted call to marketing\n");
>      sl_send_reply("403", "Unpermitted call to marketing");
>      break;
>    };
> 
>    if(!(uri=~"^sip:9[0-9]+ at your.domain.*"
>      && is_user_in("credentials", "sales")))
>    {
>      log(1, "Unpermitted call to sales\n");
>      sl_send_reply("403", "Unpermitted call to sales");
>      break;
>    };
> 
>    etc...
> 
> hth,
> Andy
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
-- 
Sergio Díaz Escobar. CCNA
<sdiaz at comnet dot net dot mx>
Network Engineer - Information Technology
COMNET, S.A. DE C.V.
Patriotismo 889 7o. Piso Col. Mixcoac
Mexico, 039100, D.F.
(52) 55 12539230 <> 121 Fax. (52) 55 12539240

                                                                                                               
                                                                                                               
Computers are unreliable, but humans are even more unreliable.
Any system which depends on human reliability is unreliable.
                Murphy`s Law.
                                                                                                               
                                                                                                               

___________________________________________________________________                                                                                  

This email may be confidential and/or privileged. Only the intended
recipient may access or use it. Any dissemination, distribution or
copying of this email is strictly prohibited. If you are not the
intended recipient please notify us immediately by return email and
then erase the email.
                                                                                                               
We use virus scanning software but exclude all liability for viruses
or similar in any attachment or message...,..,..,.




More information about the sr-users mailing list