- Building Telephony Systems with OpenSER
- Flavio E. Goncalves
- 339字
- 2021-07-02 11:38:34
Understanding SIP and RTP
To understand the following subsections, you should understand some things about SIP and RTP. First, SIP is a signaling protocol that controls the call with methods such as INVITE, BYE, and CANCEL. The SIP protocol includes in the INVITE request information about the session (audio/video/text) using a protocol called SDP (Session Description Protocol). The information contained in the SDP describes one or more media flows configured between two user agents.
A SIP proxy never participates in the media flow, thus it is media agnostic. In other words it supports calls with whichever media are specified by UA and gateways. However, sometimes a B2BUA (back to back user agent) such as mediaproxy can be installed at the same server to treat RTP audio (that is, NAT traversal mechanism). The SDP protocol works in an Offer/Answer model. The SDP offer is embedded in the INVITE request and the answer in the 200 OK response.
Example: Excerpt from Ethereal:

The packet described in the preceding figure is an INVITE request. The INVITE request embeds the SDP packet that describes the session information. We can see there the INVITE generated on an eyeBeam phone. It is offering to use the Codec G.729 at the UDP port 8558 for Audio (I conceal the IP address for security reasons). The attribute rtpmap:101 telephone-event/8000 describes the DTMF forward method being used (RFC2833). The other device, in this case a gateway, answers the offer in the 200 OK reply.

Summary
In this chapter we have learned what OpenSER is and its main characteristics. Now you can identify the openser.cfg
configuration file and its configuration blocks such as global definitions, load modules, module's parameters, main routing block, routing blocks, reply routing block, and failure routing block. Each request accepted by the proxy is processed according to the openser.cfg
script. The script is organized almost in the same sequence as the SIP stateful proxy processing. Usually OpenSER operates as a loose router (SIP version 2). At the end we presented concepts about SIP and SDP.
- ColdFusion 9 Developer Tutorial
- Moodle 2.0 E/Learning Course Development
- 跟儲君老師學Excel極簡思維
- Puppet 2.7 Cookbook
- 光影之書:Photoshop+Camera Raw攝影后期與創意合成
- Drools JBoss Rules 5.0 Developer's Guide
- Django 1.0 Website Development
- ANSYS 15.0有限元分析自學手冊
- Adobe創意大學Illustrator CS5 產品專家認證標準教材
- Photoshop網店美工實例教程(第2版 全彩微課版)
- iPad+Procreate室內設計手繪表現技法
- SolidWorks 2018有限元:運動仿真與流場分析自學手冊
- Indesign平面排版技術應用
- 抖音+剪映+Premiere短視頻制作從新手到高手(第2版)
- Excel 2013公式·函數與數據分析