SBC Essentials & Configuration
SBC Essentials & Configuration
AudioCodes Academy
https://www.audiocodes.com/services-support/audiocodes-academy
Course Objectives
2
Lessons & Course Timetable
Day 1 Day 3
AudioCodes Introduction SBC Media Handling
AudioCodes Devices Management Interfaces Hands-on Lab 3 – SBC Transcoding
AudioCodes Documentation SBC Number & Message Manipulation
Gateways and SBC Product Line SBC Security
Hands-on Lab 1 – Management Interface Usage Hands-on Lab 4 – Header Manipulation
Day 2 Day 4
SBC Application Description Digital Gateways Basic Configuration
SBC Basic Terminology SBC Survivability
SBC Configuration SBC High Availability
Basic Debugging Tools Hands-on Lab 5 – SBC Survivability
SBC Wizard (optional) Certification Exam
Hands-on Lab 2 – SBC Routing
3
Lesson 1
AudioCodes Introduction
AudioCodes in a glance
https://www.audiocodes.com/corporate/about-audiocodes
5
Global Presence and Support
• Worldwide presence:
• Headquarters: Israel
• North America: USA and Canada
• APAC: Singapore, China, Japan, India, Korea, Australia, Hong Kong, etc.
• EMEA: Germany, UK, France, Netherland, Russia, Italy, South Africa, Poland, Sweden, etc.
• CALA: Brazil, Mexico, Argentina, Colombia, etc.
• Global Distribution Network covering more than 100 countries
• Support Centers covering all time zones
• 3 Logistics Centers in North America, EMEA and APAC
6
Broadest Portfolio of Products
Management/Apps
Routing Manager OVOC UMP Apps
Room Solutions
& IP Phones All-In-One
405 445 450/C450 470 Video Collaboration Bar Personal Webcam UC-HRS Speakers Conference Phone
Pure SBC
Mediant 2600/B Mediant 4000/B Mediant 90xx Mediant SE Software Edition
Hybrid SBC/Gateway
Mediant 500/L Mediant 800B/C Mediant 1000B Mediant 3100
Gateways/Adaptors
MP-2xx MP-1xx MP-124 MP1288
7
The Voice Experts @ Your Service
Test
5 10 20 25 30 35
9 3
12
End to End 9 3
Managed Services 6
8
Operational Services – ACTS & CHAMPS
• Two types:
• ACTS: Direct Support
• Tier 2-4
• 9x5 or 24x7
• CHAMPS: Back-to-Back Support
• Tier 3-4
• 9x5 or 24x7
• Not including installation, configuration, and provisioning (which can be purchased separately)
• Support available after AudioCodes products are implemented and in service
• Support is provided based on serial number entitlement check Extended Hardware Warranty
(RMA) included
• Software Maintenance and all S/W upgrades, patches, maintenance releases and major
version releases
• Certificate of Eligibility issued with each purchase
9
Technical Training – Certification Levels
• ACP courses:
• AudioCodes SBC: Advanced Interworking & Security
• AudioCodes SBC: Advanced Routing & Multitenancy
• AudioCodes SBC in Microsoft Teams Environment: Advanced
11
AudioCodes Website
https://www.audiocodes.com 12
Lesson 2
14
Management and Maintenance Options
Embedded Web Server Command Line Interface (CLI)
15
Assigning Networking Parameters
16
Default Factory IP Address
Product Default
MP-11x FXS and FXS/FXO devices – 10.1.10.10/16
MP-124 FXO devices – 10.1.10.11/16
MP-1288
Mediant 500/L/Li E-SBC
Mediant 800B/C E-SBC
Mediant 1000B E-SBC
Mediant 2600 SBC 192.168.0.2/24
Mediant 3100 SBC
Mediant 4000/B SBC
Mediant 9030/9080 SBC
Software SBC (Mediant SE/VE/CE)
17
Assigning IP Address – HTTP
192.168.0.2 /24
192.168.0.7 /24
18
Assigning IP Address – HTTP
19
Assigning IP Address – Command Line Interface (CLI)
• Establish a Console using COM/VGA, or remote using SSH/Telnet session with the device
20
Assigning IP Address – RS-232
Username: Admin
Username: Admin
Password: Admin Password: *****
Mediant 800#
21
Assigning IP Address – DHCP
• Dynamic Host Control Protocol: Provides a mechanism for allocating IP addresses dynamically so that
addresses can be reused
• After the Device is powered up if DHCP is enabled (DHCPEnable = 1), the Device attempts to obtain its IP
address and other network parameters from the DHCP server
22
Assigning IP Address – BootP
23
Configuration File (ini file)
24
Configuration File (ini file)
Stand-alone Parameters
Table Parameters
25
ini File Parameters
• The ini file can be loaded via BootP/TFTP, Web interface, or using the automatic update mechanism
• Case insensitive
• Subsection names are optional
• Lines beginning with semi-colon (;) as first character are ignored
• Carriage Return must be each line’s final character
• Number of spaces before and after equal ( = ) is irrelevant
• Values of string parameters must be placed between two single quotes ( ‘ ’ )
• Syntax errors in value can cause unexpected errors (may be set to wrong values)
• Syntax error in the parameter name is ignored (error message is generated)
• When a parameter is missing from the ini file, its default is assigned
Parameter_Name1 = Parameter_Value
Parameter_Name2 = Parameter_Value
Parameter_Name3 = ‘String’
; REMARK
26
ini File Table Parameters
• Tables are used in ini files to represent parameters that have several instances
(e.g., Coders, Proxy servers, Routing tables, etc.)
• Examples:
27
AudioCodes INI Viewer & Editor
• A simple viewer and editor for configuration (INI) files used by AudioCodes Media
Gateway and Session Border Controller (SBC) products
• Two Modes:
• View Mode:
• Standalone and Table parameters can be viewed
in a very friendly way
• Edit Mode:
• Standalone and Table parameters can be edited
(modified, added, removed, etc.) for a very easy
way of changing their contents
• Once this is done, the new INI file can be saved
and uploaded to the device in order to apply the
new configuration
28
Accessing the Web Interface
30
GUI Areas
Navigation Tree
31
Tool Bar
Button Description
Save Saves parameter settings to flash memory
Reset Resets the device
Opens a drop-down menu list with frequently needed commands:
Configuration Files to load or save an ini file
Auxiliary File to load auxiliary files such as: Dial Plans, Call Progress Tones, others
Actions
License Key to determine features, capabilities and available resources
Software Upgrade to upgrade the device's software
Configuration wizard
33
Modifying/Saving Parameters
• If you click the Apply button after modifying parameters a red rectangle appears
surrounding the Save button
• This is a reminder to save your settings to flash memory
• If you click the Apply button after modifying parameters that take effect only after
a device reset, a red rectangle appears surrounding the both, the Save and Reset
buttons
• This is a reminder to later save your settings to flash memory and reset the device
34
Stand-alone Parameters Indications Meaning
35
Table Parameters – General Description
Page title (name of table) Navigation bar for scrolling Filter for searching
Also displays the number of through the table's pages parameters and values
configured rows as well as the Sort can be done
number of invalid rows by any column
37
Numbers Notation for Routing and Manipulation
• Flexible numbers notations for describing the prefix and/or suffix Username Pattern
5
source and/or destination phone numbers and SIP URI usernames: 5*
5#
▪ Prefix [n-m] or Suffix (n-m) (5)
▪ Represents a range of numbers 2[1-4,7,9]
[100-150,222,244,300-499]
6[100-300]
▪ Prefix [n,m,...] or Suffix (n,m,...) 6[100-300]#
▪ Represents multiple numbers 976(99)
▪ Multiple ranges such as [n-m,s-t] are also supported (88[1-4])
▪ Up to three digits can be used to denote each number [5000000-5000099]
7x*
▪ x (letter ‘x’) 1xxx
▪ Represents any single digit [1-5][12,34][500-599]
1xxx#
976[4,5,7-9]xxx#
▪ * (asterisk symbol) 2[2,6,7,9]
▪ Represents any number 2[1-4]
(555)
▪ # (Pound symbol) *
▪ Represents the end of a number
38
Numbers Notation – Examples
• [2,3,4,5,8]xxx
• Represents four-digit numbers or more that start with 2, 3, 4, 5 or 8
• Can write: [2-5,8]xxx
• [5200-5299]#
• Represents four-digit numbers that start with 5200 to 5299
• 12345
• Represents any number that starts with 12345
• 12345xx#
• Represents seven-digit numbers that start with 12345 (from 1234500 to 1234599)
• 4[000-599]#
• Represents four-digit numbers that start with 4 [4000 to 4599]
• (100)
• Represents any number that finishes with 100
• (266[1-9])
• Represents any number that finishes with 2661 to 2669
• 1[2,7][33,66]
• Represents any number that start with 1233, 1266, 1733 or 1766 39
Fields to Match
• Device attempts to match patterns at the top of the table first (first match)
• More specific rules should be at the top and more generic ones at the bottom
• Tables may contain parameters assigned a value which is a row referenced from
another table
41
Table Parameters Invalid Values Indications
• When adding a row:
• If a mandatory parameter’s value, which is a row referenced from another table is not assigned,
after clicking Apply, an error message is displayed at the bottom of the dialog box
• Clicking Cancel closes the dialog box and the row is not added to the table
• To add the row, you must configure the parameter
42
Table Parameters Invalid Values Indications
• When editing a row:
• If a parameter’s configuration is changed so that it's no longer assigned with a referenced
row from another table, when the dialog box is closed, the Invalid Line icon appears for
the table in which the parameter is configured, in the shown locations:
Page title of the table. The total number of invalid rows in the
table is also displayed with the icon
Page title of the table. The total number of invalid rows in the table
is also displayed with the icon
• Parameter names (standalone or table) and values can be searched in the Web interface
• The search key can include the full parameter name (Web or ini file name) or a substring of it
• For a substring, all parameters containing the substring in their names are listed in the search result
• The search key for a parameter value can include alphanumeric and certain characters
• The key can be a complete value or a partial value
• When the device completes the search, it displays a list of found results based on the search
key
• Each possible result, when clicked, opens the page on which the parameter or value is located
45
Searching for Configuration Parameters
46
Setup Menu: IP Network Option
• Home Page: NETWORK VIEW
Ethernet Groups
can be, edited
or viewed
Physical Ports
can be, edited
or viewed
47
Setup Menu: Signaling & Media Option
• Home Page: TOPOLOGY VIEW
Trunk Groups
can be added IP top view (i.e.
Tel view
related to the WAN)
(i.e. related to the PSTN)
SIP Interfaces can be added SIP Interfaces can be added Media Realms can
and shown at the top or and shown at the top or be added and shown
bottom (GW application) bottom (SBC application) at the top or bottom
48
Setup Menu: Signaling & Media Option
• Home Page: TOPOLOGY VIEW
Click to edit,
show, or delete
parameters or
tables
49
Setup Menu: Signaling & Media Option
• Home Page: TOPOLOGY VIEW
50
Setup Menu: Administration Option
• Home Page: TIME & DATE
51
Web Local Users Table
User levels:
• Monitor
• Administrator
• Security Administrator
• Master 52
Maintenance Actions
• Reset Device: After a Web reset, the device starts from Flash
• Lock: The device doesn't accept any new incoming calls
• Save to Flash: Save the running configuration to the memory
• Graceful Option: Shutdown will perform only after X configured sec. or no more active traffic exists
• Yes: The device locks only after a user-defined duration, configured in the 'Lock • Enable to terminate (close) existing TLS/TCP client
Timeout' field. During this interval, no new traffic is accepted, allowing only connections and reject new incoming TLS/TCP client
existing calls to continue until the timeout expires. If at any time during this connections during the locked state.
timeout there are no active calls, the device locks. If there are still active calls • Disable (default), existing client connections will
when the timeout expires, the device terminates them and locks remain, and incoming TLS/TCP client connections
• No: The device locks immediately, terminating all existing traffic will be accepted during the locked state
53
Maintenance: Configuration File
54
Configuration Package Files
• ini.ini (ini configuration file)
• LOGO.dat (image file used as the logo in the Web interface)
• FAVICON.dat (favicon file used for Web browsers)
• CPT.dat (Call Progress Tone file)
• PRT.dat (Pre-recorded Tone file)
• AMD.dat (Answer Machine Detection file)
• SBC_Wizard.dat (SBC Configuration Wizard template file)
• CAS file – present only if a CAS file was previously loaded to the device
• Certificate files (<ctx_id>.crt, <ctx_id>.root, <ctx_id>.pkey)
55
Maintenance: Auxiliary Files
• Various auxiliary files can be
loaded to the device
56
Maintenance: Upgrading & Downgrading Software
• The device can be updated with software (cmp file), configuration (ini file),
auxiliary files and license key using:
• Web interface
• Automatic Update Mechanism
• BootP/TFTP utility
57
Maintenance: License Key
• Supplied with SBC and digital gateways (not relevant for MP-1xx)
• Determines features, capabilities and available resources
• Provided in string format or in a txt file to be loaded to the device
• Stored in the device's non-volatile flash memory
• After loading the new key, the device must be reset
• Two options for manage the license:
• Local on the SBC
• By AudioCodes OVOC
58
License Types for SBCs
• Local License
• By loading a license key to the device, without requiring the OVOC
• Fixed License
• Allows a 'tenant' operator to update licenses from a central pool in a simple process
• The operator can allocate and de-allocate the licenses for the devices in the pool according to their capacity
requirements
• Requires SBCs loaded with version 7.0 or later
59
Local License Key
60
Device License Key in Fixed Pool Mode
61
Device License Key in Cloud Mode
62
Device License Key in Flex Pool Mode
63
Monitor Menu
• Home Page: MONITOR
64
Device Information
65
Troubleshoot Menu
66
Auto-Completion Editor
• Auto-completion for parameters whose values are configured using a special syntax
• An Editor button is displayed alongside their fields, which when clicked, opens a syntax editor
• As text is typed in the field, the user is prompted with optional syntax
67
AdminPage
68
Lesson 3
AudioCodes Documentation
Lesson Objectives
70
Obtaining AudioCodes Documentation
• You can access all AudioCodes' documentation from AudioCodes Web site:
• Technical documentation (user manuals, hardware installation manuals, configuration
and release notes)
• Homologation material (regulatory information)
• Partner/channel material (interoperability guides etc.)
• Marketing material (white papers, application notes, product notices, etc.)
71
Obtaining Document
https://www.audiocodes.com/library/technical-documents 72
Obtaining Document (Cont.)
• Use the following filters to search
for you document:
73
Hardware Installation Manual – Specific Documentation
74
User’s Manual – Specific Documentation
75
Release Notes
• Release Notes
• One per software release
• Includes:
• New features
• Updates
• Bugs fixing
• Workarounds on existing constraints
• Others
76
Complementary Guides
• Complementary Guides
• Includes
• Reference Guides
• Design Guides
• Security Guidelines
• Utilities Guides
• Others
• Identified by software release version
77
Configuration Notes
• Configuration Notes
• Document providing a detailed description on how
to configure a specific feature/function/application
for a product
• Normally referenced by the User’s Manual
78
Check your Learning
79
Lesson 4
81
Analog Gateways Overview
• Firmware file:
• MP-11x gateways (FXS and FXO) use the same firmware (.cmp) file *
• MP-124 gateway requires it own firmware file *
• MP-1288 gateway requires it own firmware file
Note: The latest maintenance firmware version for MP-11x and MP-124 is 6.6
82
Analog Gateways Portfolio
Power Supply AC AC AC AC / DC AC / DC
83
Digital Gateways Overview
Mediant 5000
Mediant 8000
Note:
• The latest maintenance firmware version for Mediant 5000 and 8000 is 6.6
84
SBC Portfolio
Hybrid SBC/Gateway
Mediant 500/L Mediant 800B/C Mediant 1000B Mediant 3100
Pure SBC
Mediant 2600 Mediant 4000/B Mediant 90xx Mediant SE Software Edition
85
Hybrid SBC Portfolio
Mediant 500L/Li E-SBC Mediant 500 E-SBC Mediant 800B/C E-SBC Mediant 1000B E-SBC Mediant 3100 SBC
MSBR √ √ √ X X
OSN X X √ √ X
86
Pure SBC Portfolio
Mediant 2600 SBC Mediant 4000/B SBC Mediant 9030/9080 SBC Mediant SE
Large Enterprise, Large Enterprise,
Enterprise, Service Providers,
End customer Service Providers, Service Providers,
Contact Center OEM
Contact Centers Contact Centers
SIP trunking, SIP trunking, SIP Trunking,
Application SIP Trunking
Service Provider Access SBC Service Provider Access SBC SP Access SBC
Sessions 600 5000 30000/70000 70000
SRTP-RTP 600 3000/5000 30000/40000 40000
600 2400/5000 9080 only - 30000 25000
Transcoding
(with MPM4) (with MPM) (with Media Component) (with Media Component)
Registers Up to 8000 Up to 20000 Up to 200000/500000 Up to 500000
OSN √ √ X X
87
Virtual & Cloud SBC Portfolio
88
Open Solutions Network (OSN) Server Hosted Mediant
• Mediant 1000B
Mediant • Mediant 800B
• Mediant 2600B (just for SBA)
Types • Mediant 800C
• Mediant 4000B
89
Multi-Service Business Routers – MSBR
• Products:
• Mediant 500/L/Li
• Mediant 800B/C
90
Media Processing Module (MPM)
91
Media Transcoder (MT) and Media Transcoding Cluster (MC)
92
Media Transcoding Cluster (MC)
• The Media Transcoding Clusters are "hidden" from the endpoints being serviced by the SBC
• Requires a suitable License Key
93
SBCs journey to the cloud
Active calls
Dynamic
15000 allocation 0.6
10000 0.4
5000 0.2
0 0
calls Resources
94
Mediant Cloud Edition SBC (Mediant CE)
• Separated signaling and media processing (built out of dedicated functional blocks)
• Elastic Media Cluster (traffic-based scalability)
• Full SBC functionality
• Single management point
• Multi Cloud (Amazon AWS and Microsoft Azure)
• Built-in HA
CLI
SC SC REST
Stack API
Manager
MC MC MC MC MC … Automation
- New SBC Stack Manager
- REST API for all actions
media media media - CLI for scripting languages
Virtual infrastructure - NFV and DevOps API
(compute, storage, networking)
95
Hands-on Lab 1
• SBC functions
98
SBC Definition
• A device/application which:
• Manages a VoIP session by performing:
• Session setup
• Call conducting
• Session tear down
• Enforces Security, QoS and Call Admission Control (CAC)
• Often installed at a demarcation point between one network segment (Un-Trusted)
and another (Trusted)
99
What are Session Border Controllers For?
100
SBC Implementations
101
Applications / Topologies
Enterprise
Network
IP-Phones users
FEU
IP-PBX ITSP
102
Applications / Topologies
• Hosted IP-PBX
Enterprise
Network
IP-Phone users
SBC
LAN WAN
Hosted
IP-PBX
103
Applications / Topologies
IP-Phones Enterprise
Network
LAN 1
SBC
IP-Phones
LAN 2
IP-PBX
104
Logical SBC Connections – One Leg LAN
IP-Phone
Firewall
LAN WAN
IP-PBX
DMZ
ITSP
105
Logical SBC Connections – One Leg DMZ
IP-Phone
Firewall
LAN WAN
IP-PBX
DMZ
ITSP
106
Logical SBC Connections – One-Leg DMZ and One-Leg LAN
IP-Phone
Firewall
LAN WAN
IP-PBX
DMZ
ITSP
107
Physical SBC Connections
• VLAN-Aware Switch
LAN
• Only 1 port required (1 cable)
• Optional: 2 ports, 1+1 redundancy (2 cables)
DMZ
108
SBC VoIP Features
• NAT Traversal
• Transcoding
• Topology Hiding
• VoIP Firewall
• SIP Routing
• SIP Normalization
• Survivability
109
NAT Traversal
IP-PBX
FW Public IP address
182.30.15.20
Enterprise WAN
LAN
110
NAT Traversal (cont’d.)
Public
IP PBX
Internet
Enterprise LAN
FEU
• Coder Transcoding
• RTP <-> SRTP
• Fax/Modem translations
• RFC 2833 <-> Transparent DTMF <-> SIP INFO
• Transrating
• Voice gain adjustments
SRTP RTP
G.711 G.729
IP/PBX ptime:20 T.38 ITSP
SfB RFC 2833 ptime:30 Soft Switch
SIP INFO
112
Topology Hiding
113
Security – VoIP Firewall
• SIP Signaling
SIP Invite
• SIP classification
• Deep Stateful Packet Inspection (SPI) of all SIP signaling packets
• Packets not belonging to a valid SIP dialog are discarded
Discard Message
• Opening pin holes according to Offer/Answer negotiation
• DPI of all RTP packets Authenticate
Layer 5-7
SBC
Firewall
Message admitted
114
Comprehensive Security
IDS Security
Abnormal behavior detection Server
Enterprise
Core
CAC
Classification #calls,
Message /Routing call rate,
TLS and Policy SIP layer bit rate,…
Internet/Peers SRTP Malformed access list
SIP SIP
Context
Identification
115
SBC Routing
116
SIP Normalization
117
SBC Survivability
118
Lesson 6
120
Main SBC Operation Modes
• B2BUA
• Maintains independent sessions toward the endpoints
• Processing an incoming request as a User Agent Server (UAS) on the inbound leg
• Processing the outgoing request as a User Agent Client (UAC) on the outbound leg
• SIP messages are modified regarding headers between the legs
• The device's interworking features may be applied
121
Signaling Routing Domain (SRD)
122
Media Realms
123
SIP Interface
124
IP Group
• An entity with a set of definitions and behaviors which represents a SIP Group in the IP
Network
• 3 Types of IP Group:
• Server: Used when the destination address is known
• User: Represents a group of users where their location is dynamically obtained by the device when
REGISTER
• Gateway: Applicable where the SBC receives requests to and from a gateway representing multiple users
• Used to classify incoming SIP dialog-initiating requests to a source IP Group, based on Proxy
Set ID
• Used in IP-to-IP routing rules to denote the source and destination of the call
• It is highly recommended not do modify IP Group ID 0
• You should configure this specific IP Group when it is used for the Gateway Interface (e.g., PSTN fallback)
125
Proxy Set
126
IP-to-IP Routing
• IP-to-IP routing rules define the routes for routing calls between SIP entities
• The routing rules typically employ IP Groups to denote the source and destination
of the call
• Various other source and destination methods can be used
• For example, the source can be a source host name while the destination can be an IP
address or based on an LDAP query
127
SBC Routing
• IP-to-IP call destination can be:
• Proxy Set associated with the destination IP Group
• Based on Hunt Group
• Registration Database and User IP Group
• Destination address based on: IP-Address, Host Name (FQDN),
Port, Transport Type, SIP Interface
• Based on incoming Request-URI
• Gateway
• Internal
• Alternative routing
• Re-routing of SIP requests
• Call Forking
• IP Group Set
• Destination Tag
• Least Cost Routing (LCR)
• Based on Dial Plan File
• External ENUM server query
• External LDAP server query
• Third-party Routing Server
128
Inbound and Outbound Number Manipulation
• IP-to-IP Inbound and Outbound manipulation lets you manipulate the user part of
the SIP URI in the SIP message for a specific entity
• Inbound manipulation is done on messages received from the SIP entity
• Outbound manipulation is done on messages sent to the SIP entity
User@Host
[email protected]
129
Message Manipulation Set (MMS)
130
Classification Process
Reject Dialog
Leg1
Incoming Outgoing
SIP Interface Classification Routing
Message Message
Leg2
Pre-Parsing
Manipulation Inbound Outbound
(SIP Interface) Message Manipulation Set Message Manipulation Set
(IP Group) (IP Group)
Pre-Classification
Manipulation
(SIP Interface)
Inbound Outbound
Source and/or Destination Source and/or Destination
Number Manipulation Number Manipulation
(Optional)
132
SIP Trunk Example
IP-PBX
TLS 5061
SBC
DefaultSRD
Analog Lines
PSTN
PSTN
133
Lesson 7
SBC Configuration
Lesson Objectives
135
Topology Configuration Example – One Leg LAN
Configuration Stage:
SBC IP: 10.15.11.1 /16 ITSP 1. IP Interface
IP-PBX
Server 1: 200.100.10.5 2. SRD
IP: 10.15.11.2 /16
Server 2: 200.100.10.1 3. Media Realms
Transport Type: TCP 4. SIP Interface
Transport Type: UDP
Listening Port: 5050 5. Proxy Set
Listening Port: 5060
Media Realm: 7000 (50 legs) 6. IP-Group
Media Realm: 8000 (50 legs) 7. IP Profile
Coder: G.711Alaw
Coder: G.711Alaw 8. Routing
9. NAT Translation
10. Classification
Firewall
LAN IP: 10.15.0.1
WAN: 200.100.10.2
136
Configure IP Addresses – IP Interface Table
137
IP Address – Physical to Interface
138
Initial Topology View
Default values for SRDs, IP Groups, Proxy Set, SIP Interfaces, Media Realms
139
SRD Table
• Default SRD is already pre-configured
140
Media Realm Table
• The default Media Realm is used for SIP Interfaces and IP Groups for which you have not
assigned a Media Realm
• Ports are allocated in chunks of 2, 4, 5 or 10 (device dependent) called media session legs
141
Media Realm Extensions
• Media Realm Extensions let you configure a Media Realm with different port ranges or/and
different interfaces
• This means that the Media Realm is distributed across multiple interfaces
• The number of Media Realm Extensions that can be configured depend on the platform
142
Configuring Media Realms – Example
143
SIP Interface Table
• Default SIP Interface is already pre-configured and assigned to the default SRD
• Bounded to Layer-3 network
• Defines a local listening port for SIP signaling traffic on a local logical IP network
144
SIP Interface Table Record
• By default, if you do not configure a name, the device
automatically assigns the name • Assigns a Media Realm
• Defines the SIP response code that the device sends if a received SIP request (OPTIONS, REGISTER, or
INVITE) fails the SBC Classification process
• The valid value can be a SIP response code from 400 through 699, or it can be set to 0 to not send any
response at all (recommended for security reasons)
• The default response code is 500 (Server Internal Error)
145
Configure SIP Interface Table – Example
146
IP to Local Signaling and Media Resources
• Multiple SIP Interfaces represent multiple layer 3 networks
• Media Realm shared between multiple SIP Interfaces
Media Realm 1
LAN
IP Interface 1
Physical Network 1
SIP Interface 2
Media Realm 2
SIP Interface 3
SIP Interface 4
IP Interface 3
Media Realm 4
WAN/DMZ
Physical Network 2
SIP Interface 5
SIP Interface 6
147
Proxy Sets Table
148
Proxy Sets Table
Parking or Homing
Defines an arbitrary
name to easily identify
the Proxy Set Set Hot Swap
Enable Keep-Alive
Defines how the device classifies IP calls to the Proxy Set
This parameter is applicable only if the IP Group table's
parameter, 'Classify by Proxy Set' is set to Enable
149
Proxy Address Child Table
150
Define Proxy Set IP-PBX – Example
151
Define Proxy Set ITSP – Example
152
IP Group Table
153
IP Group Table – General Parameters
IP Group Name
• Defines a hostname, which the device uses to overwrite the hostname of the URI in certain SIP headers. When the device forwards a SIP message
to this IP Group, the configured hostname overwrites the host part in SIP headers that are concerned with the source of the message
• The parameter is applicable only when the IP Group is the destination of the call
• This parameter has higher priority than the 'SIP Group Name' parameter of the source IP Group
155
IP Group Table – SBC Other Tabs
156
Define IP Group 1 (IP-PBX) – Example
157
Define IP Group 2 (ITSP) – Example
158
IP Profile
159
IP Profile
• The configurable parameters for the IP Profile are divided into sections:
• General parameters
• Media Security parameters Related to SRTP
• SBC Signaling parameters
• SBC Early Media parameters
• SBC Registration parameters
• SBC Forward and Transfer parameters Related to SIP Signaling on the SBC
• SBC Hold parameters
• SBC Media parameters
• SBC Fax parameters
• Media parameters Related to Media on the SBC
• Quality of Service parameters
• Jitter Buffer parameters
• Gateway General parameters
• Voice
• Gateway DTMF parameters
• Gateway Fax and Modem parameters
• Answer Machine Detection parameters
• Local Tones parameters
160
IP Profile
161
IP to IP Routing Table
162
IP to IP Routing Table – General and Match Sections
Route Row / Alternative Route / Forking Group
163
IP to IP Routing Table – Action Section
Determines the destination type to which the outgoing SIP dialog is sent.
This can be IP Group, Destination Address, ENUM, LDAP, Request URI, Gateway, etc.
Defines a SIP response code (e.g., 200 OK) or a redirection response. The
parameter is applicable only when the 'Destination Type' parameter in this
table is configured to Internal – example: Reply(Response='200') 164
Configuring IP-to-IP Call Routing Rules – Example
165
Define NAT Translation – Example
• NAT rules for translating source IP addresses per VoIP interface:
• SIP Control
• Media Traffic
• The Global address is set in the SIP Via and Contact headers as well as in the o= and c= SDP fields
166
First Incoming Packet Mechanism for Remote Users
• The device identifies whether the UA is located behind NAT by comparing the
source IP address of the first received media packet with the IP address and UDP
port of the first received SIP Invite message (Contact header's IP address) when the
SIP session was started
167
Define Classification Rules (Optional)
168
Message Conditions (Optional)
169
Lesson 8
• Collecting data
171
Collecting Data
172
What is Syslog?
173
Syslog Message Format - Example
08:59:10.239 10.15.11.1 local0.notice [S=1974] [SID=a929c9:21:24] ( lgr_sbc)( 1773) Classification Succeeded - Source IP Group #2 (ITSP), - Dest Routing Policy #0
08:59:10.239 10.15.11.1 local0.notice [S=1975] [SID=a929c9:21:24] ( lgr_flow)( 1774) (#3091)SBCRoutesIterator::Change State From: InitialCSRRouting To : InitialRouting
08:59:10.240 10.15.11.1 local0.notice [S=1976] [SID=a929c9:21:24] ( lgr_flow)( 1775) (#3091)SBCRoutesIterator::Change State From: InitialRouting To : AlternativeRouting
08:59:10.241 10.15.11.1 syslog.error 4 packets missing
08:59:10.241 10.15.11.1 local0.notice [S=1981] [SID=a929c9:21:24] ( media_service)( 1780) ServicesMngr: Allocate SBC leg. current active: 1 and max is: 120
08:59:10.242 10.15.11.1 local0.notice [S=1982] [SID=a929c9:21:24] ( lgr_flow)( 1781) (#3091)SBCRoutesIterator::Next route found: Rule #1, Route by: IPGroup , IP Group ID: 1 (SfB), Live:True
08:59:10.242 10.15.11.1 local0.notice [S=1983] [SID=a929c9:21:24] ( lgr_sbc)( 1782) Routing Succeeded -IP2IPRouting Rule #1
Timestamp Message Sequence Number Unique SIP call session and device identifier
and IP Address In this example 4 messages Example: SID=a929c9:21:24
were lost <last 6 characters of device's MAC address>
<number of times device has reset>
<unique SID counter indicating the call session
Type of Message
Syslog generates the following types of messages:
• error: Indicates that a problem has been identified that requires immediate handling
• warning: Indicates an error that might occur if measures are not taken to prevent it
• notice: Indicates that an unusual event has occurred
• info: Indicates an operational message
• debug: Messages used for debugging
174
Enabling Syslog
• Enable Syslog
• Set Syslog Server IP
address and port
• Select the Syslog level
(recommended ‘Detailed’)
175
Message Log
• View the Syslog messages sent by the device
176
AudioCodes Syslog Viewer
• A Syslog application provided with the student utilities kit
177
AudioCodes Syslog Viewer
Stop/Start Writing Log Pause/Resume Logging Flow Diagram
Clear On-Line Syslog Zoom In/Out Disable Auto scroll Options Search Text
Open Saved File Open External Viewer Freeze Display Search Options Search
178
AudioCodes Syslog Viewer
• Syslog can be enabled simultaneously in several devices, reporting to the same Syslog Server
179
AudioCodes Syslog Viewer
• SIP/SDP messages are properly arranged to be easily identified for analysis
180
AudioCodes Syslog Viewer
• The SIP/SDP flow diagram can be viewed, refreshed and exported
SIP Flow
Diagram
181
AudioCodes Syslog Viewer
• The SIP/SDP <-> ISDN flow diagram can be viewed
182
AudioCodes Syslog Viewer
• Each arrow on the SIP/SDP flow diagram points to the right place in the trace
Highlighted
Points to
SIP Flow
Diagram
183
AudioCodes Syslog Viewer
• CDR info
184
AudioCodes Syslog Viewer
• Extracting Single Call
185
AudioCodes Syslog Viewer
Options
186
Lesson 9
• User-friendly online tool designed to get AudioCodes Mediant SBC up and running
quickly and easily
• Step-by-step setup process, presenting the configuration options in a clear way
• Eliminates configuration errors and troubleshooting
• Easy to install Windows-based application
• Includes predefined configurations for a wide range SBC deployments (SIP trunk,
hosting etc.) with a variety of service providers and IP-PBXs
• Automatic software updates
• Built-in online help
• Available as web built-in and stand-alone application
188
Welcome Page
189
SIP Trunk Configuration
190
System Parameters
191
Interfaces
192
IP-PBX Parameters
193
ITSP Parameters
194
Number Manipulation
195
Remote Users (FEU)
196
Summary
197
Finish
198
Hands-on Lab 2
SBC Routing
Lesson 10
201
SBC Media Handling
• Media Behavior – establishing, managing and terminating media sessions within SIP protocol
• Media sessions are created using SIP Offer/Answer mechanism and, if successful, the result is
a bidirectional media flow (Audio, Fax, Modem, DTMF)
• Each Offer/Answer may be negotiated on more than one media session of different types
(e.g., Audio and Fax, Audio and Video)
• In SIP dialog, multiple Offer/Answer transactions may occur
• Each transaction may change media session characteristics (IP address, port, coders, media
types and RTP mode)
202
Media Capabilities
• NAT Traversal
• SBC changes SDP address to its own
204
Media Handling Modes
1. No Media Anchoring
2. Media Anchoring without Transcoding (Transparent)
3. Media Anchoring with Transcoding
IP-PBX ITSP
205
No Media Anchoring
• Enables SBC signaling capabilities without handling RTP/SRTP (media) flow between
remote SIP UAs
• RTP packet flow does not traverse the SBC; instead, 2 SIP UAs establish a direct RTP/SRTP
flow between one another
• Signaling continues to traverse SBC with minimal intermediation and involvement to
enable SBC capabilities such as routing
SfB IP-PBX
SIP Signaling
Media 206
No Media Anchoring
• Benefits:
• Saves network bandwidth
• Reduces CPU usage (no RTP/SRTP handling)
• Avoids interference in SDP negotiation and header manipulation on RTP/SRTP
207
No Media Anchoring – SDP Offer/Answer
SBC IP address: Incoming SDP Offer Outgoing SDP Offer
LAN: 10.15.11.1
v=0 v=0
o=AC 256624978 46177966 IN IP4 10.15.7.18 o=AC 256624978 46177966 IN IP4 10.15.7.18
s=SBC-Call s=SBC-Call
t=0 0 t=0 0
m=audio 6080 RTP/AVP 8 18 96 m=audio 6080 RTP/AVP 8 18 96
c=IN IP4 10.15.7.18 c=IN IP4 10.15.7.18
a=sendrecv a=sendrecv
a=ptime:20 a=ptime:20
IP-PBX1 a=rtpmap:8 PCMA/8000 a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000 a=rtpmap:18 G729/8000 IP-PBX2
a=fmtp:18 annexb=no a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000 a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15,16 a=fmtp:96 0-15
209
No Media Anchoring – SIP Interface Level
• Enables direct media flow or media bypass between endpoints associated with the SIP
Interface for SBC calls
• Disable = (Default) Media Anchoring is employed, whereby the media stream traverses the device
• Enable = Direct Media is enabled; Media stream flows directly between the endpoints
• Enable when Same NAT = Direct Media is enabled Media stream flows directly between the
endpoints if they are located behind the same NAT
210
No Media Anchoring – IP Profile Level
• Direct media occurs between all UAs whose IP Profiles have the same tag value
(non-empty value)
211
Media Anchor without Transcoding (Transparent)
IP-PBX ITSP
SIP Signaling
Media
212
Media Anchoring without Transcoding (Transparent)
• To direct RTP to flow through SBC, all IP address fields in the SDP are modified:
• IP-Address, Session and Version ID
• Session connection attribute
• Media connection attribute
• Media port number
213
Transparent – SDP Offer/Answer
SBC IP addresses: Incoming SDP Offer Outgoing SDP Offer
LAN: 10.15.11.1
WAN: 200.100.10.20
v=0 v=0
o=PBX 257389510 1288747123 IN IP4 10.15.7.18 o=AC 2140747574 1560030007 IN IP4 200.100.10.20
s=SBC-Call s=SBC-Call
t=0 0 t=0 0
m=audio 6090 RTP/AVP 8 18 96 m=audio 7030 RTP/AVP 8 18 96
c=IN IP4 10.15.7.18 c=IN IP4 200.100.10.20
a=sendrecv a=sendrecv
a=ptime:20 a=ptime:20
IP-PBX a=rtpmap:8 PCMA/8000 a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000 a=rtpmap:18 G729/8000 ITSP
a=fmtp:18 annexb=no a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000 a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15,16 a=fmtp:96 0-15
• SBC performs transcoding when there are no common coders between 2 UAs involved in a
specific session
• RTP traverses the SBC, and each leg uses a different coder or coder parameters
• Transcoding is performed when an SDP answer from one UA does not include any coder
included in offer previously sent by the other UA
• For transcoding, SBC can be configured to add media capabilities to UAs of a specific IP
Group, then perform transcoding when selected coder in answer SDP doesn’t appear in
original offer
• DSP resources are required
IP-PBX ITSP
SIP Signaling
Media A
Media B 215
Transcoding – SDP Offer/Answer
SBC IP addresses: Incoming SDP Offer Outgoing SDP Offer
LAN: 10.15.11.1
WAN: 200.100.10.20 v=0
v=0 o=AC 1996517464 72690348 IN IP4 200.100.10.20
o=PBX 1741090166 564924681 IN IP4 10.15.7.18 s=SBC-Call
s=SBC-Call t=0 0
t=0 0 m=audio 7040 RTP/AVP 8 18 9 96 Extended Coder
m=audio 6120 RTP/AVP 8 0 96 c=IN IP4 200.100.10.20
c=IN IP4 10.15.7.18 a=sendrecv
a=sendrecv a=ptime:20
IP-PBX a=ptime:20 a=rtpmap:8 PCMA/8000
a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 ITSP
a=rtpmap:0 PCMU/8000 a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000 a=rtpmap:9 G722/8000
a=fmtp:96 0-15,16 a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
217
SBC Virtual (VE), Cloud (CE) and Server (SE) Editions
218
Media Security
• Enables Secure Real-Time Transport Protocol (SRTP)
219
SRTP-RTP Transcoding
• SBC supports SRTP-RTP transcoding
• IP Profile parameter SBC Media Security Mode enforces
SBC legs to use SRTP/RTP
• Options:
• As is: SBC passes the media as is (default)
• Secure: SBC leg negotiate only SRTP media lines
• RTP media lines are removed from incoming SDP Offer/Answer
• Not Secure: SBC leg negotiate only RTP media lines
• SRTP media lines are removed from incoming Offer/Answer
• Both: Each Offer/Answer is extended (if it hasn’t been already)
to two media lines – one RTP and the other SRTP
• Offer Both - Answer Prefer Secured: The device prefers secured
media on the outgoing SDP answer
220
Extension Coders
Add G.729
G.711 + G.723 G.711 + G.723 + G.729
Group 2
Extended coder list contains:
G.711, G.729
221
Extension Coders
• Select from ‘Coder Name’ drop-down
222
Extension Coders
• Assign Coder Group to IP Profile
223
Allowed Coders Group
Remove G.723
G.723 + G.711 G.711
Group 2
Allowed Coders Group contains:
G.711
224
Allowed Coders – Incoming Offered
Call Dropped
G.723 + G.711
Group 1 Group 2
Allowed Coders Group contains: Allowed Coders Group contains:
G.726 G.711
G.723
Remove G.723
G.723 + G.711 G.711
Group 1 Group 2
Allowed Coders Group contains: Allowed Coders Group contains:
G.711 G.711
G.726 G.723
225
Allowed Audio Coders Group
226
Assign Allowed Audio Coder Group to IP Profile
227
Allowed Coders Mode
• Restriction
• Checks for a match between Allowed Coders of the incoming group and the offered coders
• At least one must match
• SBC removes all coders arriving in incoming SDP except matched coders in outgoing
Allowed Coders Group (only coders common to offered SDP and Allowed Coders Group are
used)
• Preference
• SBC reprioritizes coders based on Allowed Coders Group
• The coders received in the SDP offer are listed after the Allowed Coders
• Restriction and Preference
• Enables both, removes disallowed coders and reprioritizes coders
228
Allowed Coders Mode
• Determines mode of Allowed Coders feature
• Impacts Extension Coders priority
• Configured in IP Profile Settings (SBC Media Section)
229
Change Coder Priority
230
Extended Coders Behavior
• Orders the coders in the outgoing SIP message
• Applicable only if an Extension Coders Group
is assigned to the IP Profile
• Doesn’t Include Extensions: Extension coders
are added at the end of the coder list (default)
• Include Extensions: Extension coders arranged
according to order in the Allowed Coders Group
table
231
Change Coder Priority – Include Extensions
232
Coder Transcoding Flow
Server 1 Server 2
SBC
Extension
Allowed Coders Extension Allowed
Coders (not use) Coders Coders
Call 1 IP Group 1 IP Group 2
IP Profile IP Profile
Call 2
Allowed Extension Extension Allowed
Coders Coders Coders Coders
(not use)
233
Media Handling Example 1
IP-PBX: ITSP:
G.711A-law G.729
G.729
234
Media Handling Example 1
G.729
No Change
G.729
235
Media Handling Example 2
IP-PBX: ITSP:
G.711A-law G.729
G.729 G711A-Law
236
Media Handling Example 2
• To avoid G.711A negotiation, remove it from the outgoing offer and allow just G.729
237
Media Handling Example 2
• In ITSP’s IP Profile, assign the Allowed Audio Coders Group, to offer only G.729
238
Media Handling Example 2
G.729
No Change
G.729
239
Media Handling Example 3
IP-PBX: ITSP:
G.711A-law G.729
240
Media Handling Example 3
• Add G.729 and G.711A to the outgoing offering:
• Create a Coders Group (AudioCodersGroup_2) and select G.729 and G.711A from the drop-down
241
Media Handling Example 3
• In ITSP’s and the IP-PBX’s IP Profiles, assign the Extension Coders Group
(AudioCodersGroup_2), to add the miss coders to the offering
242
Media Handling Example 3
G.729 G.711A
Transcoding Transcoding
G.711A G.729
243
Media Handling Example 4
IP-PBX: ITSP:
G.711A-law G.729
G.711U-law G.711A-law
G.723 G.726
244
Media Handling Example 4
• Create an Allowed Audio Coders Group and select G.729, G.711A and G.726 coders
245
Media Handling Example 4
• Add G.729 and G.726 to the outgoing offering:
• Create Coders Group (AudioCodersGroup_2) and select G.729 and G.726 coders
246
Media Handling Example 4
• ITSP IP Profile:
• Extension Coders Group (AudioCodersGroup_2), to add G.729 and G.726 to the outgoing
• ITSP Allowed Audio Coders Group, to remove G.711U and G.723
• Allowed Coders Mode = Restriction and Preference, to perform both
• Media Settings:
• Extended Coders Behavior: Include Extensions
247
Media Handling Example 4
Remove
G.711U+G.723
G.729+G.711A+G.726
G.729
Transcoding
G.711A
248
Hands-on Lab 3
SBC Transcoding
Lesson 11
251
Reminder: CMR Process
Reject Dialog
Leg1
Incoming Outgoing
SIP Interface Classification Routing
Message Message
Leg2
Pre-Parsing
Manipulation Inbound Outbound
(SIP Interface) Message Manipulation Set Message Manipulation Set
(IP Group) (IP Group)
Pre-Classification
Manipulation
(SIP Interface)
Inbound Outbound
Source and/or Destination Source and/or Destination
Number Manipulation Number Manipulation
(Optional)
252
SBC Number Manipulation
253
SBC Inbound Number Manipulations
• Configure rules to manipulate SIP URI user part (source and destination)
of inbound SIP dialog requests
• Rules can be applied to user-defined SIP request type (INVITE,
SUBSCRIBE and/or REGISTER)
• Manipulation of Destination URI user part performed on these SIP
headers:
• Request URI
• To
• Remote-Party-ID (if it exists)
• Manipulation of Source URI user part is performed on these SIP
headers:
• From
• P-Asserted (if it exists)
• P-Preferred (if it exists)
• Remote-Party-ID (if it exists)
254
SBC Inbound Number Manipulations
255
SBC Inbound Number Manipulations – Match Area
• Name
• Additional Manipulation: use same matching
condition as row listed above
• Manipulation Purpose: Defines the purpose
of the manipulation
256
SBC Inbound Number Manipulations – Action Area
• Manipulated Item: Determines whether the Source or Destination SIP URI user part is
manipulated
• Remove From Left
• Remove From Right
• Leave From Right: Defines the number of characters that you want retained from
the right of the user part
• Prefix to Add
• Suffix to Add
257
SBC Outbound Number Manipulations
• Configure rules to manipulate SIP URI user part (Source and Destination)
of outbound SIP dialog requests
• Rules can be applied to user-defined SIP request type (INVITE,
SUBSCRIBE and/or REGISTER)
• Manipulation of Destination URI user part performed on these SIP
headers:
• Request URI
• To
• Remote-Party-ID (if it exists)
• Manipulation of Source URI user part is performed on these SIP
headers:
• From
• P-Asserted (if it exists)
• P-Preferred (if it exists)
• Remote-Party-ID (if it exists)
258
SBC Outbound Number Manipulations
259
SBC Outbound Number Manipulations Match Area
260
SBC Outbound Number Manipulations Action Area
• Same parameters as in Inbound except for:
• Manipulated Item
• Determines whether the Source, Destination SIP URI or Calling Name user part is manipulated
• Privacy Restriction Mode
• Determines user privacy handling by restricting source user identity in outgoing SIP dialogs
Transparent (default)
Don’t change privacy
Restrict
Remove Restriction
261
Message Manipulation
262
Why SIP Message Manipulation?
• Key SBC requirements:
• Each customer has distinct requirements for SBC fundamentals of Security, Interworking and Interoperability
• Multiple devices support SIP but do not interwork because of differences in how the protocol is implemented
or interpreted
• Manipulation customizes SIP messaging on either side to what devices in that network segment expect
• ITSPs or enterprises may have policies for which SIP messaging fields should be present before a SIP call
enters their network
• Resolves incompatibilities between SIP devices inside the enterprise network or between networks
• Self-service programmable tool that saves the time required to develop a software ‘patch’ for each customer
263
Message Manipulation
264
Inbound/Outbound Manipulation
Invite Invite
• Message Manipulation Table used to configure rules and relate them to a set of rules
• Rule configuration enables adding, modifying or removing most message content
• A rule can be conditionally applied
• Removing/Adding mandatory SIP Headers is not allowed, modifying Mandatory SIP Headers
is allowed, performed only on requests to initiate new dialogs:
• Mandatory Headers in invite message include:
• Request URI, To, From, Contact, Via, CSeq, Call-Id and Max-Forwards
• Mandatory SDP headers in invite message include:
• v, o, s, t ,c, m
• When multiple rules apply to the same header, the second rule applies to the first rule’s
result string
266
Message Manipulation – Manipulation Set ID
267
Message Manipulation – Syntax
268
Message Manipulation – Message Type
• The Message Type to manipulate General Match Action
• Rule applied only if this is the message type Manipulation Row Message Action Action Action
Name Condition
Set ID Role Type Subject Type Value
• Syntax: method.message-role.response-code
• Method
• Invite, Subscribe, Refer – rule applies only to specific messages
• Unknown – Unknown methods also allowed
• Any (or empty) – No limitation on method type
• Message-role
• Request – Rule applies only on requests
• Response – Rule applies only on Response message Examples:
• Response-code • Invite
• 3xx – Any redirection response • Invite.Request
• 200 – Only 200 OK response • Invite.Response.180
• Register
• Any.Response.3xx
269
Message Manipulation – Condition
• Rule-matching criteria (conditions) General Match Action
• If criterion (condition) exists, rule applies Manipulation Row Message Action Action Action
Name Condition
Set ID Role Type Subject Type Value
• Editor Options:
• Header, Body, Param, Var, SrcTags, DstTags, Message, Func
• Match-type
• “==” , “!=” , “>” , “<” , “>=” , “<=” , “contains” , “!contains”, “exists”, “!exists”, “len>”, “len<“, “len==“,
sufix, prefix, insubnet, !insubnet, “regex”
• Logical-expression
• “AND” – Logical And
• “OR” – Logical Or
Examples:
• header.contact contains ‘audiocodes’
• header.from.url.user != ‘100’ OR header.from.url.user != ‘200’
• header.from.url.user == ‘100’ AND header.to.url.user == ‘200’
• Body.sdp !exists
• Header.P-Asserted-Identity regex (.*)(<SIP:)(.*)(>)
270
Message Manipulation – Action Element
• Header on which manipulation is performed
• Message element that changes General Match Action
Manipulation Row Message Action Action Action
Name Condition
Set ID Role Type Subject Type Value
• Editor Options:
• Header, Body, Param, Var, Message
• Message-element-name – Name of message element
• From, To, Application/SDP
• Header-index – Header's index in the list of headers (if several same-type headers arrive)
• 0 or none = first header
• 1 = second header
• 4 = fifth header Examples:
• Sub-element – Header's element • Header.History-Info.1
• User, Host • header.from
• header.contact.url.user
• header.referred-by.url.host
271
Message Manipulation – Action Type
• Syntax:
• Add = adds a new header (or parameter or body)
• Remove = removes a header (or parameter or body)
• Modify = sets the element to the new value (replace the entire element)
• Normalize = removes unknown SIP message elements before forwarding the message
• Add Prefix = adds the value at the beginning of the element string
• Remove Prefix = removes the value from the beginning of the element string Recommended:
• Add Suffix = adds the value at the end of the element string Regular expression
• Remove Suffix = removes the value from the end of the element string
272
Message Manipulation – Action Value
• Syntax: (string/message-element/param)("+"(string/message-element/param))
• String
• ‘test.local’, ‘<sip:[email protected]:5067>’
• Message-element
• header.from.user, header.contact.url.user
• Param
• param.ipg.src.user, param.call.dst.host Examples:
• Combination • '3600‘
• param.ipg.dst.host + ‘.com’ • ‘Bob’
• header.to.url.host
• 'Mike@'+Header.To.URL.Host.Name
• Param.IPG.Dst.User+'com'
273
Message Manipulation – Row Role
274
SIP Message Normalization
• Feature that can be enabled per manipulation rule when Action Type is set to "Normalize“
• Removes unknown or non-standard SIP message elements before forwarding the message
• These elements can include SIP headers, SIP header parameters, and SDP body fields
• The device normalizes the following SIP elements:
• Message:
• Removes unknown or non-standard SIP headers
• URLs:
• User part is normalized
• Headers:
• Unknown header parameters are removed
• URLs are normalized
• SDP Body:
• Removes unnecessary SDP fields (except m=, v=, o=, s=, c=, t=, and r=)
• Removes unknown media with all its attributes
275
SIP Message Normalization – Examples
• Example 1:
• To header before normalization:
• To: <sip:1-800-300-500;[email protected];user=phone;UnknownUrlParam>
• To header after normalization:
• To: <sip:[email protected];user=phone>
• Example 2:
• All the headers to be normalized
276
SIP Message Normalization – Body Example
General Match Action
Manipulation Set
Name Row Role Message Type Condition Action Element Action Type Action Value
ID
Use Current
Example 3 4 invite body.sdp Normalize
Condition
278
SIP Message Manipulation – Example Rules
279
Example: Change Referred-By to Diversion
• ITSP expects Diversion and not Referred-By
280
SIP Interface Pre-Classification
281
SIP Interface Pre-Parsing Manipulation Sets
• Messages can be manipulated in their original format (plain text) as received from
the network
• Pre-Parsing Manipulation is done before Pre-Classification Manipulation and
Classification
• Pre-parsing rules assigned to the SIP Interface
• Regular expression (regex) is used to search for (match) in the incoming message as
well as to replace the matched pattern
• Parent – Child Table type
282
SIP Interface Pre-Parsing
• Messages can be manipulated in their original format (plain text) as received from the network
• Pre-Parsing Manipulation is done before Pre-Classification Manipulation and Classification
• Pre-parsing rules assigned to the SIP Interface
• Regular expression (regex) is used to search for (match) in the incoming message as well as to replace the matched
pattern
• Parent – Child Table type
283
Lesson 12
SBC Security
Lesson Objectives
285
Introduction
286
Threats
• Overload events
• Non-malicious periods of intense activity can also cause an increase in call signaling rates
that exceed what your infrastructure can support
• Identity theft
• Phishing and "man-in-the-middle" can be used to acquire caller identification information
to gain unauthorized access to services and information
• Eavesdropping
• The ability to listen to or record calls on VoIP networks - personal privacy violations
288
Security Solution
289
SBC Security Features
• Network
• VLAN Separation
• Firewall
• Topology Hiding
• SBC
• Advanced SIP Firewall Filtering Rules (Classification rules)
• Advanced Call Admission Control (CAC) to enforce limits
• Intrusion Detection System (IDS)
• SIP Protection – Filter methods
• Signaling Security – TLS
• Media Security – SRTP
• Block Unregistered Users
• Management
• HTTPS
• SSH
• SNMP
290
Enhanced Multi-Tenant Security Support
291
Topology Hiding
292
Topology Hiding – Example
• Host name in the From header of Invite messages received from the IP Group or the Request-
URI host name used in Invite and Register messages sent to the IP Group
293
Implement Layer 3/4 (Network) Firewall
• SBC default:
• If the end of the table is reached without a match, the packet is accepted
294
Layer 3/4 Traffic Firewall Rules – Example
295
Call Admission Control
296
Encryption
• Secure Signaling:
• TLS: TLS 1.0, TLS 1.1, TLS 1.2, and TLS 1.3
• DTLS: DTLS 1.0 and DTLS 1.2
• Re. Handshake
• Mutual authentication
• Certificate Revocation Checking
• Verify Subject Alt Name against the provisioned proxy name
• Secure RTP (SRTP):
• RFC 4568 (voice, video)
• SRTP enforcement
297
Secure SIP using TLS
298
Secure Media (RTP) Traffic
299
Block Unused SIP Ports
300
Classification Table
• Define Strict Classification Rules
• Define a combination of rules to guarantee correct sender identity
• Use Condition rules to increase the strictness of the Classification process
• If the IP address of the IP Group is known, it is recommended to employ classification based on a
Classification rule, where the rule is configured with not only the IP address, but also with SIP message
characteristics to increase the strictness of the classification process
• If the IP address is unknown, in other words, the Proxy Set associated with the IP Group is configured
with an FQDN, it is recommended to employ SIP dialog classification based on Proxy Set
301
Condition Table
302
Block Unclassified Incoming Calls
• Block incoming calls that cannot be classified to an IP Group, or based on the rules in the Classification table
• If unclassified calls aren’t blocked, they’re sent to the default SRD/IP Group, so illegal calls can pass
• SBC rejects unclassified calls by default
303
Message Policy Table
• SIP message policy rules for blocking (blacklist) unwanted incoming SIP messages or allowing
(whitelist) receipt of desired messages
• Blacklist and whitelist for defined methods and for defined bodies
• Assigned to SIP Interfaces associated with the relevant IP Groups
304
Intrusion Detection System (IDS)
• The device's Intrusion Detection System (IDS) feature detects malicious attacks
on the device
• The IDS configuration is based on IDS Policies/set of rules
• Each rule defines a type of malicious attack to detect and the number of
attacks (alarm threshold)
• SNMP traps send to notify of malicious activity and/or whether an attacker has
been added to or removed from the blacklist
• IDS Tables:
• Global Parameters – enables IDS
• Policy Table – defines IDS Policies and Rules
• Match Table – assigns the IDS Policies to targets under attack (SIP Interface) and/or
source of attacks (Proxy Set and/or subnet address)
305
Registration Restriction Control
306
Limit SBC Registered Users per IP Group
307
Limit SBC Registered Users per SIP Interface
308
Limit SBC Registered Users per SRD
309
Registration Restriction Control
• Ensure that calls from unregistered users are blocked (rejected) and that calls from
only registered users are allowed
310
Block Unregistered Users
• Blocks unregistered users’ calls per SRD or SIP Interface
• 503 Server Internal Error response message sent
• By default, calls from unregistered users are not blocked (Accept All)
311
Block Unauthenticated Registration
• Blocks unauthenticated users from registering into the SBC’s database per SRD or SIP Interface
• SBC then only registers users authenticated by a SIP proxy server
312
Define Strict IP to IP Routing Rules
• Define specific IP2IP routing rules accurately and correctly avoiding asterisks (*) if possible
• Route Source IP Group to Destination IP Group correctly to achieve the required call outcome
• Inaccurate or weak routing rules can easily result in Service Theft
313
Secure Management Connections
314
Secure Management Connections (cont.)
User levels: Defines a Secure Socket Shell (SSH) Defines the duration (in days) of
Monitor public key for RSA public-key the validity of the password. Allows the same user account to
Administrator authentication (PKI) of the remote 0 means that the password is log in to the device from different
Security Administrator user when logging into the device's always valid. sources (i.e., IP addresses).
Master CLI through SSH The default is 90
316
Authentication Server
318
Secure Management Connections (cont.)
319
Secure Management Connections (cont.)
320
Hands-on Lab 4
323
Configuring TDM Bus
• TDM Bus Clock Source (Network/Internal)
• Clock source on which the gateway synchronizes
• TDM Bus Local Reference
• Determines the Trunk ID used to synchronize the
gateway’s clock when using external clock
• TDM Bus PSTN Auto Clock Reverting
• Enables the PSTN trunk Auto-Fallback Reverting
feature
• TDM Bus PSTN Auto FallBack Clock
• Disable = Recovers the clock from the E1/T1 line
defined by parameter ‘TDM Bus Local Reference’
• Enable = Recovers the clock from any connected
synchronized slave E1/T1 line
• Apply only if the TDM Bus Clock Source parameter is
set to Network and TDM Bus PSTN Auto Clock
Reverting is set to Enable
• PCM Law Select (A-law/µ-law)
• Usually A-Law for E1 and µ-Law for T1
324
Configuring Key Trunk Parameters
• Protocol Type
• Sets the PSTN protocol to be used for this trunk
• If ‘Protocol Type’ of all PRI trunks displays 'None', select the protocol type (E1/T1) for a single
trunk and reset the gateway
• Only after the reset you will be able to continue configuring the trunks
• Clock Master
• Determines Tx clock source of E1/T1 line
• Recovered (0) = Generate clock according to Rx of E1/T1 line
• Generated (1) = Generate clock according to internal TDM bus
• ISDN Termination Side
• User side = ISDN User Termination Side (TE)
• Network side = ISDN Network Termination Side (NT)
• Select 'User side' when the PSTN or PBX side is configured as 'Network side’ and
vice-versa
325
Configuring Key Trunk Parameters
326
Configuring Key Trunk Parameters
327
Digital Trunk Points of Information
• All Trunk spans must be of the same Line Type (all E1 or all T1)
• Different flavors of same Line Type (E1/T1) can be configured on available Trunks
(e.g., E1 Euro ISDN and E1 QSIG)
• Trunks are referenced in ini file and Syslog messages as ‘0-7’ regardless of whether
physical Trunks are numbered ‘1-8’
328
Trunk Group Table – E1/T1 and/or FXS
• Used to assign Trunk Groups, Profiles and logical telephone numbers to the
gateway's channels
• Trunks or B-Channels that are not defined are disabled
329
Trunk Group Settings
• Determines the method by which new calls are assigned to channels within each Trunk
Group ID
• If such a rule doesn't exist (for a specific Trunk Group), the global rule defined by the
Gateway General Settings’ Channel Select Mode parameter applies
330
Coder Group Table
• Allows you to configure coders for the Gateway
• The first coder in the list has the highest priority
• A coder can appear only once in the table
• The Packetization Time determines how many coder payloads are combined into a single RTP packet
• The Gateway always uses the packetization time requested by the remote side for sending RTP packets
• Enable/Disable the Silence Suppression option per coder
331
Outbound IP Routing Table (Tel2IP)
• Used to route outgoing calls from Tel to IP
332
IP to Trunk Group Routing (IP2Tel)
• Used to route incoming IP calls to trunk groups
• Route the call to Trunk Group ID
333
Number Manipulation
334
Routing Mode Parameters
• The Tel to IP Routing Mode and IP to Tel Routing Mode parameters determine the
order between routing calls to Trunk Groups and manipulation of the number
• Route calls before manipulation (default)
• Route calls after manipulation
335
Lesson 14
SBC Survivability
Lesson Objectives
337
SBC Survivability
338
SBC Survivability
2
ITSP2
3
E1/T1
PSTN
4
Enterprise
LAN
339
Survivability Methodology
341
Define Alternative Reasons Set Table
• The Alternative Reasons Set table lets you configure groups of SIP response codes for SBC call release
(termination) reasons that trigger alternative routing
• This feature works together with the Proxy Hot Swap feature, which is configured in the Proxy Sets table
• If no response, or ICMP or SIP 408 response is received, the SBC attempts to use the alternative route
even if no entries are configured in the ‘Alternative Reasons Set table‘
342
Define Alternative Reasons Rules Table
343
Assign the Alternative Reasons Set to Destination IP Group
• To apply your configured alternative routing reason rules, you need to assign the
Alternative Reasons Set for which you configured the rules, to the relevant IP Group
in the IP Groups table, using the 'SBC Alternative Routing Reasons Set' parameter
344
SBC Survivability for IP-PBX Users
Normal Mode
Survivability Mode
Fallback to PSTN
345
Define Media Realms
346
Define SIP Interfaces
347
Define Proxy Set – IP-PBX
348
Define Proxy Set – ITSP1
349
Define Proxy Set – ITSP2
350
Define IP Groups
351
IP to IP Routing Table – Options Termination
352
IP to IP Routing Table – IP-PBX to ITSP1 (Primary Route)
353
IP to IP Routing Table – IP-PBX to ITSP2 (Alternative Route)
354
IP to IP Routing Table – Calls to IP-PBX
355
Define Alternative Routing Set
• If no response, or ICMP or SIP 408 response is received, the SBC attempts to use the
alternative route even if no entries are configured in the ‘Alternative Routing Set‘
356
Assign the Alternative Reasons Set to Destination IP Group
357
Configure the TDM Bus for the Gateway
358
Configure the Digital Trunk
359
Configure the Trunk Group – E1/T1
• Used to assign Trunk Groups, Profiles and logical telephone numbers to the
gateway's channels
360
Configure the Trunk Group Settings
• Determines the method by which new calls are assigned to channels within each Trunk Group
361
IP to Trunk Group Routing (IP2Tel)
362
Tel to IP Routing (Tel2IP)
363
Define IP to IP Routing Table
• Add the Gateway entry to SBC IP-to-IP Routing Table:
364
SBC Survivability for LAN Users
Server IP-Group
Hosted IP-PBX
Server 1: 201.10.1.1
Server 2: 201.10.1.2
User IP-Group
Normal Mode
Survivability Mode
365
Define IP Group – LAN Users
366
User IP Group Classification
367
Define IP to IP Routing Table
• Terminate Options
368
Define IP to IP Routing Table
369
Define IP to IP Routing Table
370
Define IP to IP Routing Table
371
Define IP to IP Routing Table
372
Define IP to IP Routing Table
373
Lesson 15
375
High Availability Overview
• The device's High Availability (HA) feature provides 1+1 system redundancy using
two Mediant devices
• If failure occurs in the active device, a switchover occurs to the redundant device
which takes over the call handling process ensuring the continuity of call services
• All active calls (signaling and media) are maintained upon switchover
• Only IP calls are maintained during a switchover
• For those devices supporting the Gateway function, PSTN calls are dropped by sending
a SIP BYE message to the IP side. This is because only the active device is physically
connected to the PSTN interfaces
376
High Availability Architecture
377
Two Box Redundancy flow
ITSP
Active Mediant
SYNC
IP-PBX
New Active
Standby Mediant
Mediant
Enterprise
LAN
378
Two Box Redundancy flow
ITSP
Active
New Mediant
Standby Mediant
IP-PBX
SYNC
New Active Mediant
Enterprise
LAN
379
HA License Key
380
High Availability Configuration
• Since both devices have the same IP address, in the initial configuration stage,
they cannot both be connected to the network
• To initially configure HA:
1. Configure HA on the first device
2. Burn the configuration to flash and power down
3. Configure HA on the second device
4. Burn the configuration to flash and reset
5. Power up the first device
381
IP Interfaces
Maintenance
Interface
382
Physical Network Connections
Maintenance
383
HA Setting
• The remote maintenance IP Interface
• Devices Names
• Network Monitor:
• The SBC can monitor a specified network entity, using pings
• If the device does not receive a ping response from the entity, a switchover to the redundant device occurs
385
Preempt Mode
386
Preempt Mode
387
HA Status in the Monitor Page
388
Initialization Process
389
HA Software Upgrade
390
High Availability Maintenance
391
Hands-on Lab 5
SBC Survivability
Thank You