< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [repro-users] Change registration TTL


The following methods are available on the MasterProfile:

      ///
      /// Used when receiveing a REGISTER request, if the expires value in the request
      /// is less than this time, then dum will reject the message with a 423 and set the
      /// min-expires header to the value specified here.
      ///
      virtual UInt32& serverRegistrationMinExpiresTime(void);
      virtual const UInt32 serverRegistrationMinExpiresTime(void) const;

      ///
      /// If an inbound REGISTER has an Expires header or any individual contact bindings with expires greater
      /// than this value, use this Max expires instead of the one given by the client.
      virtual UInt32& serverRegistrationMaxExpiresTime(void);
      virtual const UInt32 serverRegistrationMaxExpiresTime(void) const;

You need to modify code in ReproRunner to set these values.

Or you can override:  ServerRegistrationHandler::getGlobalExpires in the Registrar.hxx source code and add whatever logic you like.

Scott

On Thu, Jul 20, 2017 at 11:33 AM, Garnham, Sam (FN) @ CSG - ASA <Sam.Garnham@xxxxxxx> wrote:

Hello,

 

If there a way to change the registration TTL, i.e. the value of the 'expires' parameter in the 'Contact' Header in the 200 OK (copied from the 'Expires' header in the REGISTER)?

 

Sam.

 

Please consider the environment before printing this email

This communication is confidential to the intended recipient (s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt and then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of L-3 Communication ASA Ltd.

Sent from L-3 Communications ASA Ltd. Registered in England and Wales Company No. 1730717. Registered Office: 100 New Bridge Street, London, EC4V 6JA


Effective immediately my new email address is Sam.Garnham@xxxxxxx. Please update your records.

_______________________________________________
repro-users mailing list
repro-users@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/repro-users