In this section:

Related articles:

SIP Adaptor Profile - CLI

 

In cases where the SBC is positioned between Kandy Link and Ribbon AS/Cisco UCM, the following SMM rules should be considered. Ribbon Professional Services should be involved in applying these rules.

Use the following CLI syntax to configure a SIP Adaptor Profile for passing x-webrtc and x-p2p parameters. 

This rule should be applied as the Input SMM Profile for both the trunk groups facing Kandy Link and the AS/CiscoUCM.

 

set profiles signaling sipAdaptorProfile passWrtcIN advancedSMM enable
set profiles signaling sipAdaptorProfile passWrtcIN rule 1
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 1 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 1 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 2
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 1 to type variable variableValue var2
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 3 from type variable variableValue var2
set profiles signaling sipAdaptorProfile passWrtcIN rule 2 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 3
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 1 to type variable variableValue var3
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 3 from type variable variableValue var3
set profiles signaling sipAdaptorProfile passWrtcIN rule 3 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 4
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 1 to type variable variableValue var4
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 3 from type variable variableValue var4
set profiles signaling sipAdaptorProfile passWrtcIN rule 4 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 5
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 1 to type variable variableValue var5
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 3 from type variable variableValue var5
set profiles signaling sipAdaptorProfile passWrtcIN rule 5 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-webrtc.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 1 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 1 to type variable variableValue var6
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 2 regexp string "a=x-webrtc.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 3 from type variable variableValue var6
set profiles signaling sipAdaptorProfile passWrtcIN rule 6 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 criterion 2 type messageBody messageBody condition regex-match regexp string "a=x-p2p.*?"
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 1 type messageBody operation regstore
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 1 regexp string "a=x-p2p.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 1 from type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 1 to type variable variableValue var7
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 2 type messageBody operation regdel
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 2 regexp string "a=x-p2p.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 2 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 3 type variable operation append
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 3 from type variable variableValue var7
set profiles signaling sipAdaptorProfile passWrtcIN rule 7 action 3 to type variable variableValue var1 variableScopeValue message
set profiles signaling sipAdaptorProfile passWrtcIN state enabled
commit

 

This rule should be applied as the Output SMM Profile for both the trunk groups facing AS/CiscoUCM.

set profiles signaling sipAdaptorProfile passWrtcOUT advancedSMM enable
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 criterion 1 type message message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 criterion 2 type variable variable variableID var1 condition exist
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 criterion 3 type messageBody messageBody condition exist
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 action 1 type messageBody operation regappend
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 action 1 regexp string "t=.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 action 1 from type variable variableValue var1
set profiles signaling sipAdaptorProfile passWrtcOUT rule 1 action 1 to type messageBody messageBodyValue all
set profiles signaling sipAdaptorProfile passWrtcOUT state enabled
commit

 

This rule should be applied as the Output SMM Profile for the trunk group facing Kandy Link.

set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT state enabled advancedSMM disabled profileType messageManipulation
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 1 type message
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 1 message messageTypes response methodTypes invite statusCode 200
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 2 type header
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 2 header name Contact condition exist hdrInstance all
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 3 type parameter
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 criterion 3 parameter condition exist paramType uri name maddr
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 applyMatchHeader one
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 action 1 type parameter operation delete paramType uri
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 1 action 1 to type parameter value maddr
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 1 type message
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 1 message messageTypes request methodTypes notify
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 2 type header
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 2 header name Contact condition exist hdrInstance all
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 3 type parameter
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 criterion 3 parameter condition exist paramType uri name maddr
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 applyMatchHeader one
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 action 1 type parameter operation delete paramType uri
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 2 action 1 to type parameter value maddr
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 1 type message
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 1 message messageTypes all
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 2 type variable
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 2 variable condition exist variableID var1
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 3 type messageBody
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 criterion 3 messageBody condition exist
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 applyMatchHeader one
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 action 1 type messageBody operation regappend
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 action 1 regexp string "t=.*?\r\n"
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 action 1 from type variable variableValue var1
set profiles signaling sipAdaptorProfile passWrtcRemoveMaddrOUT rule 3 action 1 to type messageBody messageBodyValue all
commit