- Building Telephony Systems with OpenSER
- Flavio E. Goncalves
- 276字
- 2021-07-02 11:38:34
Stateful Operation

This is a simplified description of the stateful operation. You will find a complete and more detailed description in the RFC3261 text. There is a close resemblance between the openser.cfg
sections and the figure above. However some processes are manual, such as to check the Max-forwards header, while others are encapsulated in a single command. To illustrate, when you call t_relay()
all the forward request processing as described is done automatically.
When operating in stateful mode, a proxy is simply a SIP transaction processor and all these processing steps are required:
- Validate the request
- Pre-process the routing information
- Determine the request's target
- Forward the request to the target
- Process all responses
A stateful proxy creates a new server transaction for each new request received. Any retransmissions of the request will then be handled by that server transaction.
Example: For each request traversing our SIP proxy we will:
Step 1: Request validation
- Check the message size to avoid buffer overflows.
- Check the Max-forwards header to detect loops.
Step 2: Routing information pre-processing
- If there is a record-route header, process it.
Step 3: Determine the request target
- Is it in the location database (registered users)?
- Is there a route to the destination (gateway destinations)?
- Is it directed to an external domain (external addresses)?
Step 4: Request forwarding
- Call the function
t_relay()
and OpenSER will do all the job for you statefully.
Step 5: Response processing
- Usually this is done automatically by OpenSER. Sometimes you can use the
onreply_route[]
section to handle some response. Example: in a "call forward on busy" scenario, we could use the response 486 (Busy) to direct the call to a voicemail server.
- Expert Cube Development with Microsoft SQL Server 2008 Analysis Services
- Procreate繪畫創(chuàng)作從入門到精通
- AutoCAD Civil 3D 2018 場地設(shè)計實例教程
- UG NX 12.0實例寶典
- 新編三維CAD習(xí)題集
- AutoCAD 2018中文版從入門到精通
- 二維計算機繪圖教程:二維CAD工程師取證全程指導(dǎo)
- SPSS 28.0統(tǒng)計分析從入門到精通(升級版)
- RAW 數(shù)碼底片演義
- IBM Lotus Notes and Domino 8.5.1
- Photoshop CS6數(shù)碼照片處理入門到精通
- 剪映:從零開始精通短視頻剪輯(電腦版)
- 蝶變:移動用戶體驗設(shè)計之道
- Drupal 7
- 零基礎(chǔ)學(xué)后期:Lightroom 6-CC數(shù)碼照片處理從新手到高手