|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
Problem in configuring LCR moduleHi there,
I am a first time user of Kamilio 1.5. We are trying to configure the LCR, we get an error in the syslog. The error in the syslog is: Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:lcr:mod_init: AVP fr_inv_timer_avp has not been defined
Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:init_mod: failed to initialize module lcr
Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:main: error while initializing modules We have already configured FR_inv_timer_avp parameter like this in the Kamilio.cfg: modparam("tm", "fr_inv_timer_avp", "$avp(i:70") The "tm" module is already loaded in the Kamilio.cfg. Please guide, where we are making problems? _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleYou cannot submit pseudovariables as values to module parameters.
They must be static string literals only. Masoom Alam wrote: > Hi there, > > I am a first time user of Kamilio 1.5. We are trying to configure the > LCR, we get an error in the syslog. > > The error in the syslog is: > > Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:lcr:mod_init: AVP > fr_inv_timer_avp has not been defined > Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:init_mod: failed to > initialize module lcr > Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:main: error while > initializing modules > > We have already configured FR_inv_timer_avp parameter like this in the > Kamilio.cfg: > modparam("tm", "fr_inv_timer_avp", "$avp(i:70") > > The "tm" module is already loaded in the Kamilio.cfg. > > Please guide, where we are making problems? > > > > > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Kamailio (OpenSER) - Users mailing list > Users@... > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleBTW, are you loading avpops as well prior to loading lcr? That is the
only reason I can think why this would not be working based on the log messages you have pasted. Alex Balashov wrote: > You cannot submit pseudovariables as values to module parameters. They > must be static string literals only. > > Masoom Alam wrote: > >> Hi there, >> >> I am a first time user of Kamilio 1.5. We are trying to configure the >> LCR, we get an error in the syslog. >> >> The error in the syslog is: >> >> Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:lcr:mod_init: AVP >> fr_inv_timer_avp has not been defined >> Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:init_mod: failed >> to initialize module lcr >> Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:main: error while >> initializing modules >> >> We have already configured FR_inv_timer_avp parameter like this in the >> Kamilio.cfg: >> modparam("tm", "fr_inv_timer_avp", "$avp(i:70") >> >> The "tm" module is already loaded in the Kamilio.cfg. >> >> Please guide, where we are making problems? >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Kamailio (OpenSER) - Users mailing list >> Users@... >> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users > > -- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleOn Fri, Nov 6, 2009 at 9:16 PM, Masoom Alam <masoom.alam@...> wrote: Hi there, The complaint is from module lcr, not tm. I do this in my cfg: modparam("lcr|tm", "fr_inv_timer_avp", "$avp(i:704)") _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleMany Thanks Alex and mayamatakeshi for the prompt response.
I did the setting shown by the mayamatakeshi but get the following error again: CRITICAL:lcr:mod_init: failed to reload gateways and routes
Nov 6 15:30:20 kam /sbin/kamailio[5571]: ERROR:core:init_mod: failed to initialize module lcr Nov 6 15:30:20 kam /sbin/kamailio[5571]: ERROR:core:main: error while initializing modules Alex: Yes, we have the avpops loaded before the lcr module Any hint? On Fri, Nov 6, 2009 at 4:29 AM, mayamatakeshi <mayamatakeshi@...> wrote:
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleHi,
2009/11/6 Masoom Alam <masoom.alam@...> Hi there, Do you see fr_inv_timer_avp listed here? _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleOn Fri, Nov 6, 2009 at 9:43 PM, Laszlo <laszlo@...> wrote: Hi, Sorry, Laszlo is right. I checked my installation: i'm still running Kamailio 1.4. LCR param fr_inv_timer_avp doesnt' exist anymore from 1.5 and up. _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleMasoom Alam writes:
> I did the setting shown by the mayamatakeshi but get the following error > again: > > CRITICAL:lcr:mod_init: failed to reload gateways and routes > Nov 6 15:30:20 kam /sbin/kamailio[5571]: ERROR:core:init_mod: failed to > initialize module lcr > Nov 6 15:30:20 kam /sbin/kamailio[5571]: ERROR:core:main: error while > initializing modules are you sure there was no error message in syslog before the first one? i just checked lcr sources and couldn't find a place where there is no error produced before the first one. anyway, something went wrong during reload or gw or lcr table from db. check your tables. > Alex: Yes, we have the avpops loaded before the lcr module lcr module does not depend on avpops module. -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleHi,
I have tried, but nothing works. I am attaching the cfg file, kindly please help me. Regards, MM Alam # # sample config file to be used with nathelper/rtpproxy # # start RTPProxy with: rtpproxy -l your_public_ip -s udp:localhost:8899 # # ----------- global configuration parameters ------------------------ debug=7 # debug level (cmd line: -dddddddddd) fork=yes log_stderror=no # (cmd line: -E) /* Uncomment these lines to enter debugging mode fork=no log_stderror=no */ check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) port=5060 children=4 # --- module loading mpath="//lib64/kamailio/modules/" loadmodule "mi_fifo.so" loadmodule "db_mysql.so" loadmodule "sl.so" loadmodule "tm.so" loadmodule "rr.so" loadmodule "maxfwd.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "textops.so" loadmodule "nathelper.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "avpops.so" loadmodule "pv.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "uri_db.so" loadmodule "domain.so" loadmodule "permissions.so" loadmodule "group.so" loadmodule "lcr.so" loadmodule "acc.so" # --- setting module parameters ####avpops parameter modparam("avpops","db_url","mysql://databaseuser:blabla@localhost/openser") modparam("avpops", "avp_table", "usr_preferences") # -- mi_fifo params -- modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo") ####tm module modparam("tm", "fr_timer",10) modparam("tm", "fr_inv_timer", 200) modparam("tm", "wt_timer", 10) modparam("tm", "fr_inv_timer_avp", "$avp(i:25)") #modparam("tm", "fr_inv_timer_avp", "ram("tm", "fr_inv_timer_avp", "$avp(i:704)")25") #modparam("tm", "fr_inv_timer_avp", "s:hg_invite_timer") modparam("uri_db|usrloc|auth_db|permissions","db_url","mysql://databaseuser:blabla@.../openser") # -- usrloc params -- modparam("usrloc", "db_mode", 2) modparam("usrloc", "nat_bflag", 6) # -- registrar params -- modparam("registrar|nathelper", "received_avp", "$avp(i:42)") # -- auth params -- modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "password") # -- rr params -- modparam("rr", "enable_full_lr", 1) # -- nathelper modparam("nathelper", "rtpproxy_sock", "udp:localhost:8899") modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 1) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@...") # --- Permissions module modparam("permissions", "db_mode", 1) modparam("permissions", "trusted_table", "trusted") ##lcr module ####lcr module #modparam("lcr","db_url","dbdriver://databaseuser:blabla@localhost/openser") modparam("lcr","gw_table","gw") modparam("lcr","gw_name_column","gw_name") modparam("lcr","grp_id_column","grp_id") modparam("lcr","ip_addr_column","ip_addr") modparam("lcr","hostname_column","hostname") modparam("lcr","port_column","port") modparam("lcr","uri_scheme_column","uri_scheme") modparam("lcr","transport_column","transport") modparam("lcr","strip_column","strip") modparam("lcr","tag_column","tag") modparam("lcr","weight_column","weight") modparam("lcr","flags_column","flags") modparam("lcr","lcr_table","lcr") modparam("lcr","prefix_column","prefix") modparam("lcr","from_uri_column","from_uri") modparam("lcr","priority_column","priority") modparam("lcr","gw_uri_avp", "$avp(i:709)") modparam("^auth$|lcr", "rpid_avp", "$avp(i:302)") modparam("lcr", "ruri_user_avp", "$avp(i:500)") modparam("lcr", "flags_avp", "$avp(i:712)") # --- main routing logic route{ # # # if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too many Hops"); exit; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); exit; }; # # # if (!method=="REGISTER") record_route(); ##Loose_route packets if (loose_route()) { append_hf("P-hint: rr-enforced\r\n"); route(1); }; # CANCEL processing if (is_method("CANCEL")) { if (t_check_trans()) t_relay(); exit; }; t_check_trans(); # # # if (method=="REGISTER") { route(2); } else { route(3); }; } route [1] { if (!t_relay()) { sl_reply_error(); }; exit; } route [2] { ## Register request handler if (is_uri_host_local()) { if (!www_authorize("", "subscriber")) { www_challenge("", "1"); exit; }; if (!check_to()) { sl_send_reply("403", "Forbidden"); exit; }; save("location"); exit; } else if { sl_send_reply("403", "Forbidden"); }; } route[3] { ## INVITE request handler if (is_from_local()) { if(!allow_trusted()) { if (!proxy_authorize("", "subscriber")) { proxy_challenge("","1"); exit; } else if (!check_from()) { sl_send_reply("403", "Forbidden, use From=ID"); exit; }; } else { log("Request bypassed the auth.using allow_trsuted"); }; consume_credentials(); lookup("aliases"); if (is_uri_host_local()) { # -- inbound to inbound route(10); } else { # -- onbound to outbound route(11); }; } else { lookup("aliases"); if (is_uri_host_local()) { route(12) ; } else { route (13); }; }; } route [4] { rewritehostport("65.39.213.204"); route(1); } route [10] { append_hf("p-hist: inbound -> inbound \r\n"); if (uri=~"^sip:[2-9][0-9] {6}@") { if (is_user_in("credentials","local")) { route(4); exit; } else { sl_send_reply("403", "No permissions for local calls"); exit; }; }; if (uri=~"^sip:1[0-9]*@") { if (is_user_in("credentials","ld")) { route(4); exit; } else { sl_send_reply("403", "No permissions for long distance"); exit; }; }; if (uri=~"^sip:011[0-9]*@") { if (is_user_in("credentials", "int")) { route(4); exit; } else { sl_send_reply("403", "No permissions for international calls"); }; }; if (!lookup("location")) { sl_send_reply("404", "not Found"); exit; }; route(1); } route[11] { append_hf("P-hist: inbound-> ourbound \r\n"); route(1); } route[12] { lookup("aliases"); if (!lookup("location")) { sl_send_reply("404", "Not Found"); exit; }; route(1); } route[13] { append_hf("P-hint: Outbound-> inbound \r\n"); sl_send_reply("403", "Forbidden"); exit; } #failure_route[1] { # if(!next_gw()) { # t_reply("503", "Services not available, no more gateways"); # exit; ## } # # t_on_failure("1"); # t_relay(); # } _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR modulemodparam("lcr", "fr_inv_timer_avp",
"$avp(s:fr_inv_timer_avp)") try to add in lcr I have kamailio 1.5.0 and had same problem during initial
startup From:
users-bounces@... [mailto:users-bounces@...] On
Behalf Of Masoom Alam Hi there, Nov 6 15:12:09 kam /sbin/kamailio[5396]: ERROR:core:init_mod:
failed to initialize module lcr Nov 6 15:12:09 kam
/sbin/kamailio[5396]: ERROR:core:main: error while initializing modules
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR module> modparam("lcr", "fr_inv_timer_avp", "$avp(s:fr_inv_timer_avp)") > > try to add in lcr > > I have kamailio 1.5.0 and had same problem during initial startup > _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleHenning Westerholt writes:
> just guessing, but do also load the "pv" module before the lcr > module? I think this is needed in 1.5 for all pseudo-variables to > work. henning, my understanding is that pv module only exports some pvs and transformations and lcr module does not depend on it by any means. -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleYes I have pv.so loaded before lcr.so From: Henning Westerholt
[mailto:henning.westerholt@...] On
Freitag, 6. November 2009, Denis Putyato wrote: Hi, just
guessing, but do also load the "pv" module before the lcr module? I
think this is needed in 1.5 for all pseudo-variables to work. Regards, Henning
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Problem in configuring LCR moduleDenis Putyato writes:
> Yes I have pv.so loaded before lcr.so i forgot already, what is your problem and how it shows up? in which version of k? -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |