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

 

  1. This rule changes username in Contact header

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1



  2. Set the criteria.

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message 
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header



  3. Configure the Message criteria.

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message message messageTypes requestAll 
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message message methodType invite



  4. Configure the Header criteria.

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header condition exist 
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header name "contact"
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header numberOfInstances number 1 qualifier equal



  5. Store the From username in var1

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 type token set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 operation store
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 from type token tokenValue uriusername
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 to type variable variableValue var1



  6. Enable SIP Adaptor Profile

    Code Block
    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY state enabled 
    commit



  7. Associate this with the SIP service group

    Code Block
    set addressContext defaultAddressContext zone ZONE1 sipTrunkGroup TG_SIPART_IAD signaling messageManipulation inputAdapterProfile CONTACT_HEADER_MODIFY\par 
    commit
Pagebreak