[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-27 Thread SAMUEL MOYA TINOCO via sr-users
Hi,

I've been checking all your suggestions and I think the one that best suits my 
case is drouting 

Thank you all for your help


-Mensaje original-
De: Alex Balashov via sr-users  
Enviado el: martes, 21 de mayo de 2024 13:49
Para: Kamailio (SER) - Users Mailing List 
CC: Alex Balashov 
Asunto: [SR-Users] Re: Is there any funtion to route based on source phone 
number

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 
>  wrote:
> 
> Samuel,
> 
> Have you looked at drouting?
> 
> https://www.kamailio.org/docs/modules/5.6.x/modules/drouting.html#drou
> ting.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 
>  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 sr-users-le...@lists.kamailio.org
> 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 sr-users-le...@lists.kamailio.org
> 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://linkprotect.cudasvc.com/url?a=https%3a%2f%2fevaristesys.com&c=E,1,XexYNmcsDtsRwMKOJbWvFfINcGVNAdJaLIv0u_459tsdc3xEPjGT7dwyn-4TrgV8gKSzTzu81yUBXys3eW-YKDe7YhYO3Ew-wELQxnH0cvArRSbpC_Lr&typo=1
Tel: +1-706-510-6800

__
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send 
an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-23 Thread Henning Westerholt via sr-users
Hello,

the carrierroute module also supports the longest prefix match of course.

Cheers,

Henning

> -Original Message-
> From: Juha Heinanen via sr-users 
> Sent: Dienstag, 21. Mai 2024 16:08
> To: Kamailio (SER) - Users Mailing List 
> Cc: SAMUEL MOYA TINOCO ; Juha Heinanen
> 
> Subject: [SR-Users] Re: Is there any funtion to route based on source phone
> number
> 
> If you want to select something based on phone number (longest) prefix, then
> mtree module could be useful.
> 
> -- Juha
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send
> an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-21 Thread Fred Posner via sr-users
> On May 21, 2024, at 10:07 AM, Juha Heinanen via sr-users 
>  wrote:
> 
> If you want to select something based on phone number (longest) prefix,
> then mtree module could be useful.
> 
> -- Juha

As many have stated… lots of routing modules. This said… +1 for mtree. ;)

-—fred


__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-21 Thread Juha Heinanen via sr-users
If you want to select something based on phone number (longest) prefix,
then mtree module could be useful.

-- Juha
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-21 Thread Sergio Charrua via sr-users
Hi all!

I guess you could use dispatcher group ID and depending on the invite phone
number, use dispatcher group ID X





*Sérgio Charrua*

*www.voip.pt *
Tel.: +351  91 631 11 44

Email : *sergio.char...@voip.pt *

This message and any files or documents attached are strictly confidential
or otherwise legally protected.

It is intended only for the individual or entity named. If you are not the
named addressee or have received this email in error, please inform the
sender immediately, delete it from your system and do not copy or disclose
it or its contents or use it for any purpose. Please also note that
transmission cannot be guaranteed to be secure or error-free.








On Tue, May 21, 2024 at 12:55 PM SAMUEL MOYA TINOCO via sr-users <
sr-users@lists.kamailio.org> wrote:

> 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 sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-21 Thread Alex Balashov via sr-users
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 
>  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 
>  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 sr-users-le...@lists.kamailio.org
> 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 sr-users-le...@lists.kamailio.org
> 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 sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Is there any funtion to route based on source phone number

2024-05-21 Thread Ihor Olkhovskyi via sr-users
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 <
sr-users@lists.kamailio.org> 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 sr-users-le...@lists.kamailio.org
> 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 sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: