You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

## This rule updates expires parameter received in 200 OK from Registrar if its value was set to 1 ##
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 applyMatchHeader all
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 1 type message message messageTypes response statusCode 200

set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 2 type header header name "Contact"

set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 3 type parameter parameter paramType generic
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 3 type parameter parameter condition exist
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 criterion 3 type parameter parameter name "expires"

set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 action 1 type parameter paramType generic
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 action 1 operation regsub

set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 action 1 regexp string "^1$"
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 action 1 from type value value 30
set profiles signaling sipAdaptorProfile REGISTEREXPIRES rule 1 action 1 to type parameter value "expires"

set profiles signaling sipAdaptorProfile REGISTEREXPIRES state enabled
commit
  • No labels