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

Compare with Current View Page History

Version 1 Next »

 

 

## This rule modifies the P-Charging-Vector header in requests:
## subscribe and notify
#
# Enable the relay mode
set addressContext defaultAddressContext zone ZONE_SIPART_INGRESS_S35 sipTrunkGroup SIPART_INGRESS_S35 signaling relayNonInviteRequest enabled
# Create SMM profile rule 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 3 type parameter
# Configure the Message rule 1 criterion 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 1 type message message messageTypes request
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 1 type message message methodType subscribe
# Configure the Header rule 1 criterion 2
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 2 type header header name "p-charging-vector"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter rule 1 criterion 3
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 3 type parameter parameter paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 3 type parameter parameter name "icid-generated-at"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 criterion 3 type parameter parameter value "someproxy.sipart.com"
# Configure rule 1 action 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 action 1 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 action 1 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 action 1 paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 action 1 from type parameter value "SUBSCRIBE-OUTBOUND-sipart.labsip.sonusnet.com"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 1 action 1 to type parameter value "icid-generated-at"
# Create SMM profile rule 2
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 3 type parameter
# Configure the Message rule 2 criterion 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 1 type message message messageTypes request
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 1 type message message methodType notify
# Configure the Header rule 2 criterion 2
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 2 type header header name "p-charging-vector"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter rule 2 criterion 3
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 3 type parameter parameter paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 3 type parameter parameter name "icid-generated-at"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 criterion 3 type parameter parameter value "someproxy.sipart.com"
# Configure rule 2 action 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 action 1 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 action 1 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 action 1 paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 action 1 from type parameter value "NOTIFY-OUTBOUND-sipart.labsip.sonusnet.com"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 2 action 1 to type parameter value "icid-generated-at"
# Create SMM profile rule 3
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 3 type parameter
# Configure the Message rule 3 criterion 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 1 type message message messageTypes response
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 1 type message message methodType subscribe
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 1 type message message statusCode 200
# Configure the Header rule 3 criterion 2
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 2 type header header name "p-charging-vector"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter rule 3 criterion 3
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 3 type parameter parameter paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 3 type parameter parameter name "icid-generated-at"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 criterion 3 type parameter parameter value "someproxy.sipart.com
# Confiure rule 3 action 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 action 1 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 action 1 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 action 1 paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 action 1 from type parameter value "200OK-SUBSCRIBE-OUT-sipart.labsip.sonusnet.com"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 3 action 1 to type parameter value "icid-generated-at"

# Create SMM profile rule 4
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4
# The criteria
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 1 type message
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 2 type header
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 3 type parameter
# Configure the Message rule 4 criterion 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 1 type message message messageTypes response
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 1 type message message methodType notify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 1 type message message statusCode 200
# Configure the Header rule 4 criterion 2
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 2 type header header condition exist
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 2 type header header name "p-charging-vector"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 2 type header header numberOfInstances number 1 qualifier equal
# Configure Parameter rule 4 criterion 3
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 3 type parameter parameter condition has-value
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 3 type parameter parameter paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 3 type parameter parameter name "icid-generated-at"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 criterion 3 type parameter parameter value "someproxy.sipart.com"
# Configure rule 4 action 1
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 action 1 type parameter
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 action 1 operation modify
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 action 1 paramType generic
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 action 1 from type parameter value "200OK-NOTIFY-OUT-sipart.labsip.sonusnet.com"
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT rule 4 action 1 to type parameter value "icid-generated-at"
# Enable the state
set profiles signaling sipAdaptorProfile SMM_PROFILE_S150_OUT state enabled
commit
# Associate this with the SIP Service Group
set addressContext defaultAddressContext zone ZONE_SIPART_INGRESS_S35 sipTrunkGroup SIPART_INGRESS_S35 signaling messageManipulation outputAdapterProfile SMM_PROFILE_S150_OUT
# Egress trunk group
set addressContext defaultAddressContext zone ZONE_SIPART_EGRESS_S35 sipTrunkGroup SIPART_EGRESS_S35 signaling messageManipulation outputAdapterProfile SMM_PROFILE_S150_OUT
commit

 

 
  • No labels