Thanks Alex,
But I got little confused:
I have my lcr config as below: # ----- lcr params ----- modparam("lcr","db_url",DBURL) modparam("lcr", "gw_uri_avp", "$avp(i:709)") modparam("lcr", "ruri_user_avp", "$avp(i:500)") modparam("lcr", "flags_avp", "$avp(i:712)") modparam("lcr", "lcr_count", 10) modparam("lcr", "priority_ordering", 1)
I need to Place the call to the number starts with 99991 based on the priority and weight:
There are two gateways I have in my table:
| id | lcr_id | gw_name | ip_addr | hostname | port | params | uri_scheme | transport | strip | prefix | tag | flags | defunct | status | createdBy | createdDate | modifiedBy | modifiedDate | +----+--------+----------+----------------+----------+------+--------+------------+-----------+-------+--------+------+-------+---------+--------+-----------+-------------+------------+--------------+ | 1 | 1 | Carrier1 | 1.2.3.4| NULL | 5060 | NULL | 1 | 1 | 0 | NULL | NULL | 1 | NULL | 1 | NULL | NULL | NULL | NULL | | 3 | 1 | Carrier2 | 5.6.7.8 | NULL | 5060 | NULL | 1 | 1 | 0 | NULL | NULL | 1 | NULL | 0 | NULL | NULL | NULL | NULL | +----+--------+--
In Rule table also I have mentioned for 99991:
| 7 | 1 | 99991 | NULL | NULL | 1 | 1 | 0
In Rule target table:
| id | lcr_id | rule_id | gw_id | priority | weight | status
| 5 | 1 | 7 | 3 | 0 | 1 | 0
6 | 1 | 7 | 1 | 1 | 1 | 0
I have mentioned two different gateways for the same 99991 call placement, :
Is it possible to place the call to both gateways based on the Priority and Weight?? If so , Input please
Thanks & Kind Regards, Logeshwaran G
On Tue, Aug 29, 2017 at 2:25 PM, Alex Balashov abalashov@evaristesys.com wrote:
Hello,
This is explained fairly adequately in the documentation for the lcr module:
https://kamailio.org/docs/modules/5.0.x/modules/lcr.html
-- Alex
On Tue, Aug 29, 2017 at 02:23:50PM +0530, Logeshwaran G wrote:
Hi,
I need to know What is the Purpose of Priority and Weight column in Lcr_rule_target table:
Example:
| id | lcr_id | rule_id | gw_id | priority | weight | status | createdBy
|
createdDate | modifiedBy | modifiedDate | +----+--------+---------+-------+----------+--------+-------
-+-----------+-------------+------------+--------------+
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | NULL
|
NULL | NULL | NULL | | 2 | 1 | 4 | 1 | 1 | 2 | 1 | NULL
|
NULL | NULL | NULL
Kindly someone please Guide me.
Thanks & Kind Regards, Logeshwaran G
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users