- Building Telephony Systems with OpenSER
- Flavio E. Goncalves
- 286字
- 2021-07-02 11:38:33
SIP Proxy—Expected Behavior
It is important to understand the basic processing of a SIP proxy according to RFC3261. Without this understanding it will be very difficult to configure a Proxy server.
Each proxy will take routing decisions, modifying the request before sending it to the next element. The responses will be routed over the same set of proxies traversed by the original request in the reverse order.
A SIP proxy can operate in stateless or stateful mode. When a SIP proxy works as a simple SIP packet forwarder, it forwards the packets to a single element determined by the request. A proxy working in stateless mode discards any information about the message after the message has been forwarded. This characteristic limits the failure treatment and billing.
When OpenSER knows that the message 200 OK corresponds to a specific INVITE we say that it is working in stateful mode. This means simply that you can now manage the response in an onreply_route()
block. With stateless processing each message is handled without a context. Stateless processing is used in applications like load balancing; it uses the command forward()
in the script.
When you need more sophisticated resources like billing, call forward, and voicemail, you will need to use stateful processing. Each transaction will be maintained in memory and failures, responses, and retransmissions will be associated with this specific transaction. Stateful transactions are handled by the TM (transaction) module and usually use the t_relay()
command.
An often misunderstood concept is that the processing is stateful by transaction and not by dialog. Thus, it is the stateful processing of an INVITE request until the 200 OK response (transaction) and not from the INVITE to the BYE request (dialog).
- Authorware應用案例教程
- 我為PS狂 Photoshop照片處理一分鐘秘笈
- 邊做邊學:Photoshop+CorelDRAW綜合實訓教程
- 圖像處理中的數學修煉(第2版)
- 二維計算機繪圖教程:二維CAD工程師取證全程指導
- Premiere視頻編輯應用教程:PremierePro 2020(微課版)
- Unity 3D\2D手機游戲開發:從學習到產品(第4版)
- Python Testing: Beginner's Guide
- 數碼攝影后期密碼Photoshop CC調色秘籍(第2版)
- LaTeX入門與實戰應用
- 企業虛擬化實戰:VMware篇
- AutoCAD 2024室內設計從入門到精通(升級版)
- 卷珠簾:Photoshop古風插畫技法完全教程
- Photoshop CS6圖像處理立體化教程
- Grails 1.1 Web Application Development