Hi,

thanks for your replies.

When I call do_routing with an groupid inside the routing script, the function then is looking inside the dr_rules table for routes sharing the specified groupid. For this case you don't need the dr_groups at all, except for single numbers from specific domains. Is this really intended?

Best Regards,

Malte

On 22/05/2025 19.12, Johan De Clercq wrote:
+1

On Thu, 22 May 2025, 18:43 Brett Nemeroff, <br...@nemeroff.com> wrote:

    I do not believe this is supported. I would use a different module
    to regex the domain and associate that to a drouting groupid. Then
    pass that to your do_routing().
    -Brett


    On Thu, May 22, 2025 at 11:16 AM s...@lard.at <s...@lard.at> wrote:

        Dear people,

        about module drouting:

        Is regexp inside the dr_groups possible? The type of field
        "username"
        and "domain" in db-schema is "string". When trying regexp for
        username
        and domain (for example ".*") and calling the do_routing function
        without a parameter this is the result:

        May 22 17:42:28 opensips-test /usr/sbin/opensips[11119]:
        ERROR:drouting:get_group_id: no group for user "xxx"@"xxx"

        I'm asking because under
        https://www.opensips.org/Documentation/Tutorials no. 10 theres a
        tutorial where regexp is used.


        Best Regards,

        Malte


        _______________________________________________
        Users mailing list
        Users@lists.opensips.org
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users

    _______________________________________________
    Users mailing list
    Users@lists.opensips.org
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to