Hi Victor,
On 05/21/2013 03:03 AM, Victor V. Kustov wrote:
Can I use memcached for usrloc db?
In principle, no; memcache is not supported as a database backend for
any module. The API plumbing is just not there.
However, it seems to me if you really, *really* wanted to, you could
implement a registrar manually, bypassing registrar + usrloc. You'd be
doing a lot of manual contact management that usrloc takes care of, though.
Why would you want to do that, though? If you desire the speed of a
memory-only lookup table, you can just use usrloc with db_mode 0:
http://kamailio.org/docs/modules/4.0.x/modules/usrloc.html#idp6002056
No database storage required at all.
If you really want to store contacts in memory but are not content with
usrloc's memory-only mode because you want persistence across Kamailio
restarts, there are numerous things you could do. You could set up an
in-memory table in MySQL, or a PostgreSQL "tablespace" that is
physically located on a filesystem mounted on a tmpfs filesystem and/or
ramdisk. You could also just have a separate registrar server using Path.
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web:
http://www.evaristesys.com/,
http://www.alexbalashov.com/