Hi All,
I have created an lcr_gw, lcr_rule and lcr_rule_target tables according to my convenient .
I have doubt on kamailio.cfg, whether I need to add the below params in cfg file??
# ----- lcr params ----- #modparam("lcr","db_url","DBURL") #modparam("lcr", "lcr_gw_table","gw") #modparam("lcr", "id_column", "row_id") #modparam("lcr", "lcr_id_column", "lcr_identifier") #modparam("lcr", "gw_name_column", "name") #modparam("lcr", "ip_addr_column", "ip") #modparam("lcr", "hostname_column", "host") #modparam("lcr", "port_column", "port") #modparam("lcr", "params_column", "parameters") #modparam("lcr", "uri_scheme_column", "uri_scheme") #modparam("lcr", "transport_column", "trans") #modparam("lcr", "strip_column", "strip_count") #modparam("lcr", "prefix_column", "number_prefix") #modparam("lcr", "tag_column", "gw_tag") #modparam("lcr", "flags_column", "gw_flags") #modparam("lcr", "defunct_column", "defunct_until") #modparam("lcr", "lcr_rule_table", "rules") #modparam("lcr", "prefix_column", "number_prefix") #modparam("lcr", "from_uri_column", "caller_uri") #modparam("lcr", "request_uri_column", "callee_uri") #modparam("lcr", "stopper_column", "stop") #modparam("lcr", "enabled_column", "in_use") #modparam("lcr", "lcr_rule_target_table", "rules") #modparam("lcr", "rule_id_column", "rule") #modparam("lcr", "gw_id_column", "gw") #modparam("lcr", "priority_column", "priority") #modparam("lcr","weight_column", "target_weight") #modparam("lcr", "gw_uri_avp", "$avp(i:709)") #modparam("lcr", "ruri_user_avp", "$avp(i:500)")
Please guide me.
Thanks in Advance, Logeshwaran G
You typically only need to include the modparam configuration entries that either don't have a default value, or where you want to override the default.
-A
Thank you!! Getting Error while executing kamailio,
0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has not been defined 0(16640) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so)
On Wed, Jul 26, 2017 at 5:22 PM, Anthony Joseph Messina < amessina@messinet.com> wrote:
You typically only need to include the modparam configuration entries that either don't have a default value, or where you want to override the default.
-A
-- Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery F9B6 560E 68EA 037D 8C3D D1C9 FF31 3BDB D9D8 99B6
On Wednesday, July 26, 2017 6:21:29 AM CDT Logeshwaran G wrote:
Hi All,
I have created an lcr_gw, lcr_rule and lcr_rule_target tables according
to
my convenient .
I have doubt on kamailio.cfg, whether I need to add the below params in
cfg
file??
# ----- lcr params ----- #modparam("lcr","db_url","DBURL") #modparam("lcr", "lcr_gw_table","gw") #modparam("lcr", "id_column", "row_id") #modparam("lcr", "lcr_id_column", "lcr_identifier") #modparam("lcr", "gw_name_column", "name") #modparam("lcr", "ip_addr_column", "ip") #modparam("lcr", "hostname_column", "host") #modparam("lcr", "port_column", "port") #modparam("lcr", "params_column", "parameters") #modparam("lcr", "uri_scheme_column", "uri_scheme") #modparam("lcr", "transport_column", "trans") #modparam("lcr", "strip_column", "strip_count") #modparam("lcr", "prefix_column", "number_prefix") #modparam("lcr", "tag_column", "gw_tag") #modparam("lcr", "flags_column", "gw_flags") #modparam("lcr", "defunct_column", "defunct_until") #modparam("lcr", "lcr_rule_table", "rules") #modparam("lcr", "prefix_column", "number_prefix") #modparam("lcr", "from_uri_column", "caller_uri") #modparam("lcr", "request_uri_column", "callee_uri") #modparam("lcr", "stopper_column", "stop") #modparam("lcr", "enabled_column", "in_use") #modparam("lcr", "lcr_rule_target_table", "rules") #modparam("lcr", "rule_id_column", "rule") #modparam("lcr", "gw_id_column", "gw") #modparam("lcr", "priority_column", "priority") #modparam("lcr","weight_column", "target_weight") #modparam("lcr", "gw_uri_avp", "$avp(i:709)") #modparam("lcr", "ruri_user_avp", "$avp(i:500)")
Please guide me.
Thanks in Advance, Logeshwaran G
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Logeshwaran G writes:
Getting Error while executing kamailio,
0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has not been defined
Read lcr/README carefully before trying to use the module.
-- Juha
-----------------------------------------------
3.28. gw_uri_avp (AVP string)
Internal AVP that load_gws() function uses to store information of matching gateways.
There is NO default value, thus this variable must be defined in sip-router.cfg.
Getting an Error: 0(23634) INFO: rr [rr_mod.c:175]: mod_init(): outbound module not available 0(23634) ERROR: <core> [db.c:203]: db_bind_mod(): Module db_DBURL not found. Missing loadmodule? 0(23634) ERROR: lcr [lcr_mod.c:389]: lcr_db_bind(): unable to bind to the database module 0(23634) ERROR: lcr [lcr_mod.c:430]: mod_init(): no database module found 0(23634) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so)
I am not sure what else need to be do?
Kindly Guid me to solve this issue, I am an begineer
On Wed, Jul 26, 2017 at 5:52 PM, Juha Heinanen jh@tutpro.com wrote:
Logeshwaran G writes:
Getting Error while executing kamailio,
0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has not been defined
Read lcr/README carefully before trying to use the module.
-- Juha
3.28. gw_uri_avp (AVP string)
Internal AVP that load_gws() function uses to store information of matching gateways.
There is NO default value, thus this variable must be defined in sip-router.cfg.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I need to place the call outside using lcr ,
Please help me with some example documents for lcr kamailio.cfg.
On Thu, Jul 27, 2017 at 11:01 AM, Logeshwaran G logeshwarangs@gmail.com wrote:
Getting an Error: 0(23634) INFO: rr [rr_mod.c:175]: mod_init(): outbound module not available 0(23634) ERROR: <core> [db.c:203]: db_bind_mod(): Module db_DBURL not found. Missing loadmodule? 0(23634) ERROR: lcr [lcr_mod.c:389]: lcr_db_bind(): unable to bind to the database module 0(23634) ERROR: lcr [lcr_mod.c:430]: mod_init(): no database module found 0(23634) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so)
I am not sure what else need to be do?
Kindly Guid me to solve this issue, I am an begineer
On Wed, Jul 26, 2017 at 5:52 PM, Juha Heinanen jh@tutpro.com wrote:
Logeshwaran G writes:
Getting Error while executing kamailio,
0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has not been defined
Read lcr/README carefully before trying to use the module.
-- Juha
3.28. gw_uri_avp (AVP string)
Internal AVP that load_gws() function uses to store information of matching gateways.
There is NO default value, thus this variable must be defined in sip-router.cfg.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Spanish HowTo:
https://voztovoice.org/?q=node/1491
English HowTo:
http://www.open-voip.org/index.php?title=Kamailio_LCR
https://dopensource.com/2014/12/16/least-cost-routing-with-kamailio-v4-1/
http://www.amitnepal.com/using-lcr-with-kamailio/
Regards
El 27/07/2017 a las 03:18, Logeshwaran G escribió:
I need to place the call outside using lcr ,
Please help me with some example documents for lcr kamailio.cfg.
On Thu, Jul 27, 2017 at 11:01 AM, Logeshwaran G <logeshwarangs@gmail.com mailto:logeshwarangs@gmail.com> wrote:
Getting an Error: 0(23634) INFO: rr [rr_mod.c:175]: mod_init(): outbound module not available 0(23634) ERROR: <core> [db.c:203]: db_bind_mod(): Module db_DBURL not found. Missing loadmodule? 0(23634) ERROR: lcr [lcr_mod.c:389]: lcr_db_bind(): unable to bind to the database module 0(23634) ERROR: lcr [lcr_mod.c:430]: mod_init(): no database module found 0(23634) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so) I am not sure what else need to be do? Kindly Guid me to solve this issue, I am an begineer On Wed, Jul 26, 2017 at 5:52 PM, Juha Heinanen <jh@tutpro.com <mailto:jh@tutpro.com>> wrote: Logeshwaran G writes: > Getting Error while executing kamailio, > > 0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has not > been defined Read lcr/README carefully before trying to use the module. -- Juha ----------------------------------------------- 3.28. gw_uri_avp (AVP string) Internal AVP that load_gws() function uses to store information of matching gateways. There is NO default value, thus this variable must be defined in sip-router.cfg. _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thank you!
LCR is Working fine, But while calling to the local user in subscriber database, I am getting an error like "Too many hops"
Whether I need to change something in location module.
Scenario: =========
if subscriber is from local db the call should not go to lcr gateway, if subscriber is not in the local db, the call should go to the lcr gateway.
On Thu, Jul 27, 2017 at 7:17 PM, Annus Fictus annusfictus@gmail.com wrote:
Spanish HowTo:
https://voztovoice.org/?q=node/1491
English HowTo:
http://www.open-voip.org/index.php?title=Kamailio_LCR
https://dopensource.com/2014/12/16/least-cost-routing-with-kamailio-v4-1/
http://www.amitnepal.com/using-lcr-with-kamailio/
Regards
El 27/07/2017 a las 03:18, Logeshwaran G escribió:
I need to place the call outside using lcr ,
Please help me with some example documents for lcr kamailio.cfg.
On Thu, Jul 27, 2017 at 11:01 AM, Logeshwaran G logeshwarangs@gmail.com wrote:
Getting an Error: 0(23634) INFO: rr [rr_mod.c:175]: mod_init(): outbound module not available 0(23634) ERROR: <core> [db.c:203]: db_bind_mod(): Module db_DBURL not found. Missing loadmodule? 0(23634) ERROR: lcr [lcr_mod.c:389]: lcr_db_bind(): unable to bind to the database module 0(23634) ERROR: lcr [lcr_mod.c:430]: mod_init(): no database module found 0(23634) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so)
I am not sure what else need to be do?
Kindly Guid me to solve this issue, I am an begineer
On Wed, Jul 26, 2017 at 5:52 PM, Juha Heinanen jh@tutpro.com wrote:
Logeshwaran G writes:
Getting Error while executing kamailio,
0(16640) ERROR: lcr [lcr_mod.c:479]: mod_init(): AVP gw_uri_avp has
not
been defined
Read lcr/README carefully before trying to use the module.
-- Juha
3.28. gw_uri_avp (AVP string)
Internal AVP that load_gws() function uses to store information of matching gateways.
There is NO default value, thus this variable must be defined in sip-router.cfg.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users