Ribbon Documentation Portal will be unavailable Thursday February 2nd 2023 between 2:00 PM EST ~ 12:00 PM. More Info
Page tree
Skip to end of metadata
Go to start of metadata


In this article:

Tip

The configuration steps described in this article are examples.

Ribbon recommends referring to the SBC and PSX product documentation for detailed information on the commands, parameters, and flags used in the configuration examples of this guide.

Process the steps in the same order as described in this article.

This article describes the steps for configuring the connectivity between the SBC and MS Teams.

Configure IP Interface Group

Create an IP Interface Group.

Tip
  • Provide ceName used during the SBC deployment.
  • Replace "x.x.x.x" with the SBC's packet interface (pkt) IP address towards MS Teams. For example, use the IP address of pkt1.
  • Replace "y" with the prefix length of the packet interface (pkt) IP address towards MS Teams.
% set addressContext default ipInterfaceGroup LIF2 ipInterface PKT1_V4 ceName IOTPTFY06 portName pkt1
% set addressContext default ipInterfaceGroup LIF2 ipInterface PKT1_V4 ipAddress x.x.x.x prefix y
% set addressContext default ipInterfaceGroup LIF2 ipInterface PKT1_V4 mode inService state enabled
% commit


Configure Zone

This Zone groups the set of objects used to communicate to MS Teams.

Configure the domain name (for example, customers.interopdomain.com) and attach it to the appropriate zone.

% set addressContext default zone TEAMS_ZONE id 4
% set addressContext default zone TEAMS_ZONE domainName customers.interopdomain.com
% set addressContext default zone TEAMS_ZONE messageManipulation outputAdapterProfile Modify_Options
% commit


Configure an IP Peer

Create an IP Peer for all three sites configured as global SIP Domain names, and attach it to the Path Check Profile.

% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER1 policy sip fqdn sip.pstnhub.microsoft.com fqdnPort 5060
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER2 policy sip fqdn sip2.pstnhub.microsoft.com fqdnPort 5060
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER3 policy sip fqdn sip3.pstnhub.microsoft.com fqdnPort 5060
% commit
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER1 pathCheck profile TEAMS_OPTIONS
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER1 pathCheck profile TEAMS_OPTIONS hostName sip.pstnhub.microsoft.com hostPort 5060 state enabled
% commit
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER2 pathCheck profile TEAMS_OPTIONS
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER2 pathCheck profile TEAMS_OPTIONS hostName sip2.pstnhub.microsoft.com hostPort 5060 state enabled
% commit
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER3 pathCheck profile TEAMS_OPTIONS
% set addressContext default zone TEAMS_ZONE ipPeer TEAMS_PEER3 pathCheck profile TEAMS_OPTIONS hostName sip3.pstnhub.microsoft.com hostPort 5060 state enabled
% commit


Configure SIP Signaling Port

Define the SIP Signaling port, which is a logical address permanently bound to a specific zone, that sends and receives SIP call signaling packets.

Note

 The Ribbon SBC Core listens to:

  • the port defined under SIP Signaling Port for TCP and UDP, and 
  • the port for TLS to receive incoming traffic.
Tip

Replace "x.x.x.x" with SIP Signaling Port IP address towards MS Teams.

% set addressContext default zone TEAMS_ZONE id 4 sipSigPort 4 ipInterfaceGroupName LIF2 ipAddressV4 x.x.x.x portNumber 5060 transportProtocolsAllowed sip-tls-tcp
% set addressContext default zone TEAMS_ZONE id 4 sipSigPort 4 state enabled mode inService
% commit


Configure DNS Group

Create DNS objects for DNS resolution within a particular zone. Use the interface with public connectivity.

% set addressContext default dnsGroup EXT_DNS
% set addressContext default dnsGroup EXT_DNS type ip interface LIF2 server DNS2 ipAddress 8.8.8.8 state enabled
% set addressContext default zone TEAMS_ZONE dnsGroup EXT_DNS
% commit


Configure IP Static Route

Create a default route for the destination IP to enter the network through a particular interface.

Tip

Replace "X.X.X.X" with destination IP, "Y" with the prefix length and "Z.Z.Z.Z" with the PKT1 gateway IP address.

% set addressContext default staticRoute X.X.X.X Y Z.Z.Z.Z LIF2 PKT1_V4 preference 100
% commit


Configure SMM to Modify Options Message

Microsoft Teams requires the SBC's FQDN in the 'From:' and 'Contact:' header. In the below SMM configuration, replace:

  • "user_input1" with SBC's FQDN
  • "user_input2" with the SIP SIgnaling Port number plus one. For example, if sipSigPort is configured as 5060 then 'user_input2' will be 5061.
  • "user_input3" with the SIP Signaling Port IP address configured in TEAMS_ZONE


The SMM commands below are created to meet the following rules:

  • Rules 1 and 2: Modifies the "Contact" and "From" header value with the user-provided FQDN.
  • Rule 3: Adds the "User-Agent" header field in the SIP OPTIONS request.


% set profiles signaling sipAdaptorProfile Modify_Options state enabled
% set profiles signaling sipAdaptorProfile Modify_Options advancedSMM disabled
% set profiles signaling sipAdaptorProfile Modify_Options profileType messageManipulation
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 applyMatchHeader one
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 1 type message
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 1 message
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 2 type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 2 header
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 operation regsub
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 from
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 from type value
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 from value "<sip:user_input1:user_input2;transport=tls>"
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 to
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 to type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 to value Contact
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 regexp
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 regexp string .*
% set profiles signaling sipAdaptorProfile Modify_Options rule 1 action 1 regexp matchInstance all
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 1 type message
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 1 message
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 2 type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 2 header
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 2 header name From
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 operation regsub
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 from
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 from type value
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 from value "<sip:user_input1:user_input2;transport=tls>"
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 to
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 to type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 to value From
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 regexp
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 regexp string <sip:user_input3>
% set profiles signaling sipAdaptorProfile Modify_Options rule 2 action 1 regexp matchInstance all
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 criterion 1 type message
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 criterion 1 message
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 criterion 1 message methodTypes options
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 operation add
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 headerPosition last
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 from
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 from type value
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 from value "Ribbon SBCCore V07.02"
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 to
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 to type header
% set profiles signaling sipAdaptorProfile Modify_Options rule 3 action 1 to value User-Agent
% commit


Configure SIP Trunk Group

Create a SIP Trunk Group for the Teams side.

Warning

Mandatory! You must capitalize SIP Trunk Group names.

Configure ingressIpPrefix with the value "52.112.0.0 14" only on the SBC's inbound Trunk Group. 

Do not provision any ingressIpPrefix attributes for outbound (egress only) SBC Trunk Groups.

The Teams SIP Proxy server does not support the UPDATE method and requires a Re-INVITE. The Teams SIP Proxy Server only supports a new RFC for call hold, which is "a=inactive".


% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG media mediaIpInterfaceGroupName LIF2
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG signaling methods update reject
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG signaling rel100Support enabled
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG signaling relayNonInviteRequest enabled
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG signaling honorMaddrParam enabled
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG services dnsSupportType a-only
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG media sdpAttributesSelectiveRelay enabled
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG ingressIpPrefix 52.112.0.0 14
% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG mode inService state enabled
% commit


Configure SMM Profiles Towards MS Teams

Outbound

Outbound for Multi-tenant

The SMM commands below serve the following purpose:

  • Rule 1: Stores the "From" header hostname and stores it in a variable (var1).
  • Rule 2 and 3: Replaces the current value of Contact header and PPI with variable (var1).
  • Rule 4-7: Used mainly for handling transfer scenario in a multi-tenant deployment. It populates the correct tenant information from the "Ribbon" parameter and adds it in "Contact" and "PPI" headers.
  • Rule 8 -10: Addresses the addition of lifetime parameter in the crypto line for all the requests and responses.
  • Rule 11: Adds the USER-AGENT header to all the Request messages.
  • Rule 12: Adds the SERVER header to all the Response messages.
  • Rule 13: Adds transport=tls in the 200 OK response to the Invite with replaces in a CallQ scenario.
  • Rule 14-15: Adds FQDN to the contact header of the 200 OK response to the Invite with replaces.
  • Rule 16: Used to convert from a=sendonly to a=inactive as some of the PSTN end points send a=sendonly while putting the call on HOLD, which the SBC forwards to the MS Teams side. However, this is not supported by MS Teams. 


Note

Attach this profile to each outbound TG.

% set profiles signaling sipAdaptorProfile HeaderModifications state enabled
% set profiles signaling sipAdaptorProfile HeaderModifications advancedSMM disabled
% set profiles signaling sipAdaptorProfile HeaderModifications profileType messageManipulation
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header name From
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 operation store
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 headerInfo fieldValue
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from value From
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to variableScopeValue local
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 operation regpredel
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 regexp string @.*>
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 2 regexp matchInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 operation regdel
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 regexp string "(;user=phone>)|>"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 3 regexp matchInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 operation append
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 from value :
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 4 to variableScopeValue local
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 headerInfo fieldValue
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to value Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 regexp string @.*:
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 regexp matchInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header name P-Preferred-Identity
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 headerInfo fieldValue
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to value P-Preferred-Identity
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 regexp string @.*:
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 regexp matchInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header name Request-Line
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter name Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 operation store
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 operation delete
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header name From
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header name P-Preferred-Identity
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 messageBody condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 operation regstore
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from messageBodyValue all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp string "a=crypto.*?\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable variableID var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from value "|2^31\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to variableScopeValue local 
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp string "(\r\n)|(\|2\^31\r\n)"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable variableID var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to messageBodyValue all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp string "a=crypto.*?\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 applyMatchHeader all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 operation add
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 headerPosition last
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from value "Ribbon SBCCore V07.02"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to value USER-AGENT
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 applyMatchHeader all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 operation add
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 headerPosition last
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from value "Ribbon SBCCore V07.02"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to value SERVER
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message messageTypes response
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message statusCode 200
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 headerInfo headerValue
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from value "5061;transport=tls>"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to value Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp string "5061\>"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp matchInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header name To
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 operation store
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to variableScopeValue local
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to tokenValue urihostname
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 applyMatchHeader one
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 type message
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 message
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 message messageTypes all
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 type messageBody
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 operation regsub
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from type value
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from value "a=inactive"
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to type messageBody
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to messageBodyValue all
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp string "a=sendonly"
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp matchInstance all
% commit

Outbound for Single-tenant

Note

Configurations in this section are applicable only to single-tenant deployments using Basic ERE. However, when using Advanced ERE or PSX in case of single tenant deployments, the SMM rules mentioned below are recommended, as it removes the necessity to set the tenant name via DM/PM rules in PSX or Advanced ERE.


The SMM rules below are created to serve the following purpose:

  • Rule 1-3: Adding tenant FQDN (in this case A.abc.example.com) to "From", "Contact" and "PPI" header hostname and store it in a variable (var1).
  • Rule 4-7: Used mainly for handling transfer scenario in a multi-tenant deployment. It populates the correct tenant information from "Ribbon" parameter and adds it in "Contact" and "PPI" headers.
  • Rule 8 -10: Handles the addition of the lifetime parameter in the crypto line for all the requests and responses.
  • Rule 11: Adds the USER-AGENT header to all the Request messages.
  • Rule 12: Adds the SERVER header to all the Response messages.
  • Rule 13: Adds transport=tls in the 200 OK response to the Invite with replaces in a CallQ scenario.
  • Rule 14-15: Adds FQDN to the contact header of the 200 OK response to the Invite with replaces.
  • Rule 16: Used to convert from a=sendonly to a=inactive as some of the PSTN end points send a=sendonly while putting the call on HOLD, which the SBC forwards to the MS Teams side. However, this is not supported by MS Teams. 


% set profiles signaling sipAdaptorProfile HeaderModifications state enabled
% set profiles signaling sipAdaptorProfile HeaderModifications advancedSMM disabled
% set profiles signaling sipAdaptorProfile HeaderModifications profileType messageManipulation
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header name From
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 from value A.abc.example.com
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 1 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header name P-Preferred-Identity
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 from value A.abc.example.com
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 2 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 from value A.abc.example.com
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 3 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header name Request-Line
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 criterion 3 parameter name Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 operation store
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 from value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 1 to variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 operation delete
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 paramType uri
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 from value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to type parameter
% set profiles signaling sipAdaptorProfile HeaderModifications rule 4 action 2 to value Ribbon
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header name From
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 5 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 6 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message methodTypes invite
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header name P-Preferred-Identity
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 criterion 3 variable variableID var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 from variableValue var2
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 7 action 1 to tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 criterion 2 messageBody condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 operation regstore
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 from messageBodyValue all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 to variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp string "a=crypto.*?\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 8 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 criterion 2 variable variableID var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 from value "|2^31\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to variableScopeValue local
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 to variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp string "(\r\n)|(\|2\^31\r\n)"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 9 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message messageTypes all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 criterion 2 variable variableID var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 from variableValue var4
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to type messageBody
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 to messageBodyValue all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp string "a=crypto.*?\r\n"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 10 action 1 regexp matchInstance one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 applyMatchHeader all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 criterion 1 message messageTypes requestAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 operation add
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 headerPosition last
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 from value "Ribbon SBCCore V07.02"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 11 action 1 to value USER-AGENT
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 applyMatchHeader all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 operation add
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 headerPosition last
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 from value "Ribbon SBCCore V07.02"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 12 action 1 to value SERVER

% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message messageTypes response
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 1 message statusCode 200
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 operation regsub
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 headerInfo headerValue
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from type value
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 from value "5061;transport=tls>"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 to value Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp string "5061\>"
% set profiles signaling sipAdaptorProfile HeaderModifications rule 13 action 1 regexp matchInstance all

% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header name To
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 operation store
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 from tokenValue urihostname
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 14 action 1 to variableScopeValue local
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 applyMatchHeader one
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 type message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 message
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 1 message messageTypes responseAll
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 type header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header name Contact
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 operation modify
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from type variable
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 from variableValue var1
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to type token
% set profiles signaling sipAdaptorProfile HeaderModifications rule 15 action 1 to tokenValue urihostname
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 applyMatchHeader one
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 type message
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 message
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 criterion 1 message messageTypes all
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 type messageBody
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 operation regsub
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from type value
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 from value "a=inactive"
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to type messageBody
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 to messageBodyValue all
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp string "a=sendonly"
set profiles signaling sipAdaptorProfile HeaderModifications rule 16 action 1 regexp matchInstance all
% commit

Inbound

The SMM rules below are created to serve the following purpose:

  • Rule 1: Stores a urihostname value of "To" header and stores it in a variable.
  • Rule 2: Creates a dummy parameter in the "refer-to" header with name "Ribbon" and stores the variable. This is useful for a call transfer scenario in multi-tenant deployment.
  • Rule 3: Makes the Max-Forward value 0 so that the SBC responds back with 200 OK to the OPTIONS.

MS Teams sends the Privacy header in the INVITE request if the "Forward P-Asserted-Identity (PAI)" option is enabled - the SBC sends the call as an Anonymous call towards the PSTN. To overcome this, configure Rule 4 and Rule 5.

  • Rule 4: Copies the URI username present in the From header to var2 if the value is not equal to Anonymous.
  • Rule 5: Deletes the Privacy header if var2 is present.


Note

Assign this profile on each MS Teams trunk group.

% set profiles signaling sipAdaptorProfile REFER state enabled
% set profiles signaling sipAdaptorProfile REFER advancedSMM disabled
% set profiles signaling sipAdaptorProfile REFER profileType messageManipulation
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 1 type message
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 1 message
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 1 message methodTypes refer
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 2 type header
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 2 header
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 2 header name To
% set profiles signaling sipAdaptorProfile REFER rule 1 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 type token
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 operation store
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 from
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 from type token
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 from tokenValue urihostname
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 to
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 to type variable
% set profiles signaling sipAdaptorProfile REFER rule 1 action 1 to variableValue var1
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 1 type message
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 1 message
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 1 message methodTypes refer
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 1 message condition exist
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 2 type header
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 2 header
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 2 header name Refer-To
% set profiles signaling sipAdaptorProfile REFER rule 2 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 type parameter
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 operation add
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 paramType uri
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 from
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 from type variable
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 from variableValue var1
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 to
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 to type parameter
% set profiles signaling sipAdaptorProfile REFER rule 2 action 1 to value Ribbon
% set profiles signaling sipAdaptorProfile REFER rule 3 applyMatchHeader one
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 1 type message
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 1 message
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 1 message messageTypes request
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 1 message methodTypes options
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 2 type header
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 2 header
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 2 header name Max-Forwards
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 2 header condition exist
% set profiles signaling sipAdaptorProfile REFER rule 3 criterion 2 header hdrInstance all
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 type header
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 operation modify
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 headerInfo headerValue
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 from
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 from type value
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 from value 0
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 to
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 to type header
% set profiles signaling sipAdaptorProfile REFER rule 3 action 1 to value Max-Forwards
set profiles signaling sipAdaptorProfile REFER rule 4 applyMatchHeader one
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 1 type message
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 1 message
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 1 message messageTypes request
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 1 message methodTypes invite
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 2 type header
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 2 header
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 2 header name from
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 2 header condition exist
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 2 header hdrInstance all
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 3 type token
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 3 token
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 3 token condition not-equal-to
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 3 token tokenType uriusername
set profiles signaling sipAdaptorProfile REFER rule 4 criterion 3 token value Anonymous
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 type token
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 operation store
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 from
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 from type token
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 from tokenValue uriusername
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 to
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 to type variable
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 to variableValue var2
set profiles signaling sipAdaptorProfile REFER rule 4 action 1 to variableScopeValue local
set profiles signaling sipAdaptorProfile REFER rule 5 applyMatchHeader one
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 1 type message
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 1 message
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 1 message messageTypes request
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 1 message methodTypes invite
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 2 type header
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 2 header
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 2 header name Privacy
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 2 header condition exist
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 2 header hdrInstance all
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 3 type variable
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 3 variable
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 3 variable condition exist
set profiles signaling sipAdaptorProfile REFER rule 5 criterion 3 variable variableID var2
set profiles signaling sipAdaptorProfile REFER rule 5 action 1 type header
set profiles signaling sipAdaptorProfile REFER rule 5 action 1 operation delete
set profiles signaling sipAdaptorProfile REFER rule 5 action 1 to
set profiles signaling sipAdaptorProfile REFER rule 5 action 1 to type header
set profiles signaling sipAdaptorProfile REFER rule 5 action 1 to value Privacy
% commit

Attach SMM Profiles

% set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG signaling messageManipulation inputAdapterProfile REFER outputAdapterProfile HeaderModifications
% commit



Continue to:  Configure SBC for TLS