Indeed, there are quite a few modules that perform this type of dynamic routing function.
`drouting` is good, but may be overkill. If the destinations being compared are all fully-qualified phone numbers and not prefixes, `alias_db` may be simplest. -- Alex > On May 21, 2024, at 7:22 AM, Ihor Olkhovskyi via sr-users > <[email protected]> wrote: > > Samuel, > > Have you looked at drouting? > > https://www.kamailio.org/docs/modules/5.6.x/modules/drouting.html#drouting.f.do_routing > > From a first view this one will cover your needs > > Le mar. 21 mai 2024 à 13:01, SAMUEL MOYA TINOCO via sr-users > <[email protected]> a écrit : > Hi everyone, > I have a kamailio configured to send invites from different phone numbers > registered in kamailio to different endpoints. > The configuration that I have right now is a big if chain with the phone > numbers that then sends the invite using dispatcher module. > Example: > If (phone number in invite = phone number X) { dispatcher sends to endpoint X} > If (phone number in invite = phone number Y) { dispatcher sends to endpoint Y} > If (phone number in invite = phone number Z) { dispatcher sends to endpoint Z} > Im not sure if this is the correct way of doing this or if there is any > module that can do this allowing me to configure it using BBDD instead of > kamailio configuration. > I started doing it like this on our test environment while I was learning how > to use kamailio and I’d like to know if this is the right way to do it or if > I should do it with other methods > Thank you in advance > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > > > -- > Best regards, > Ihor (Igor) > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: -- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com Tel: +1-706-510-6800 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
