Hello,
you can try a combination of dialplan and dispatcher module. With
dialplan you can match using regexp, return dispatcher group via
attributes, convert it to integer and use it as dispatcher set.
Cheers,
Daniel
On 07/03/2009 04:01 PM, Edson - Lists wrote:
I looked around... CR uses the same approach that LCR
on prefix
definitions (or, at least the README don't say/explain that it's
different). So I went to look on REGEX module...
Iñaki, this module has Your signature... let me ask You what exactly
are this REGEX groups? Could I use something like:
- Use RURI and recover associated "REGEX-group number";
- Ask LCR or CR to look for routes to prefix="REGEX-group number";
- proceed routing fail-over as usual...
Edson
Juha Heinanen escreveu:
Iñaki Baz Castillo writes:
I'd really like to see some mechanism to make
routing decisions based
on RURI username itself, rather than just no its prefix. Sure it
could be a good feature.
lcr module works on longest prefixes of r-uri username (= telephone
number). it was tried once operate on regular expressions, but it was
not a good idea. if you want something else than longest prefixes,
check if some other module (like drouting or cr) could provide that.
-- juha
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
_______________________________________________
sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com/