[SR-Users] Kamailio mod ALIAS_DB: multiple aliases

Daniel Tryba d.tryba at pocos.nl
Tue Feb 20 11:03:39 CET 2018

On Tue, Feb 20, 2018 at 09:04:14AM +0100, Stefan R??etschli wrote:
> So, if the user uses an alias which does not belong to him, i want to
> overwrite it to the first alias for his username in the aliases-db.
> At the moment, the function alias_db_find returns me the last alias found in
> the db.

You can use for example sqlops or avp_db_query to implement any custom
query for dbaliases.
> Is there any way to do it? Or is there a way to extend the dbaliases with a
> new column marking the "primary" alias for an account?|||| This would be the
> perfect solution.

usr_preferences might be a more logical place to store this.

More information about the sr-users mailing list