Hi all,
Is it possible to set the natping_interval to a different value, per registration, at the time the user registers? For example, user A has 10 seconds and user B has 60 seconds.
Thanks
Hi Phil,
That feature currently does not exist. The nathelper module is dependent on a timer process. Keeping a timer for every registered user would be using quite some resources.
Regards, Timmo
On Tue, Dec 20, 2016 at 9:59 AM, Phil Lavin phil.lavin@cloudcall.com wrote:
Hi all,
Is it possible to set the natping_interval to a different value, per registration, at the time the user registers? For example, user A has 10 seconds and user B has 60 seconds.
Thanks
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Makes sense. Perhaps if it were implemented such that all users with a common timer value were handled by a single timer, and the docs had a warning about not using too many different values… then it’d be ok. I’m not sure our need is quite urgent enough to implement it, but I’ll add it to the to-do list.
Cheers
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Timmo Verlaan Sent: 20 December 2016 10:39 To: Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Subject: Re: [SR-Users] nathelper - variable natping_interval per registration
Hi Phil,
That feature currently does not exist. The nathelper module is dependent on a timer process. Keeping a timer for every registered user would be using quite some resources.
Regards, Timmo
On Tue, Dec 20, 2016 at 9:59 AM, Phil Lavin <phil.lavin@cloudcall.commailto:phil.lavin@cloudcall.com> wrote: Hi all,
Is it possible to set the natping_interval to a different value, per registration, at the time the user registers? For example, user A has 10 seconds and user B has 60 seconds.
Thanks
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tue, Dec 20, 2016 at 08:59:23AM +0000, Phil Lavin wrote:
Is it possible to set the natping_interval to a different value, per registration, at the time the user registers? For example, user A has 10 seconds and user B has 60 seconds.
I took a look at the pinger a couple of months ago for the 4.3 branch to figure out what the mechanism was and AFAIK your question is not possible. Depending on number of pinger threads and interval the endpoints get assigned a random value and something like currenttimeinseconds%maxvalue determins which endpoints are pinged. You might want to influence this random number (partition IIRC). But this depends on you db_mode (I guess it will not work when caching is active in kamailio)
But you can do this yourself from an external process (like sipsak) if you wish (and have the location records in a database).