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
# Sample SMM rules to wirte various values to CDR records via SMM rules
# Rule #1: write the value of Contact Hdr to SMM CDR Field#1
# Rule #2: write the value of reqUri hostName (token) to SMM CDR Field#2
# Rule #3: write the value of generic parameter "tag" appears in the From Hdr to SMM CDR Field#3
# Rule #4: write the value of From Hdr urihostport (token) to SMM CDR Field#4
# Rule #5: write the value of value from a Variable to SMM CDR Field#5
set profiles signaling sipAdaptorProfile writeCdr rule 1 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile writeCdr rule 1 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile writeCdr rule 1 criterion 2 type header header name Contact condition exist hdrInstance one
set profiles signaling sipAdaptorProfile writeCdr rule 1 action 1 type header operation writeCdr from type header value Contact
set profiles signaling sipAdaptorProfile writeCdr rule 1 action 1 to type cdrField cdrField cdr1
set profiles signaling sipAdaptorProfile writeCdr rule 2 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile writeCdr rule 2 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile writeCdr rule 2 criterion 2 type header header name request-line condition exist hdrInstance one
set profiles signaling sipAdaptorProfile writeCdr rule 2 action 1 type token operation writeCdr
set profiles signaling sipAdaptorProfile writeCdr rule 2 action 1 from type token tokenValue urihostname
set profiles signaling sipAdaptorProfile writeCdr rule 2 action 1 to type cdrField cdrField cdr2
set profiles signaling sipAdaptorProfile writeCdr rule 3 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile writeCdr rule 3 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile writeCdr rule 3 criterion 2 type header header name From condition exist hdrInstance one
set profiles signaling sipAdaptorProfile writeCdr rule 3 action 1 type parameter paramType generic operation writeCdr
set profiles signaling sipAdaptorProfile writeCdr rule 3 action 1 from type parameter value tag
set profiles signaling sipAdaptorProfile writeCdr rule 3 action 1 to type cdrField cdrField cdr3
set profiles signaling sipAdaptorProfile writeCdr rule 4 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile writeCdr rule 4 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile writeCdr rule 4 criterion 2 type header header name From condition exist hdrInstance one
set profiles signaling sipAdaptorProfile writeCdr rule 4 action 1 type token operation writeCdr
set profiles signaling sipAdaptorProfile writeCdr rule 4 action 1 from type token tokenValue urihostport
set profiles signaling sipAdaptorProfile writeCdr rule 4 action 1 to type cdrField cdrField cdr4
set profiles signaling sipAdaptorProfile writeCdr rule 5 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile writeCdr rule 5 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile writeCdr rule 5 criterion 2 type header header name From condition exist hdrInstance one
set profiles signaling sipAdaptorProfile writeCdr rule 5 action 1 type variable operation store from type value value "XoXo"
set profiles signaling sipAdaptorProfile writeCdr rule 5 action 1 type variable operation store to type variable variableValue var1
set profiles signaling sipAdaptorProfile writeCdr rule 5 action 2 type variable operation writeCdr
set profiles signaling sipAdaptorProfile writeCdr rule 5 action 2 from type variable variableValue var1
set profiles signaling sipAdaptorProfile writeCdr rule 5 action 2 to type cdrField cdrField cdr5