Module: sip-router
Branch: mariuszbihlei/p_usrloc
Commit: cd9df4024eab93e987623e00f2119732a2c8ea49
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cd9df40…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Thu Jan 6 12:36:05 2011 +0200
New module p_usrloc
Description:
It is based on a usrloc module, but provides partitioned user location.
This provides 3 benefits:
1. Redundancy - if a location db is down, there is a spare running
2. Load Balancing - the module balances the entries by hashing the username(or
username@domain)
3. Failover- in case of error and recovery, it ensures that no stale contacts are
returned
More info in the READMEs(soon to come)
---
modules_k/p_usrloc/dlist.c | 161 ++++++
modules_k/p_usrloc/dlist.h | 88 ++++
modules_k/p_usrloc/hslot.c | 206 ++++++++
modules_k/p_usrloc/hslot.h | 97 ++++
modules_k/p_usrloc/location.sql | 20 +
modules_k/p_usrloc/p_usrloc.sql | 17 +
modules_k/p_usrloc/ucontact.c | 828 ++++++++++++++++++++++++++++++
modules_k/p_usrloc/ucontact.h | 219 ++++++++
modules_k/p_usrloc/udomain.c | 717 ++++++++++++++++++++++++++
modules_k/p_usrloc/udomain.h | 194 +++++++
modules_k/p_usrloc/ul_callback.c | 121 +++++
modules_k/p_usrloc/ul_callback.h | 95 ++++
modules_k/p_usrloc/ul_check.c | 196 +++++++
modules_k/p_usrloc/ul_check.h | 61 +++
modules_k/p_usrloc/ul_db.c | 440 ++++++++++++++++
modules_k/p_usrloc/ul_db.h | 100 ++++
modules_k/p_usrloc/ul_db_api.c | 75 +++
modules_k/p_usrloc/ul_db_api.h | 78 +++
modules_k/p_usrloc/ul_db_del.c | 29 +
modules_k/p_usrloc/ul_db_del.h | 30 ++
modules_k/p_usrloc/ul_db_failover.c | 351 +++++++++++++
modules_k/p_usrloc/ul_db_failover.h | 41 ++
modules_k/p_usrloc/ul_db_failover_func.c | 239 +++++++++
modules_k/p_usrloc/ul_db_failover_func.h | 40 ++
modules_k/p_usrloc/ul_db_form_query.c | 147 ++++++
modules_k/p_usrloc/ul_db_form_query.h | 48 ++
modules_k/p_usrloc/ul_db_handle.c | 639 +++++++++++++++++++++++
modules_k/p_usrloc/ul_db_handle.h | 86 +++
modules_k/p_usrloc/ul_db_ins.c | 28 +
modules_k/p_usrloc/ul_db_ins.h | 30 ++
modules_k/p_usrloc/ul_db_ins_upd.c | 28 +
modules_k/p_usrloc/ul_db_ins_upd.h | 30 ++
modules_k/p_usrloc/ul_db_layer.c | 475 +++++++++++++++++
modules_k/p_usrloc/ul_db_layer.h | 59 +++
modules_k/p_usrloc/ul_db_query.c | 112 ++++
modules_k/p_usrloc/ul_db_query.h | 31 ++
modules_k/p_usrloc/ul_db_repl.c | 28 +
modules_k/p_usrloc/ul_db_repl.h | 30 ++
modules_k/p_usrloc/ul_db_tran.c | 223 ++++++++
modules_k/p_usrloc/ul_db_tran.h | 36 ++
modules_k/p_usrloc/ul_db_upd.c | 29 +
modules_k/p_usrloc/ul_db_upd.h | 31 ++
modules_k/p_usrloc/ul_db_watch.c | 213 ++++++++
modules_k/p_usrloc/ul_db_watch.h | 38 ++
modules_k/p_usrloc/ul_mi.c | 565 ++++++++++++++++++++
modules_k/p_usrloc/ul_mi.h | 101 ++++
modules_k/p_usrloc/ul_mod.c | 541 +++++++++++++++++++
modules_k/p_usrloc/ul_mod.h | 150 ++++++
modules_k/p_usrloc/urecord.c | 629 +++++++++++++++++++++++
modules_k/p_usrloc/urecord.h | 192 +++++++
modules_k/p_usrloc/usrloc.c | 82 +++
modules_k/p_usrloc/usrloc.h | 69 +++
modules_k/p_usrloc/utime.c | 42 ++
modules_k/p_usrloc/utime.h | 45 ++
54 files changed, 9200 insertions(+), 0 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=cd9…