1. This rule changes username in Contact header

    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1



  2. Set the criteria.

    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.

    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.

    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

    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

    set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY state enabled 
    commit



  7. Associate this with the SIP service group

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

  • No labels