[OpenSIPS-Users] registration for each subscriber ID and IP

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jul 28 16:02:34 CEST 2014


Hi,

Simply create a new field to the subscriber table and populate it by 
hand after creating the subcriber (do an update on the table).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.07.2014 16:36, Лытаев Антон Викторович wrote:
> How to add IP together with the addition of subscriber? And in what 
> field / column?
> Now add abonetov team: "opensipsctl add user password"
> As if to add column "email_address"?
> That's the case then this line should look like:
> modparam ("auth_db", "load_credentials", "$ avp (loaded_IP) = 
> email_address")?
>
> 28.07.2014 16:04, Bogdan-Andrei Iancu пишет:
>> Hi,
>>
>> I would rather suggest (instead of using the permissions module) to 
>> put an extra field into the subscriber table and put the IP over 
>> there. You can load that field during auth process via the 
>> "load_credentials" parameter :
>> http://www.opensips.org/html/docs/modules/1.11.x/auth_db.html#id293578
>>
>> After loading the field into an avp, after successful auth you can 
>> simply do:
>>     if ($si!=$avp(loaded_IP)) {
>>         #reject call
>>     }
>>
>> Regards,
>
>




More information about the Users mailing list