<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 16.11.17 14:26, Dmitri Savolainen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGYSiDjq7Tc-gBQp9_2fcgEZAYhsp4DDKWpMqG3Ndwk4K5R_pQ@mail.gmail.com">
<div dir="ltr">
<div>Hi</div>
Right now it is decimal digits, '*', '#', '+'<br>
</div>
</blockquote>
<br>
indeed, these seems to be the supported chars in the prefix value. I
just added the note about them in the docs/.<br>
<blockquote type="cite"
cite="mid:CAGYSiDjq7Tc-gBQp9_2fcgEZAYhsp4DDKWpMqG3Ndwk4K5R_pQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div> Was the discussion to make the list configurable someday</div>
</div>
</blockquote>
I don't recall the discussion, maybe I haven't paid much attention
because I don't use this module that much and for what I do, it was
enough with these chars, but of course, making the supported chars
list a modparam will add more flexibility, so if anyone does a patch
for it, it will be merged...<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote type="cite"
cite="mid:CAGYSiDjq7Tc-gBQp9_2fcgEZAYhsp4DDKWpMqG3Ndwk4K5R_pQ@mail.gmail.com">
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-11-16 12:40 GMT+03:00 Karsten
Horsmann <span dir="ltr"><<a
href="mailto:khorsmann@gmail.com" target="_blank"
moz-do-not-send="true">khorsmann@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi List,
<div><br>
</div>
<div>i answer myself if someone search for the same
problem and ends with no solution.</div>
<div>Short answer to "drouting" based on "alphanumeric"
prefix question is - NO.</div>
<div>Only numbers are allowed, maybe a + sign, i dont
check that.</div>
</div>
<div class="gmail_extra">
<div>
<div class="h5"><br>
<div class="gmail_quote">2017-11-13 14:38 GMT+01:00
Karsten Horsmann <span dir="ltr"><<a
href="mailto:khorsmann@gmail.com"
target="_blank" moz-do-not-send="true">khorsmann@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-size:12.8px">Hello
List,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><span
style="font-size:12.8px">i use
kamailio-5.0.4 and i experiment with the
drouting module with mysql-db.</span></div>
<div style="font-size:12.8px"><span
style="font-size:12.8px"><br>
</span></div>
<div style="font-size:12.8px">I try to route
with "alphanumeric" stuff - like 'tetris' in
<a class="moz-txt-link-freetext" href="sip://tetris@mytest.example">sip://tetris@mytest.example</a> </div>
<div style="font-size:12.8px"><br>
</div>
<div>
<div><span style="font-size:12.8px"><a
href="https://www.kamailio.org/docs/db-tables/kamailio-db-devel.html#idp31352844"
target="_blank" moz-do-not-send="true">https://www.kamailio.org/docs/<wbr>db-tables/kamailio-db-devel.ht<wbr>ml#idp31352844</a></span></div>
<div><span style="font-size:12.8px">The
DB-Field is an 64 string like route-id. In
dr_rules.route-id i can use "named-routes"</span></div>
<div><span style="font-size:12.8px">if i leave
the prefix empty or i fill in only
numbers.</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">With
strings i got this error:</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">ERROR:
drouting [dr_load.c:555]:
dr_load_routing_info(): failed to add rule
id 4 -> skipping</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">SQL Result
for rule-id 4:</span></div>
<div><span style="font-size:12.8px"># dr_rules</span></div>
<div><span style="font-size:12.8px"># ruleid,
groupid, prefix, timerec, priority,
routeid, gwlist, description</span></div>
<div><span style="font-size:12.8px">'4',
'9000', 'tetris', '', '0', 'tetris', '4',
'testroute'</span></div>
<div style="font-size:12.8px"><br>
</div>
</div>
<div style="font-size:12.8px">Is drouting only
for "number-routing"?</div>
<span class="m_-5027132043891159964HOEnZb"><font
color="#888888">
<div><br>
</div>
-- <br>
<div
class="m_-5027132043891159964m_1837131656195144466gmail_signature">Kind
Regards<br>
*Karsten Horsmann*<br>
</div>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span class="HOEnZb"><font color="#888888">-- <br>
<div class="m_-5027132043891159964gmail_signature"
data-smartmail="gmail_signature">Mit freundlichen
Grüßen<br>
*Karsten Horsmann*<br>
</div>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Savolainen Dmitri</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>