[sr-dev] [kamailio/kamailio] speeddial: allow search uri of speed dial by group (PR #3255)

Daniel-Constantin Mierla notifications at github.com
Tue Oct 4 09:41:24 CEST 2022


@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 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20221004/3e1a6c1c/attachment.htm>


More information about the sr-dev mailing list