[SR-Users] Dispatcher caches IP

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 11 09:34:14 CEST 2014


On 08/08/14 18:39, Paul Belanger wrote:
> On Fri, Aug 8, 2014 at 2:21 AM, Daniel-Constantin Mierla
> <miconda at gmail.com> wrote:
>> There is no db-only for dispatcher, you have to do reload.
>>
>> If you don't need keepalive mechanism, perhaps you can try loading the
>> addresses from database with sqlops and do the dispatching algorithm via
>> config file only.
>>
> I wonder what would be needed to implement some sort of TTL for the
> dispatcher cache.  Do any of the other modules implement TTL in any
> fashion for DB queries?
>
That can be implemented with a timer callback to reload periodically 
records from database. The function to reload is there and there are 
many examples of adding timer callbacks in modules. So if anyone is 
looking to add it in the module, should not be something comples.

Alternative, have a script run by cron.d executing kamctl dispatcher reload.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA




More information about the sr-users mailing list