Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Rule 2 Action 1: store codec position for codec "PCMA/8000" to var3
# Rule 2 Action 2: add new header Codec-PCMA-Pos with value from var3
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 criterion 1 type message message messageTypes request methodTypes invite
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 criterion 1 type message message condition exist
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 criterion 2 type messageBody messageBody messageBodyType sdp condition exist
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 criterion 3 type sdpContent sdpContent codecNames PCMA/8000 condition exist
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 criterion 3 type sdpContent sdpContent streamType audio streamInstanceId 1
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 1 type sdpContent operation getCodecPosition sdpContentSubType codecByName
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 1 from type sdpContent sdpContent streamType audio streamInstanceId 1 
codecNames "PCMA/8000"
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 1 to type variable variableValue var3
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 2 type header operation add headerPosition last
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 2 from type variable variableValue var3
set profiles signaling sipAdaptorProfile sdpGetProfile rule 2 action 2 to type header value Codec-PCMA-Pos

Pagebreak