Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Noprint
Panel
borderColorgreen
bgColortransparent
borderWidth2

Back to Table of Contents

Back to SIP Services

Back to SIP Message Manipulation

Back to SMM Examples

Code Block
languagenone
## This SMM rule changes 183 with no SDP to a 100 Trying
## to resolve issue when the SBX sent a 183 as a result of
## receiving a 302 on the egress leg. 
# 
# Criterion checks for 183 messages that do not contain SDP
set profiles signaling sipAdaptorProfile saprofile rule 1 criterion 1 type message message messageTypes response statusCode 183 
set profiles signaling sipAdaptorProfile saprofile rule 1 criterion 2 type header header name "Status-Line" condition exist 
set profiles signaling sipAdaptorProfile saprofile rule 1 criterion 3 type messageBody messageBody condition absent
# Action 1 matches on "183 Session Progress" and replaces it with
# "100 Trying" 
set profiles signaling sipAdaptorProfile saprofile rule 1 action 1 type header 
set profiles signaling sipAdaptorProfile saprofile rule 1 action 1 operation regsub 
set profiles signaling sipAdaptorProfile saprofile rule 1 action 1 regexp string "(183 Session Progress)" 
set profiles signaling sipAdaptorProfile saprofile rule 1 action 1 from type value value "100 Trying" 
set profiles signaling sipAdaptorProfile saprofile rule 1 action 1 to type header value "SIP/2.0" 
set profiles signaling sipAdaptorProfile saprofile state enabled
commit