CHAPTER 28 Advanced SBC Features
Mediant 4000 SBC | User's Manual
Sec-WebSocket-Accept: rLHCkw/SKsO9GAH/ZSFhBATDKrU=
Sec-WebSocket-Protocol: SIP
Server: SBC
At this stage, the HTTP connection breaks down and is replaced by a WebSocket connection over
the same underlying TCP/IP connection. By default, the WebSocket connection uses the same
ports as HTTP (80) and HTTPS (443).
Once a WebSocket connection is established, the SIP messages are sent over the WebSocket
session. The device, as a "WebSocket gateway" or server can interwork WebSocket browser
originated traffic to SIP over UDP, TCP or TLS, as illustrated below:
The SIP messages over WebSocket are indicated by the "ws" value, as shown in the example
below of a SIP REGISTER request received from a client:
REGISTER sip:10.132.10.144 SIP/2.0
Via: SIP/2.0/WS v6iqlt8lne5c.invalid;branch=z9hG4bK7785666
Max-Forwards: 69
To: <sip:[email protected]>
From: "joe" <sip:[email protected]>;tag=ub50pqjgpr
Call-ID: fhddgc3kc3hhu32h01fghl
CSeq: 81 REGISTER
Contact: <sip:[email protected];transport=ws>;reg-
id=1;+sip.instance="<urn:uuid:4405bbe2-cf06-4c27-9c59-6caf83af9b00>";expires=600
Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE
Supported: path, outbound, gruu
User-Agent: JsSIP 0.3.7
Content-Length: 0
To keep a WebSocket session alive, it is sometimes necessary to send regular messages to
indicate that the channel is still being used. Some servers, browsers or proxies may close an idle
connection. Ping-Pong WebSocket messages are designed to send non-application level traffic
that prevents the channel from being prematurely closed. You can configure how often the device
pings the WebSocket client, using the WebSocketProtocolKeepAlivePeriod parameter (see
). The device always replies to ping control messages with a pong message.
The WebSocket protocol supports keep-alive using special frames, however it is used only on the
server side; for the Web client, a special ping (CRLF) request is used which the device answers.
In this way the client can detect connection failures
- 607 -
Summary of Contents for Mediant 4000 SBC
Page 1: ...User s Manual AudioCodes Series of Session Border Controllers SBC Mediant 4000 SBC Version 7 2...
Page 40: ...Part I Getting Started with Initial Connectivity...
Page 48: ...Part II Management Tools...
Page 113: ...Part III General System Settings...
Page 118: ...Part IV General VoIP Configuration...
Page 525: ...Part V Session Border Controller Application...
Page 654: ...Part VI Cloud Resilience Package...
Page 663: ...Part VII High Availability System...
Page 685: ...Part VIII Maintenance...
Page 759: ...Part IX Status Performance Monitoring and Reporting...
Page 844: ...Part X Diagnostics...
Page 888: ...Part XI Appendix...