Allow setting late margin on register expirations

When an endpoint registers to us we internally mark the expiration as
some seconds longer than the actual registration.  Previously this
value was fixed at 60 seconds.

Some people need this value to be shorter so they can meet their SLA
by taking a different action when a device doesn't re-register when
expected.

This commit adds a SIP profile parameter sip-expires-late-margin which
allows setting the margin value we apply here.

FS-6101 --resolve

Thanks-to: Emmanuel Schmidbauer <e.schmidbauer@gmail.com>
This commit is contained in:
Travis Cross
2014-02-20 15:59:38 +00:00
parent e425307e82
commit bd72cd9cc1
3 changed files with 14 additions and 5 deletions
+1
View File
@@ -685,6 +685,7 @@ struct sofia_profile {
su_strlst_t *tls_verify_in_subjects;
uint32_t sip_force_expires;
uint32_t sip_expires_max_deviation;
uint32_t sip_expires_late_margin;
uint32_t sip_subscription_max_deviation;
int ireg_seconds;
sofia_paid_type_t paid_type;