[SR-Users] Query in LCR
Sunil More
sunil.more64s at gmail.com
Thu Sep 7 07:11:27 CEST 2017
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 <logeshwarangs at gmail.com>
wrote:
> Input Please
>
>
>
> Thanks & Kind Regards,
> *Logeshwaran G*
>
> *"Be Hunger, Stay Foolish"*
>
> On Wed, Sep 6, 2017 at 4:07 PM, Logeshwaran G <logeshwarangs at gmail.com>
> wrote:
>
>> 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 value inside the load_gws(lcr_id) Dynamically, Is
>> it Possible , Please Guide me.
>>
>>
>> Thanks & Kind Regards,
>> *Logeshwaran G*
>>
>> *"Be Hunger, Stay Foolish"*
>>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170907/a1300d3a/attachment.html>
More information about the sr-users
mailing list