# These SMM rules will compare the value of URI-USER-NAME of the From Hdr and Contact Hdr 
# Rule #1: store uri-user-name of the From Hdr to var1
# Rule #2: store uri-user-name of the Contact Hdr to var2
# Rule #3: Use new variables-equal condition to compare the value of var1 and var2
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 applyMatchHeader one
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 1 type message
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 1 message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 2 type header
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 2 header name From condition exist hdrInstance one
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 3 type token
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 criterion 3 token condition exist tokenType uriusername
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 action 1 type token operation store
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 action 1 from type token tokenValue uriusername
set profiles signaling sipAdaptorProfile compareVarsUri rule 1 action 1 to type variable variableValue var1 variableScopeValue local
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 applyMatchHeader one
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 1 type message
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 1 message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 2 type header
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 2 header name Contact condition exist hdrInstance one
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 3 type token
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 criterion 3 token condition exist tokenType uriusername
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 action 1 type token operation store
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 action 1 from type token tokenValue uriusername
set profiles signaling sipAdaptorProfile compareVarsUri rule 2 action 1 to type variable variableValue var2 variableScopeValue local
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 1 type message
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 1 message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 2 type variable variable condition exist variableID var1
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 3 type variable variable condition exist variableID var2
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 4 type variable variable condition variables-equal
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 criterion 4 type variable variable variableID var1 otherVariableID var2
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 action 1 type header operation add headerPosition last
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 action 1 from type variable variableValue var1
set profiles signaling sipAdaptorProfile compareVarsUri rule 3 action 1 to type header value URI-USER-NAME-SAME 
  • No labels