Re: [SR-Users] Query in LCR

2017-09-06 Thread Sunil More
Hello , You can run a query to mysql like below to choose random lcr_id and then input it to load_gws query : select lcr_id from lcr_table order by rand() limit 1 Thanking You, Sunil More Ph : 9503338275 On Thu, Sep 7, 2017 at 9:41 AM, Logeshwaran G wrote: > Input

Re: [SR-Users] Query in LCR

2017-09-06 Thread Logeshwaran G
Input Please Thanks & Kind Regards, *Logeshwaran G* *"Be Hunger, Stay Foolish"* On Wed, Sep 6, 2017 at 4:07 PM, Logeshwaran G wrote: > Hi, > > I am handling Two Different Account holders and Two Different Gateways > with the different lcr_ids: > > id :1 > lcr_id:1 >

[SR-Users] Query in LCR

2017-09-06 Thread Logeshwaran G
Hi, I am handling Two Different Account holders and Two Different Gateways with the different lcr_ids: id :1 lcr_id:1 gw_name:car1 ip_addr : 1.2.3.4 id :2 lcr_id:2 gw_name:car2 ip_addr : 1.2.5.3 In kamailio config file I am using load_gws(1), Here Comes my doubt, I need to Pass the lcr_id

Re: [SR-Users] Query in LCR Rule Target Table:

2017-08-29 Thread Logeshwaran G
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)

[SR-Users] Query in LCR Rule Target Table:

2017-08-29 Thread Logeshwaran G
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 |