<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>thanks for your replies.</p>
<p>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?</p>
<p>Best Regards,</p>
Malte
<p></p>
<div class="moz-cite-prefix">On 22/05/2025 19.12, Johan De Clercq
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEVWGm9RsTMSU44o0hyeKR4nbwM=OC9EQspiw28jOdy3X_4c+Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">+1</div>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Thu, 22 May 2025, 18:43
Brett Nemeroff, <<a href="mailto:brett@nemeroff.com"
moz-do-not-send="true" class="moz-txt-link-freetext">brett@nemeroff.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">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().
<div>-Brett</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, May 22, 2025 at
11:16 AM <a href="mailto:spce@lard.at" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">spce@lard.at</a> <<a
href="mailto:spce@lard.at" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">spce@lard.at</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear
people,<br>
<br>
about module drouting:<br>
<br>
Is regexp inside the dr_groups possible? The type of field
"username" <br>
and "domain" in db-schema is "string". When trying regexp
for username <br>
and domain (for example ".*") and calling the do_routing
function <br>
without a parameter this is the result:<br>
<br>
May 22 17:42:28 opensips-test /usr/sbin/opensips[11119]: <br>
ERROR:drouting:get_group_id: no group for user "xxx"@"xxx"<br>
<br>
I'm asking because under <br>
<a href="https://www.opensips.org/Documentation/Tutorials"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips.org/Documentation/Tutorials</a>
no. 10 theres a <br>
tutorial where regexp is used.<br>
<br>
<br>
Best Regards,<br>
<br>
Malte<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">Users@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">Users@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>