Module: kamailio
Branch: tmp/usrloc-partition
Commit: 5f313038b3b9a17a840ccf8c2eba86f2de867591
URL:
https://github.com/kamailio/kamailio/commit/5f313038b3b9a17a840ccf8c2eba86f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-06T18:11:08+02:00
nathelper: set the max partition for keepalives in usrloc
- used to distribute registration records for db only mode in usrloc
---
Modified: modules/nathelper/nathelper.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5f313038b3b9a17a840ccf8c2eba86f…
Patch:
https://github.com/kamailio/kamailio/commit/5f313038b3b9a17a840ccf8c2eba86f…
---
diff --git a/modules/nathelper/nathelper.c b/modules/nathelper/nathelper.c
index 81d2cac..14880a7 100644
--- a/modules/nathelper/nathelper.c
+++ b/modules/nathelper/nathelper.c
@@ -675,6 +675,7 @@ mod_init(void)
LM_ERR("bad config - natping_processes must be >= 0\n");
return -1;
}
+ ul.set_max_partition(natping_processes*natping_interval);
sipping_flag = (sipping_flag==-1)?0:(1<<sipping_flag);
natping_disable_flag = (natping_disable_flag==-1)?0:(1<<natping_disable_flag);