Lcr is working fine but Why would i get LCR commands disabled ?
kamctl lcr reload ERROR: command disabled--
Thank You Amit Nepal Systems Administrator Phoenix Internet Phone: 602-385-0731 602-234-0917#112 http://www.phoenixinternet.net
-- command 'lcr' - manage least cost routes (lcr)
lcr show_gws....... show database gateways lcr show_routes.... show database routes lcr dump_gws....... show in memory gateways lcr dump_routes.... show in memory routes lcr reload ........ reload lcr gateways and routes lcr eval_weights .. evaluates probability for given GW's weights
but when i issue #kamctl lcr show_gws , it says command disabled.
Thank You Amit Nepal Systems Administrator Phoenix Internet Phone: 602-385-0731 602-234-0917#112 http://www.phoenixinternet.net
On 2/23/2011 7:39 PM, Juha Heinanen wrote:
Hi Juha, I am using kamailio 3.1.2.
Thank You Amit Nepal Systems Administrator Phoenix Internet Phone: 602-385-0731 602-234-0917#112 http://www.phoenixinternet.net
On 2/24/2011 2:16 PM, Juha Heinanen wrote:
Amit Nepal writes:
I am using kamailio 3.1.2.
i don't use myself kamctl. i use sip router ctl that i call myself sip-proxy_ctl and its help tells me about lcr commands. perhaps someone else is able to tell you, what this command is called by default.
-- juha
root@rautu:~# sip-proxy_ctl help cfg.commit cfg.diff cfg.get cfg.help cfg.list cfg.rollback cfg.set_delayed_int cfg.set_delayed_string cfg.set_now_int cfg.set_now_string core.arg core.echo core.flags core.info core.kill core.printi core.prints core.ps core.pwd core.sctp_info core.sctp_options core.shmmem core.tcp_info core.tcp_options core.udp4_raw_info core.uptime core.version ctl.connections ctl.listen ctl.who dns.add_a dns.add_aaaa dns.add_srv dns.debug dns.debug_all dns.delete_a dns.delete_aaaa dns.delete_all dns.delete_all_force dns.delete_cname dns.delete_ebl dns.delete_naptr dns.delete_ptr dns.delete_srv dns.delete_txt dns.lookup dns.mem_info dns.view domain.dump domain.reload dst_blacklist.add dst_blacklist.debug dst_blacklist.delete_all dst_blacklist.mem_info dst_blacklist.view htable.dump lcr.dump_gws lcr.dump_rules lcr.reload mi mi_dg mi_fifo mi_xmlrpc sl.stats system.listMethods system.methodHelp system.methodSignature tls.info tls.list tls.options tls.reload tm.cancel tm.hash_stats tm.reply tm.stats tm.t_uac_start tm.t_uac_wait ul.dump alias: ps alias: list alias: ls alias: server alias: serversion alias: who alias: listen alias: dns_mem_info alias: dns_debug alias: dns_debug_all alias: dst_blacklist_mem_info alias: dst_blacklist_debug builtin: ? builtin: help builtin: version builtin: quit builtin: exit builtin: warranty builtin: license
Hi,
Juha - you said last year, that the kamctl-LCR-commands should be DISABLED for SR 3.1.x, because the kamctl script was not yet adapted to your new DB structure for LCR tables.
http://lists.sip-router.org/pipermail/sr-dev/2010-October/009356.html http://lists.sip-router.org/pipermail/sr-dev/2010-October/009358.html
AFAIK this has not yet been changed since then.
Conclusion: with the current stable version you can not use LCR commands with kamctl. You have to insert DB entries manually or use SIREMIS.
regards,
Klaus
Hi, Thank you very much for the information. But do we have to restart kamailio in order to have the effect ?
Thank You Amit Nepal Systems Administrator Phoenix Internet Phone: 602-385-0731 602-234-0917#112 http://www.phoenixinternet.net
On 2/25/2011 2:02 AM, Klaus Feichtinger wrote: