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

muhammad akl muhammad.akl at gmail.com
Mon Nov 3 10:43:42 CET 2008


Thx alex for the response

 I have tried your first solution but got strange result that it will
prevent the calls to the determined users between each others inside the
proxy not the external calls come from the GW

I think I should try with the permissions module

Regards


On Sun, Oct 26, 2008 at 10:28 PM, Alex Balashov
<abalashov at evaristesys.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20081103/71c11272/attachment.htm>


More information about the sr-users mailing list