[Devel] Re: [Users] IP authentication
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Sep 1 10:18:25 CEST 2006
Klaus Darilion wrote:
> Juha Heinanen wrote:
>
>> Kristian Kielhofner writes:
>>
>> > http://openser.org/docs/modules/1.1.x/permissions.html
>> > > Specifically allow_trusted()
>> > > Just add some:
>> > > "if (!allow_trusted())" type stuff and you can add IPs all day
>> long. > Much better than lines and lines of code to match IPs one by
>> one!
>>
>> this reminds me that i have been thinking to add to permissions module a
>> new function
>>
>> allow_address(ip [,port])
>>
>> where ip and port can be any AVPs. it will check if match is found in a
>> new address table. perhaps it should also have an index parameter
>> allowing multiple address sets.
>>
>> any comments?
>
sounds good to me.
>
> Maybe we can have a pseudo variable in onsend_route which contains the
> IP address to which the message will be sent. Then we could use this
> function to allow received messages and to allow sending messages.
there is no "onsend_route" in openser
regards,
bogdan
More information about the Users
mailing list