Re: [SR-Users] LCR Routing - Cost based routing

2015-08-11 Thread DanB

Hi Alexandru,

Well the concept is simple: on INVITE, you will issue a special format 
evapi request. You will receive the list of suppliers in the reply 
(which is received in a separate route) and you continue processing from 
there. These suppliers are simple tags so your creativity will be the 
limit of what you can do with them - eg: direct ip addresses received or 
tags of suppliers which you can further translate with drouting module 
or any alias related one.


For more information on LCR please find this year's presentation on 
Kamailio World (which I strongly recommend to be attended):


https://www.youtube.com/watch?v=Hsvcwleb-fY

You can also find the kamailio configuration which I have used in the 
worshop here:


https://github.com/cgrates/cgrates/tree/master/data/tutorials/kamevapi/kamailio/etc/kamailio

Let me know if further questions (or join our irc or mailing list so we 
do not create too much noise here).


DanB

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-10 Thread DanB

Guys,

Since I saw the thread growing, I am around if you got questions on 
CGRateS related LCR, fully compatible with Kamailio via evapi module.


DanB

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-10 Thread Alexandru Covalschi
DanB, well, I never used it - can you please describe how does it work? :)
I mean, the logic in short

2015-08-10 13:15 GMT+03:00 DanB danb.li...@gmail.com:

 Guys,

 Since I saw the thread growing, I am around if you got questions on
 CGRateS related LCR, fully compatible with Kamailio via evapi module.

 DanB


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
try using CGRateS

2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route /
 LCR / droude module

 i have 10 different termination gateways, each gateways will have more
 than 1 destinations and each gateways will have different rate, for
 example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
Or, well, see that guide
http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have
priority and weight on LCR module

2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route /
 LCR / droude module

 i have 10 different termination gateways, each gateways will have more
 than 1 destinations and each gateways will have different rate, for
 example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Arun Kumar
but above guide is only prefix priority and weight based   , but we should
involve rate as well.
 ,

On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi 568...@gmail.com
wrote:

 Or, well, see that guide
 http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have
 priority and weight on LCR module

 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route /
 LCR / droude module

 i have 10 different termination gateways, each gateways will have more
 than 1 destinations and each gateways will have different rate, for
 example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Arun Kumar
hi Alexandru

   so we have manually  set prefix , weight and priority depanding
upon rates  ?  is there any avaliable way to automate or we have to
rewrite/modify  the lcr/drouting module for rate selection  ,



On Sun, Aug 9, 2015 at 9:22 PM, Alexandru Covalschi 568...@gmail.com
wrote:

 however you can try building LCR based on prefix and weight, why not?

 2015-08-09 18:52 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some
 internal Kamailio modules, but I don't know about them

 2015-08-09 17:10 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 but above guide is only prefix priority and weight based   , but we
 should involve rate as well.
  ,

 On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi 568...@gmail.com
 wrote:

 Or, well, see that guide
 http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we
 have priority and weight on LCR module

 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route
 / LCR / droude module

 i have 10 different termination gateways, each gateways will have
 more than 1 destinations and each gateways will have different rate,
 for example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for 
 the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
 list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Juha Heinanen
Arun Kumar writes:

 but above guide is only prefix priority and weight based   , but we should
 involve rate as well.

may be you can use priority as your rate.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
however you can try building LCR based on prefix and weight, why not?

2015-08-09 18:52 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some
 internal Kamailio modules, but I don't know about them

 2015-08-09 17:10 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 but above guide is only prefix priority and weight based   , but we
 should involve rate as well.
  ,

 On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi 568...@gmail.com
 wrote:

 Or, well, see that guide
 http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have
 priority and weight on LCR module

 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route
 / LCR / droude module

 i have 10 different termination gateways, each gateways will have more
 than 1 destinations and each gateways will have different rate, for
 example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for 
 the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some
internal Kamailio modules, but I don't know about them

2015-08-09 17:10 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 but above guide is only prefix priority and weight based   , but we should
 involve rate as well.
  ,

 On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi 568...@gmail.com
 wrote:

 Or, well, see that guide
 http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have
 priority and weight on LCR module

 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier route /
 LCR / droude module

 i have 10 different termination gateways, each gateways will have more
 than 1 destinations and each gateways will have different rate, for
 example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alex Balashov
‎Long story short: Kamailio supports primitive weight-based routing with its 
various internal modules, but not complex, jurisdiction and market-specific 
business logic which we commonly think of as LCR. 

For that, you need to somehow shoehorn your right selection algorithm into 
these modules' limited schema, write your own logic, or licence a commercial 
product which provides this, such as Sipwise's sip-provider (www.sipwise.com), 
or ours (www.csrpswitch.com), or various others.

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

Sent from my BlackBerry.
  Original Message  
From: Alexandru Covalschi
Sent: Sunday, August 9, 2015 11:52
To: Kamailio (SER) - Users Mailing List
Reply To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] LCR Routing - Cost based routing


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
you already have cost, just write a script to transform it into weight, I
don't see a hard task here. It can be easily automated

2015-08-09 21:15 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 hi Alexandru

so we have manually  set prefix , weight and priority
 depanding upon rates  ?  is there any avaliable way to automate or we have
 to rewrite/modify  the lcr/drouting module for rate selection  ,



 On Sun, Aug 9, 2015 at 9:22 PM, Alexandru Covalschi 568...@gmail.com
 wrote:

 however you can try building LCR based on prefix and weight, why not?

 2015-08-09 18:52 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some
 internal Kamailio modules, but I don't know about them

 2015-08-09 17:10 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 but above guide is only prefix priority and weight based   , but we
 should involve rate as well.
  ,

 On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi 568...@gmail.com
 wrote:

 Or, well, see that guide
 http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we
 have priority and weight on LCR module

 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi 568...@gmail.com:

 try using CGRateS

 2015-08-09 12:06 GMT+03:00 Arun Kumar mi2a...@gmail.com:

 Hi

  is there any way to achive following usecase using carrier
 route / LCR / droude module

 i have 10 different termination gateways, each gateways will have
 more than 1 destinations and each gateways will have different rate,
 for example

 91 Destination ( there will be 1 entries like 91 )
 gw1gw2   gw3   gw4gw5
 0.001 0.007 0.003 0.002 0.003

 now need to logic to load the these destination with cost and sort
 gateways in order of longest match of dialled number,cost, priority for 
 the
 dialled destination, which will not use too much CPU and memory

 Regards
 Arun

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
 list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/




 --
 Alexandru Covalschi
 ABRISS-Solutions
 VoIP engineer and system administrator
 phone: +37367398493
 web: http://abs-telecom.com/

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
phone: +37367398493
web: http://abs-telecom.com/
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users