`
bingtears
  • 浏览: 188449 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

VoIP Protocols > SIP

UP 
阅读更多
SIP is a text-based protocol that uses a similar semantic to HTTP. The UAC make requests and the UAS return answers to client requests. SIP defines the communication through two types of messages. The requests (methods) and the answers (state codes) use the generic format of the RFC 2822. They have an initial line followed by one or more header fields, an empty line that shows the end of the head, and finally, the body of the message (optional).


- SIP Methods

The most important thing of SIP Requests is the initial line of the message, called Request-Line. It contains the method name, the request address identifier (Request-URI) and the SIP protocol version. There are six basic methods (defined in RFC 254) for the client requests:

- INVITE: Let invite a user or a service to a new session or to modify parameters of a established session.
- ACK: Confirm the session establishment
- OPTION: Request information about the capabilities of a server
- BYE: End of a session
- CANCEL: Cancel a pending request.
- REGISTER: Register the user agent.

However there are additional methods that can be used. For example INFO, SUBSCRIBER, etc. (published in other RFCs)

For example you can see here a real example of a register method:

Via: SIP/2.0/UDP 192.168.0.100:5060;rport;branch=z9hG4bK646464100000000b43c52d6c00000d1200000f03
Content-Length: 0
Contact: <sip:20000@192.168.0.100:5060>
Call-ID: ED9A8038-A29D-40AB-95B1-0F5F5E905574@192.168.0.100
CSeq: 36 REGISTER
From: <sip:20000@192.168.0.101>;tag=910033437093
Max-Forwards: 70
To: <sip:20000@192.168.0.101>
User-Agent: SJphone/1.60.289a (SJ Labs)
Authorization: Digest username="20000",realm="192.168.0.101",nonce="43c52e9d29317c0bf1f885b9aaff1522d93c7692"
,uri="192.168.0.101",response="f69463b8d3efdb87c388efa9be1a1e63"


- SIP Answers (State Codes) .

After a SIP request message, the receiver answers with a message. This message, is similar to the previous one, but the first line, called Status-Line, that contains the SIP version , the answer code (Status-Code) and a small description (Reason-Phrase). The code of the answer is made up of three digits that allow classify the different types. The first digit defines the answer class

Class Code
1xx - Provisional Messages.
2xx - Success Answers.
3xx - Redirection Answers.
4xx - Method Failures.
5xx - Server Failures.
6xx - Global Failures.

This is a 200 sucess answer example:

Internet Protocol, Src Addr: 192.168.0.101 (192.168.0.101), Dst Addr:
192.168.0.100 (192.168.0.100)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
Status-Line: SIP/2.0 200 OK
Status-Code: 200
Resent Packet: False
Via: SIP/2.0/UDP 192.168.0.100:5060;rport;branch=z9hG4bK646464100000000b43c52d6c00000d1200000f03
Content-Length: 0
Contact: <sip:20100@192.168.0.100:5060>
Call-ID: ED9A8038-A29D-40AB-95B1-0F5F5E905574@100.100.100.16
CSeq: 36 REGISTER
From: <sip:20000@192.168.0.101>;tag=910033437093
Max-Forwards: 70
To: <sip:20000@192.168.0.101:5060>
Authorization: Digest username="20100",realm="192.168.0.101",nonce="43c52e9d29317c0bf1f885b9aaff1522d93c7692",uri="sip:192.168.0.101",
response="f69463b8d3efdb87c388efa9be1a1e63"


分享到:
评论

相关推荐

    VoIP Technology:Applications and Challenges 2019.pdf

    The fundamental and theoretical concepts on the call signaling protocols which include SIP, H.323, and MEGACO coupled with an extensive comparative analysis among these protocols to facilitate a ...

    实施cisco统一通信Voip和QoS学习指南第四版Cvoice-part2

    - `session protocols sip`: 指定会话协议为SIP。 - `session target sip-server`: 指定会话目标为预先配置的SIP服务器。 #### 小结 本文档详细介绍了在Cisco统一通信系统中配置VoIP和QoS的基本步骤,特别是对于...

    Enterprise VOIP DAY (PDF)

    2. **企业级VoIP协议(Enterprise VoIP protocols)** 这一部分会详细介绍支持VoIP的协议,如H.323、SIP(Session Initiation Protocol)和MGCP/Megaco(媒体网关控制协议)。这些协议在建立、管理和终止语音通话中...

    voip_protocols.rar_通讯编程文档_WINDOWS_

    《VoIP协议与数据通信详解》 ...通过学习这份"voip_protocols.pdf"文档,你将能深入了解VoIP协议的工作原理,以及如何在Windows环境下进行VoIP应用的开发和调试,为构建高效、稳定的VoIP通信系统打下坚实的基础。

    WebRTC - APIs and RTCWEB Protocols of the HTML5 Real-Time Web 第二版 第三版合集

    WebRTC - APIs and RTCWEB Protocols of the HTML5 Real-Time Web 第二版 第三版合集 WebRTC p2p nat voip sip

    VoIP技术

    ##### Gateway Control Protocols - **简单网关控制协议(SGCP)**:一种简单的网关控制协议。 - **媒体网关控制协议(MGCP)**:更复杂但功能强大的控制协议。 #### 九、虚拟交换控制器 - **虚拟交换概述**:介绍虚拟...

    VOIP - Cisco IP Telephony Network Design Guide

    - **Functionality**: It manages voice and video calls, assigns resources, and handles signaling protocols such as H.323 and SIP. - **Release 3.0**: This version introduces new features and ...

    Mastering.FreeSWITCH.1784398888.pdf

    FreeSWITCH is one of the best tools around if you’re looking for a modern method of managing communication protocols through a range of different media. From real-time browser communication with the ...

    sipp ansible剧本

    SIPP是一个开源的VoIP(Voice over Internet Protocol)性能测试工具,用于模拟SIP(Session Initiation Protocol)客户端和服务器,以评估VoIP系统的性能和稳定性。 【描述】"sipp测压工具ansible剧本安装"说明了...

    sipp gui for windowns

    SIPP (Simple IP Performance Protocols) 是一个开源的SIP (Session Initiation Protocol) 测试工具,广泛用于测试SIP服务器、客户端和中间件的性能和稳定性。SIP是一种用于多媒体通信协议,常用于VoIP(Voice over ...

    Commview V6.5

    CommView includes a VoIP module for in-depth analysis, recording, and playback of SIP and H.323 voice communications. CommView is a helpful tool for LAN administrators, security professionals, ...

    FreeSWITCH.1.6.Cookbook.17852809

    Trap all the common functionalities of the telephony platform using popular communication protocols Move recipe by recipe to get the gist of the platform Who This Book Is For FreeSWITCH 1.6 Cookbook ...

    CommView Version 6.0(Build 584) 试用版

    CommView includes a VoIP module for in-depth analysis, recording, and playback of SIP and H.323 voice communications. CommView is a helpful tool for LAN administrators, security professionals, ...

    通信协议类

    9. TISPAN(Telecommunications and Internet Converged Services and Protocols for Next Generation Networks):TISPAN是欧洲电信标准协会(ETSI)提出的NGN标准,涵盖了固定和移动融合服务。 10. POTS(Plain ...

    freeswitch-1.0.beta1.tar.gz

    学习和使用FreeSwitch,你需要对VoIP技术有一定的了解,包括SIP、TLS、RTP等协议。同时,掌握至少一种脚本语言,如XML,以便编写和理解FreeSwitch的控制逻辑。此外,熟悉Unix/Linux环境和基本的编译安装过程也是必要...

    计算机网络技术.pdf

    2. Analyze -&gt; Enabled Protocols:Wireshark中的一个功能,用于选择要分析的数据包类型。 3. Frame Type:Wireshark中的一个字段,用于识别以太网帧的类型,如IP、ARP等。 六、网络连接和路由 1. ...

    sdp协议简介

    从给定的文件信息来看,主要关注的是SDP(Session Description Protocol)协议,这是一种用于多媒体会话描述的标准协议,通常在会话发起协议(SIP)中使用,以提供关于会话的媒体类型、格式、地址和时间等信息。...

    通信新技术-作业.pdf

    10. **IP电话关键技术**:实现IP电话的关键技术包括话音处理技术、IP电话通信协议(如SIP、H.323等)、终端实现技术和MPLS(多协议标签交换)技术,这些技术共同保证了高质量的VoIP服务。 11. **AAL协议与业务关系*...

Global site tag (gtag.js) - Google Analytics