[sr-dev] git:tmp/usrloc-partition:5f313038: nathelper: set the max partition for keepalives in usrloc

Daniel-Constantin Mierla miconda at gmail.com
Wed May 6 18:12:59 CEST 2015


Module: kamailio
Branch: tmp/usrloc-partition
Commit: 5f313038b3b9a17a840ccf8c2eba86f2de867591
URL: https://github.com/kamailio/kamailio/commit/5f313038b3b9a17a840ccf8c2eba86f2de867591

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/5f313038b3b9a17a840ccf8c2eba86f2de867591.diff
Patch: https://github.com/kamailio/kamailio/commit/5f313038b3b9a17a840ccf8c2eba86f2de867591.patch

---

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);




More information about the sr-dev mailing list