[Kamailio-Users] restrict calls from gateway to some extensions

Alex Balashov abalashov at evaristesys.com
Sun Oct 26 21:28:41 CET 2008


if($rU == "11001") {
	t_relay();
} else if($rU == "11002") {
	sl_send_reply("403", "Forbidden");
	exit;
}

Or you can use the "permissions" module.

muhammad akl wrote:

> Hey all ,
> 
> I want to make some ACL for the INVITES come from a PSTN-GW to certain 
> users on my OpenSER server.
> 
> for ex: I have the following extensions on my OpenSER server :
> 
> 11001
> 11002
>    |
>    |
>    |
>    |
> 11111
> 
> What I want to implement is something similar to this :
> 
> Caller <-------> PSTN-GW <------->OpenSER <----> (complete this call to 
> this extension ) 11001
> 
> Caller <-------> PSTN-GW <------->OpenSER  <----> (reject this call for 
> this user ) 11002
> 
> and so on for other extensions . any way to implement this feature in 
> openser ?
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599




More information about the Users mailing list