Module: kamailio
Branch: master
Commit: 3f45175dec711f1ece8b377469054a3dbd7cc72c
URL:
https://github.com/kamailio/kamailio/commit/3f45175dec711f1ece8b377469054a3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-08T09:39:15+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/3f45175dec711f1ece8b377469054a3…
Patch:
https://github.com/kamailio/kamailio/commit/3f45175dec711f1ece8b377469054a3…
---
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);