<div dir="ltr"><div>I got it Alex!<br><br></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div class="gmail_quote">On Tue, Aug 29, 2017 at 2:52 PM, Logeshwaran G <span dir="ltr"><<a href="mailto:logeshwarangs@gmail.com" target="_blank">logeshwarangs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Thanks Alex,<br><br></div>But I got little confused:<br><br></div>I have my lcr config as below:<br># ----- lcr params -----<br>modparam("lcr","db_url",DBURL)<br>modparam("lcr", "gw_uri_avp", "$avp(i:709)")<br>modparam("lcr", "ruri_user_avp", "$avp(i:500)")<br>modparam("lcr", "flags_avp", "$avp(i:712)")<br>modparam("lcr", "lcr_count", 10)<br>modparam("lcr", "priority_ordering", 1)<br><br></div>I need to Place the call to the number starts with 99991 based on the priority and weight:<br><br></div>There are two gateways I have in my table:<br><br>| id | lcr_id | gw_name  | ip_addr        | hostname | port | params | uri_scheme | transport | strip | prefix | tag  | flags | defunct | status | createdBy | createdDate | modifiedBy | modifiedDate |<br>+----+--------+----------+----<wbr>------------+----------+------<wbr>+--------+------------+-------<wbr>----+-------+--------+------+-<wbr>------+---------+--------+----<wbr>-------+-------------+--------<wbr>----+--------------+<br>|  1 |      1 | Carrier1 | 1.2.3.4| NULL     | 5060 | NULL   |          1 |         1 |     0 | NULL   | NULL |     1 |    NULL |      1 |      NULL | NULL        |       NULL | NULL         |<br>|  3 |      1 | Carrier2 | 5.6.7.8   | NULL     | 5060 | NULL   |          1 |         1 |     0 | NULL   | NULL |     1 |    NULL |      0 |      NULL | NULL        |       NULL | NULL         |<br>+----+--------+--<br><br></div>In Rule table also I have mentioned for 99991:<br><br>|  7 |      1 | 99991  | NULL     | NULL        |       1 |       1 |      0<br><br></div>In Rule target table:<span class=""><br><br>| id | lcr_id | rule_id | gw_id | priority | weight | status <br><br></span>|  5 |      1 |       7 |     3 |        0 |      1 |      0<br><br> 6 |      1 |       7 |     1 |        1 |      1 |      0<br><br></div>I have mentioned two different gateways for the same 99991 call placement, :<br><br></div>Is it possible to place the call to both gateways based on the Priority and Weight?? If so , Input please<br></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_-4267053475743432544gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Tue, Aug 29, 2017 at 2:25 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
This is explained fairly adequately in the documentation for the lcr<br>
module:<br>
<br>
<a href="https://kamailio.org/docs/modules/5.0.x/modules/lcr.html" rel="noreferrer" target="_blank">https://kamailio.org/docs/modu<wbr>les/5.0.x/modules/lcr.html</a><br>
<br>
-- Alex<br>
<div><div class="m_-4267053475743432544h5"><br>
On Tue, Aug 29, 2017 at 02:23:50PM +0530, Logeshwaran G wrote:<br>
<br>
> Hi,<br>
><br>
> I need to know What is the Purpose of Priority and Weight column in<br>
> Lcr_rule_target table:<br>
><br>
> Example:<br>
><br>
> | id | lcr_id | rule_id | gw_id | priority | weight | status | createdBy |<br>
> createdDate | modifiedBy | modifiedDate |<br>
> +----+--------+---------+-----<wbr>--+----------+--------+-------<wbr>-+-----------+-------------+--<wbr>----------+--------------+<br>
> |  1 |      1 |       1 |     1 |        1 |      1 |      1 |      NULL |<br>
> NULL        |       NULL | NULL         |<br>
> |  2 |      1 |       4 |     1 |        1 |      2 |      1 |      NULL |<br>
> NULL        |       NULL | NULL<br>
><br>
> Kindly someone please Guide me.<br>
><br>
> Thanks & Kind Regards,<br>
> Logeshwaran G<br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<span class="m_-4267053475743432544HOEnZb"><font color="#888888"><br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>