Hello,
On 12/6/11 2:50 PM, Pavel Segeč wrote:
since it is about one attribute associated with the caller, a recommended way is to add a new column in subscriber table, say it is named 'rpid'.
Then, in config file, set the load_credentials parameter of auth_db to load the rpid value and store in an avp. After you authenticate the caller, the avp will be set to the rpid value, see:
http://kamailio.org/docs/modules/stable/modules_k/auth_db.html#id2528175
Using this option, practically you use same db query that loads the user password for authentication to fetch the rpid value.
Cheers, Daniel