<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>
<div><style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<br>
<div><style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">Thanks Juha<br>I populated the lcr tables by hand. This is how they look now, I have 2 lcr_ids [1 and 2], each instance has its own gw. And each instance has its own prefix to match for [4444 and 5555].<br>The idea is that a call comes in with R-URI 444413051234567, it should match the lcr_id= 200, then it should go out using gw 192.168.169.200 etc<br><br>mysql> select * from lcr_gw;<br>+----+--------+------------+-----------------+-------------------+------+--------+------------+-----------+-------+------+-------+---------+<br>| id | lcr_id | gw_name | ip_addr | hostname | port | params | uri_scheme | transport | strip | tag | flags | defunct |<br>+----+--------+------------+-----------------+-------------------+------+--------+------------+-----------+-------+------+-------+---------+<br>| 1 | 200 | switchvox | 192.168.169.200 | pbx1.mydomain.com | 5060 | none | 1 | 1 | 0 | | 0 | 0 |<br>| 2 | 201 | switchvox2 | 192.168.169.201 | pbx1.mydomain.net | 5060 | none | 1 | 1 | 0 | | 0 | 0 |<br>+----+--------+------------+-----------------+-------------------+------+--------+------------+-----------+-------+------+-------+---------+<br>mysql> select * from lcr_rule;<br>+----+--------+--------+----------+---------+---------+<br>| id | lcr_id | prefix | from_uri | stopper | enabled |<br>+----+--------+--------+----------+---------+---------+<br>| 1 | 200 | 4444 | | 0 | 1 |<br>| 2 | 201 | 5555 | | 0 | 1 |<br>+----+--------+--------+----------+---------+---------+<br>mysql> select * from lcr_rule_target;<br>+----+--------+---------+-------+----------+--------+<br>| id | lcr_id | rule_id | gw_id | priority | weight |<br>+----+--------+---------+-------+----------+--------+<br>| 1 | 200 | 1 | 1 | 5 | 1 |<br>| 2 | 201 | 2 | 2 | 5 | 1 |<br>+----+--------+---------+-------+----------+--------+<br><br>Then I tried the sercmd commands to reload and dump and I do not see the contents o the screen. Is this how is supposed to work now?. How do I know that the new values are being loaded into memory w/o restarting kamailio?<br><br><pre><i>I am trying to port our setup from kamailio 1.4.3 to 3.1.4 and I see<br></i>><i> huge differences on the LCR module.<br></i><br>there is a script somewhere (read wiki) that upgrades the tables.<br><br>><i> I have these main questions:<br></i>><i> <br></i>><i> 1- does lcr_id replaces the grp_id?<br></i><br>not really. lcr_ids denote independent lcr instances.<br><br>><i> 2- what happened to the fifo commands to add gws etc:<br></i><br>fifo commands to manipulate lcr tables are not supported by me.<br><br>-- juha<br></pre><br><br><div>
<div> </div></div><br><br><div><hr id="ecxstopSpelling">From: fborot@hotmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Questions about LCR module<br>Date: Mon, 27 Jun 2011 17:23:05 -0400<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<br>I am trying to port our setup from kamailio 1.4.3 to 3.1.4 and I see huge differences on the LCR module.<br>I have these main questions:<br><br>1- does lcr_id replaces the grp_id?<br>2- what happened to the fifo commands to add gws etc:<br><br> lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> <flags> <tag> <strip><br> ............... add a gateway with flags, tag and strip ............<br> ................(flags, tag, and strip are optional arguments) .....<br> lcr rmgw <gw_name> ..........................................................<br> ............... delete a gateway<br> lcr addroute <prefix> <from> <grp_id> <prio> .................................<br> .............. add a route ( use '' to match anything in <from> )<br> lcr rmroute <prefix> <from> <grp_id> <prio> .................................<br> .............. delete a route<br><br><br>3- it looks like the kamctl fifo lcr reload can not be used anymore, instead I found that there is a sercmd command that can be used to "show" and "reload" only the lcr tables<br><br>What would be the best way to use this module on this version?<br><br>Any help/hint would be greatly appreciated.<br>thank you<br><br>fborot<br><br><br><br><br><div>
<div> </div></div>                                            </div></div></div></div>                                            </div></div>                                            </div></div>                                            </div></body>
</html>