ImageVerifierCode 换一换
格式:DOCX , 页数:43 ,大小:33.02KB ,
资源ID:8201041      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-8201041.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(osip user manual文档格式.docx)为本站会员(b****4)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

osip user manual文档格式.docx

1、SIP transactions SIP sessions Server behavior3. The oSIP Library The goals The development level The parser The state machinesThe transaction manager Who will benefit from oSIP Available ports4. The oSIP parser files SIP-URL Definition and purpose API for SIP-URL API for url_param_t and url_header_t

2、SIP headers Common API for all implemented header. Specific API for To header API for generic paramSIP messages definition and purpose API for SIP message MACROsThe parser HOW-TO. Initialise the parser Allocate a structure create a URL and a Request-URI. Add headers in a message make a string from a

3、 structure free resource in a structureHow to improve the parser performance5. The oSIP state machines Transaction and events Definition and purpose of transaction Definition and purpose of sipevent API The callbacks. Useful MACROs.The finite state machines HOW-TO Initialise the osip stack Allocate

4、and initialize an osip_t element Send events to control transaction Notes for proxy implementationBuild your own architectureBibliographyChapter 1. The SIP protocolSIP is a signaling protocol used to initiate and control multimedia sessions. It is already published by IETF (www.ietf.org) as the rfc2

5、543.SIP is part of the IETF effort to bring telephony on the IP network. It is about to become the standard used by the emerging IP telephony industry. As simple as the mail protocol, it may become as popular.SIP is independent of mediaThe traditional telephony was based on one media. Now, its over.

6、 Your phone will be able to connect to a TV, to a camera, to others phones with different qualities and different codecs. Hopefully, SIP is independent of any media used by the applications. SIP is able to negotiate media used within sessions. Any multimedia application (games, distance learning app

7、lication) can use SIP to set up sessions.SIP is independent of the transport layerSIP is not tight to any transport protocol. This aspect will minimize efforts to interoperate with new third generation networks. Wireless phones are also concerned. A SIP stack perfectly fits the signaling needs of th

8、e new cellulars generation.SIP is extensibleThe rfc2543 defines 6 types of transaction (INVITE, BYE, CANCEL.). Those transactions are used to negotiate media, set up, modify and terminate calls. Many services are already provided this way but SIP is designed for extensibility and the transactional m

9、odel can be reused (transparently for servers) by new type of transaction to create some supplementary services. Here is a list of possible services:MESSAGE for instant messagingSUBSCRIBE/NOTIFY for presence managementREFER for call-transfer managementSIP transparently supports name mapping and redi

10、rection services, allowing the implementation of ISDN and Intelligent Network telephony subscriber services. These facilities also enable personal mobility.rfc2543.txt (Section 1.1)SIP servers are used to locate users and distribute location (through urls) on demand. This way, end user agents have v

11、ery minimal requirements and still have access to a wide variety of services.Many extensions are already available as draft. Your can also add your personal phone capabilities and remain interoperable with existing servers.Chapter 2. SIP overviewThis section does not intend to fully describe the RFC

12、. It is a fast and incomplete overview of the protocol syntax and behavior.SIP syntaxSIP is a text protocol based on utf8 encoding. (making it more readable and easier to debug) SIP describes a syntax for SIP requests, URL, responses and their headers. The full syntax is available at Columbia in an

13、augmented BNF form.The syntax is borrowed from the MAIL and HTTP syntax. 6 types of requests are defined by SIP. The basic available methods are:INVITEACKCANCELBYEINFOOPTIONSAs you can see in the BNF definition of request (see rfc2543.txt section 3), SIP is not limited to this short list of methods

14、and includes in its definition the extension-method token. Any other request can be handled by oSIP. NOTIFY and SUBSCRIBE are good examples of new possible methods. These ones are used specifically to provide presence capabilities to your SIP phone without much effort.Example 2-1. INVITE requestINVI

15、TE requests are used to initiate and modify sessions. Here, cha from is calling jack at domain atosc.org. This request should be sent to the proxy server managing atosc.org, it will forward the call to jack at his real IP address.INVITE sip:jacKatosc.org SIP/2.0Via: SIP/2.0/UDP home.sipworld.orgTo:

16、sip:From:chasipworld.orgCall-ID: 35778645354home.sipworld.orgCSeq: 1 INVITEContact:chahome.sipworld.orgContent-type: application/sdpContent-length: 267v=0o=user1 53655765 2353687637 IN IP4 128.3.4.5s=Mbone Audioi=Discussion of Mbone Engineering Issuese=mbonec=IN IP4 128.3.4.5t=0 0m=audio 3456 RTP/AV

17、P 0a=rtpmap:0 PCMU/8000SIP transactionsIn order to control sessions, SIP uses transactions. Transactions (INVITE, CANCEL, BYE.) usually result in a modification of a current session. Some other transactions (SUBSCRIBE, NOTIFY.) are not bound to a session. A transaction is composed of one request and

18、 its responses (many informational responses and one final response). The following headers: To, From, Call-ID and CSeq are used to identify messages within a transaction.As SIP can use unreliable transport protocol (UDP is recommended on the IP network), SIP also defines retransmission rules for me

19、ssages within a transaction.Example 2-2. INVITE transactionThis is the most basic call flow showing the initiation of a session. Only two SIP User Agents (UAC/UAS) are involved. (retransmissions are hidden) UAC1 UAS2 jacks | INVITE | initiate a |-| Bobs call | | Phone starts | 180 Ringing| ringing |

20、-| | 180 Ringing| |SIP sessionsTransactions are used by user agent as means to control sessions. A session is always initiated by an INVITE. SIP defines a large set of answer codes. A proxy may answer you the well known 404 User Not found as for an HTTP error. Errors have different levels. A transac

21、tion can fail but still proposes new locations to try. Responses from class 3xx serve as redirection mechanism. 4xx, 5xx and 6xx responses are respectively reserved for client error, server error and global failure.Example 2-3. A complete sessionFirst, both user agents must send a REGISTER to a regi

22、strar. In the following example, the proxy also support registration.This session is initiated with an INVITE transaction to join jack at . A redirection to jacks office is made by the redirect server of . UA1 understands the redirection and sends a new INVITE towards the real User Agent (UA2) curre

23、ntly used by jack at office.atosc.org. UA2 first rings and jack accepts the call with a 200 OK response. After several minutes, jack and bob want to use their new cameras. The session is modified with an INVITE sent by jack to negotiate new parameters for video. The session is finally ended by bob.

24、BOB Jack (atosc.org) UA1 PROXY UA2 | REGISTER | . |-| . | 200 OK | .-| . . . .later. . . . . | REGISTER | . | | INVITE jack . |302 Moved temporarily . | ACK | . | INVITE jackoffice.atosc.org | | audio | |- | 180 Ringing |-| | ACK jackoffice.atosc.org | . .later . . | INVITE bob | | audio + video | |

25、 ACK bobbob.home.org | | BYE jackoffice.atosc.org | | |SIP defines behaviors for proxy, redirect and registrar server. For complete information, please read the RFC.Usually, a user agent sends its requests to an outbound proxy. As users do not know the current location of their correspondent, they u

26、se for the sip url a username and a domain. The outbound proxy (where firewall capabilities can be inserted) uses DNS SRV RECORDS to find servers belonging to the requested domain. Once the server is found, the request is forwarded. This server is the inbound proxy of the correspondent. If the user is available, its application must have registered its location before, so the proxy is now able to forward the request to

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2