Hello,


On 16.11.17 14:26, Dmitri Savolainen wrote:
Hi
Right now it is decimal digits, '*', '#',  '+'

indeed, these seems to be the supported chars in the prefix value. I just added the note about them in the docs/.

 Was the discussion to make the list configurable someday
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...

Cheers,
Daniel

2017-11-16 12:40 GMT+03:00 Karsten Horsmann <khorsmann@gmail.com>:
Hi List,

i answer myself if someone search for the same problem and ends with no solution.
Short answer to "drouting" based on "alphanumeric" prefix question is - NO.
Only numbers are allowed, maybe a + sign, i dont check that.

2017-11-13 14:38 GMT+01:00 Karsten Horsmann <khorsmann@gmail.com>:
Hello List,

i use kamailio-5.0.4 and i experiment with the drouting module with mysql-db.

I try to route with "alphanumeric" stuff - like 'tetris' in sip://tetris@mytest.example 

The DB-Field is an 64 string like route-id. In dr_rules.route-id i can use "named-routes"
if i leave the prefix empty or i fill in only numbers.

With strings i got this error:

ERROR: drouting [dr_load.c:555]: dr_load_routing_info(): failed to add rule id 4 -> skipping

SQL Result for rule-id 4:
# dr_rules
# ruleid, groupid, prefix, timerec, priority, routeid, gwlist, description
'4', '9000', 'tetris', '', '0', 'tetris', '4', 'testroute'

Is drouting only for "number-routing"?

--
Kind Regards
*Karsten Horsmann*



--
Mit freundlichen Grüßen
*Karsten Horsmann*

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users




--
Savolainen Dmitri


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
Kamailio World Conference - www.kamailioworld.com