DO NOT SHARE THESE DOCS WITH CUSTOMERS!

This is an LA release that will only be provided to a select number of PLM-sanctioned customers (PDFs only). Contact PLM for details.

## This rule changes URI in any request in request line and To header
# Create the profile
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 3 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 4 type token
# Configure the Message criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 1 type message message messageTypes requestAll
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 1 type message message methodType invite
# Configure the Header criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 2 type header header name "request-line"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 3 type parameter parameter paramType userinfo
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 3 type parameter parameter name "user"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 3 type parameter parameter value "phone"
# Configure the Token criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 4 type token token condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 4 type token token tokenType uriusername
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 criterion 4 type token token value "sipart-labsip"
# Store the "5996216660" in the var1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 1 type variable
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 1 operation store
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 1 from type value value "500008010"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 1 to type variable variableValue var1
# Copy the var1 to username
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 2 type token
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 2 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 2 from type variable variableValue var1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 2 to type token tokenValue uriusername
# Remove user=phone\par
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 3 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 3 operation delete
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 3 paramType userinfo
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 1 action 3 to type parameter value "user"
# The rule(s) : rule to remove the route header from invite
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 3 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 4 type token
# Configure the Message criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 1 type message message messageTypes requestAll
Set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 1 type message message methodType invite
# Configure the Header criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 2 type header header name "to"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 3 type parameter parameter paramType userinfo
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 3 type parameter parameter name "user"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 3 type parameter parameter value "phone"
# Configure the Token criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 4 type token token condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 4 type token token tokenType uriusername
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 criterion 4 type token token value "sipart-labsip"
# The action
# Store the "9781234560" in the var1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 1 type variable
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 1 operation store
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 1 from type value value "500008010"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 1 to type variable variableValue var1
# Copy the var1 to username
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 2 type token
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 2 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 2 from type variable variableValue var1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 2 to type token tokenValue uriusername
# Remove user=phone
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 3 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 3 operation delete
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 3 paramType userinfo
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 rule 2 action 3 to  type parameter value "user"
# Enable the state
set profiles signaling sipAdaptorProfile SMM_PROFILE_S152 state enabled
commit
# Associate this with the SIP service group
set addressContext defaultAddressContext zone ZONE_SIPART_IAD sipTrunkGroup TG_SIPART_IAD signaling messageManipulation inputAdapterProfile SMM_PROFILE_S152
commit
  • No labels