根據(jù) RFC 3261規(guī)定IMS/SIP中支持的消息主要分為請(qǐng)求與應(yīng)答兩大類;它們描述了終端(UA)通信的會(huì)話過(guò)程;
1,請(qǐng)求消息( Request Message)
請(qǐng)求類消息是由終端(UA)向代理單元(CSCF),或通過(guò)代理單元向通信對(duì)方發(fā)起的請(qǐng)求(應(yīng)答或反饋)消息;其主要有以下內(nèi)容.
Request Message
消息內(nèi)容
Description
REGISTER(注冊(cè))
終端在SIP服務(wù)器上注冊(cè)申請(qǐng)
A Client use this message to register an address with a SIP server
INVITE(邀請(qǐng))
終端(UA)對(duì)另一個(gè)終端(UA)的會(huì)話邀請(qǐng)
A User or Service use this message to let another user/service participate in a session. The body of this message would include a description of the session to which the callee is being invited.
ACK(應(yīng)答)
終端(UA)對(duì)邀請(qǐng)的應(yīng)答
This is used only for INVITE indicating that the client has received a final response to an INVITE request
CANCEL(撤消)
對(duì)某一邀請(qǐng)的撤消
This is used to cancel a pending request
BYE(再見)
終端結(jié)束會(huì)話
A User Agent Client use this message to terminate the call
OPTIONS(查詢)
服務(wù)器能力查詢
This is used to query a server about its capabilities
INFO(通知)
會(huì)話進(jìn)行提醒信息
This is used for mid session signaling
除了基本請(qǐng)求消息外,還有一些擴(kuò)展請(qǐng)求消息;它們是對(duì)基本請(qǐng)求的更新或擴(kuò)展,其具體如下:
請(qǐng)求內(nèi)容
MESSAGE
信息(如短信)
Usually used to send Standalone Message (like SMS). RFC 3428
SUBSCRIBE
評(píng)閱(異步事件或內(nèi)容)
used to request asynchronous notification of an event or set of events at a later time. RFC 6665
NOTIFY
通知(早期訂閱消息反饋)
used to notify a SIP node that an event that has been requested by an earlier SUBSCRIBE method has occurred. RFC 6665
UPDATE
更新(會(huì)話進(jìn)程內(nèi)容)
used for a client to update parameters of a session (such as the set of media streams and their codecs). RFC 3311
PRACK
應(yīng)答(前期請(qǐng)求)
plays the same role as ACK, but this is used for provisional responses. RFC 3262
PUBLISH
(信息)發(fā)布
used for publication of presence information. RFC 3093
2.應(yīng)答消息
會(huì)話建立過(guò)程除終端(UA)、代理服務(wù)器外還涉及到其他網(wǎng)元; 應(yīng)答消息是代理服務(wù)器或終端對(duì)請(qǐng)求消息的回答。
Code
分類
Category
1xx
繼續(xù)
Provisional
The request has been received and processing is continuing請(qǐng)求已接收,處理中
2xx
成功
Success
An ACK, to indicate that the action was successfully received, understood, and accepted.應(yīng)答,進(jìn)行成功
3xx
重定向
Redirection
Further action is required to process this request需要進(jìn)一步處理請(qǐng)求
4xx
代理錯(cuò)誤
Client Error
The request contains bad syntax and cannot be fulfilled at this server請(qǐng)求語(yǔ)句存在錯(cuò)誤,服務(wù)器不能解析
5xx
服務(wù)器故障
Server Error
The server failed to fulfill an apparently valid request服務(wù)器不能接受請(qǐng)求
6xx
網(wǎng)絡(luò)故障
Global Failure
The request cannot be fulfilled at any server請(qǐng)求不能完成
原文來(lái)自: RFC 3261等
整理:kangguoying20201101
"5G網(wǎng)絡(luò)共享方案介紹"已在微信公眾號(hào)"跟著老康學(xué)5G"中推出,敬請(qǐng)關(guān)注!
您即將訪問(wèn)的地址是其它網(wǎng)站的內(nèi)容,MSCBSC將不再對(duì)其安全性和可靠性負(fù)責(zé),請(qǐng)自行判斷是否繼續(xù)前往
繼續(xù)訪問(wèn) 取消訪問(wèn),關(guān)閉