@Tomohare: maybe, if it suits your use case better, you can try another approach to make
the query only on user column even when the `use_domain` is set, via new function
`sd_lookup_group()` or a new optional parameter to `sd_lookup()`. So there will be one
function to do the query on both user/domain and the other one only on user column.
The function take the db table name as a parameter, so you can use two db tables to
separate the group and user-specific records (`sd_lookup_group(groupdial)` and
`sd_lookup(speedial)`) . You can also set the name of the column to something that suits
better both cases (e.g., `owner`).
From my point of view it felt that the module offers
what you need, but it is fine to add new function/functionality for more flexibility, but
I didn't want to change the database structure unless really needed, because that has
impact on upgrades (even on major release upgrade, but better to avoid when possible).
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3255#issuecomment-1266533005
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3255/c1266533005(a)github.com>