- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
sip命令分析
一个简单的SIP呼叫例子 shows the SIP message exchange between two SIP-enabled devices. The two devices could be SIP phones, hand-helds, palmtops, or cell phones. It is assumed that both devices are connected to an IP network such as the Internet and know each others IP address.
?Figure 2.1: A simple SIP session establishment example.
The calling party, Tesla, begins the message exchange by sending a SIP INVITE message to the called party, Marconi. The INVITE contains the details of the type of session or call that is requested. It could be a simple voice (audio) session, a multimedia session such as a video conference, or it could be a gaming session.
The INVITE message contains the following fields:
INVITE sip:marconi@ SIP/2.0
Via: SIP/2.0/UDP :5060;branch=z9hG4bKfw19b
Max-Forwards: 70
To: G. Marconi sip:Marconi@
From: Nikola Tesla sip:n.tesla@;tag=76341
Call-ID: 123456789@
CSeq: 1 INVITE
Subject: About That Power Outage...
Contact: sip:n.tesla@
Content-Type: application/sdp
Content-Length: 158
v=0
o=Tesla 2890844526 2890844526 IN IP4
s=Phone Call
c=IN IP4 03
t=0 0
m=audio 49170 RTP/AVP 0
a=rtpmap:0 PCMU/8000
Since SIP is a text-encoded protocol, this is actually what the SIP message would look like on the wire as a UDP datagram being transported over, for example, Ethernet.
The fields listed in the INVITE message are called header fields. They have the form Header: Value CRLF. The first line of the request message, called the start line, lists the method, which is INVITE, the Request-URI, then the SIP version number (2.0), all separated by spaces. Each line of a SIP message is terminated by a CRLF. The Request-URI is a special form of SIP URI and indicates the resource to which the request is being sent, also known as the request target. SIP URIs are discussed in more detail in later sections.
The first header field following the start line shown is a Via header field. Each SIP dev
文档评论(0)