Re: [OpenSIPS-Users] List of load_balancer group

2017-05-29 Thread Schneur Rosenberg
Hi Giovanni

Thanks, by using memcache I meant to do a cache_fetch and if its not
there then do avp_db_query and then use cache_store to store it for
next time, I'm going to look into the sql cacher now, it seems to be a
better solution.

Schneur

On Mon, May 29, 2017 at 5:00 PM, Giovanni Maruzzelli  wrote:
> Hello Schneur,
>
> you may also use http://www.opensips.org/html/docs/modules/2.2.x/avpops.html
> for querying the db, then cache the result with sql cacher, or do the query
> and put the result in an avp if not already there.
>
> -giovanni
>
>
> On 29 May 2017 at 14:37, Schneur Rosenberg  wrote:
>>
>> Is there anyway to get in the script a list of destinations in the
>> load_balancer group? I can get it directly from the DB but I want to
>> avoid querying the DB, I want to use it to parallel fork certain calls
>> to all servers in the load balancer group.
>>
>> I couldn't find anything in the load balancer documentations, the
>> closest thing I could find is lb_list through fifo, but I want it in
>> the script, I guess worst case I can query it and then memcache it.
>>
>> S. Rosenberg
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
>
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] List of load_balancer group

2017-05-29 Thread Giovanni Maruzzelli
Hello Schneur,

you may also use http://www.opensips.org/html/docs/modules/2.2.x/avpops.html
for querying the db, then cache the result with sql cacher, or do the query
and put the result in an avp if not already there.

-giovanni


On 29 May 2017 at 14:37, Schneur Rosenberg  wrote:

> Is there anyway to get in the script a list of destinations in the
> load_balancer group? I can get it directly from the DB but I want to
> avoid querying the DB, I want to use it to parallel fork certain calls
> to all servers in the load balancer group.
>
> I couldn't find anything in the load balancer documentations, the
> closest thing I could find is lb_list through fifo, but I want it in
> the script, I guess worst case I can query it and then memcache it.
>
> S. Rosenberg
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 

Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] List of load_balancer group

2017-05-29 Thread Schneur Rosenberg
Is there anyway to get in the script a list of destinations in the
load_balancer group? I can get it directly from the DB but I want to
avoid querying the DB, I want to use it to parallel fork certain calls
to all servers in the load balancer group.

I couldn't find anything in the load balancer documentations, the
closest thing I could find is lb_list through fifo, but I want it in
the script, I guess worst case I can query it and then memcache it.

S. Rosenberg

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users