Hello,
I'm new in kamailio/sr.
I've installed 3.1 packages on my debian squeeze. I would like to configure LCR and CARRIERROUTE modules but I don't find suficient doc to do it properly.
Does someone can give me resources where I can found : - required modparam for LCR and CARRIERROUTE - SQL examples datas for both modules - example of route logic using both modules
Thank you
Sébastien Cramatte writes:
Does someone can give me resources where I can found :
- required modparam for LCR and CARRIERROUTE
- SQL examples datas for both modules
- example of route logic using both modules
regarding lcr, modparams are all described in readme. i don't know about database examples. example logic for lcr is very simple: you call load_gws() and after that next_gw() as many times as needed or until you run out of gws.
-- juha
On 11/06/2010 08:26 PM, Sébastien Cramatte wrote:
Hello,
I'm new in kamailio/sr.
I've installed 3.1 packages on my debian squeeze. I would like to configure LCR and CARRIERROUTE modules but I don't find suficient doc to do it properly.
Does someone can give me resources where I can found :
- required modparam for LCR and CARRIERROUTE
- SQL examples datas for both modules
- example of route logic using both modules
Thank you
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
Hello,
First of all you need to clearly define what you need to accomplish. I suspect you need some sort of load balancing. For that you can use either carrierroute or lcr. For carrierroute you can have blacklist capabilities as well. Please read the README or the info on this page http://www.kamailio.org/docs/modules/3.1.x/modules/carrierroute.html
You can configure Carrierroute either in text file mode or in DB mode. You will have there a snippet with some cfg code that describes balancing based on callid, also some DB setups for the table.
modparam("carrierroute", "config_source", "db") modparam("carrierroute", "db_url", "dbdriver://username:password@dbhost/dbname")
are mandatory for basic configuration. The other params are pretty safe as default. Of course the trick of using carrierroute is how you populate the tables in the DB, but you will have enough example in the web page I referred above. Please get back with a more specific question after you try using the module.
Cheers Marius
marius zbihlei writes:
For carrierroute you can have blacklist capabilities as well.
regarding white/blacl listing, that is trivial to implement generically using dialplan module. i suspect that neither carrierroute or userblacklist module provides any added value on top of dialplan module and may be less powerful for the task.
-- juha