volte

1.2 SIP(Session Initiation Protocol)&SDP
SIP协议是互联网行业标准组织IETF提出的,SIP(Session Initiation Protocol)是一个应用层的信令控制协议。用于创建、修改和释放一个或多个参与者的会话。这些会话可以是Internet多媒体会议 、IP电话或多媒体分发。会话的参与者可以通过组播(multicast)、网状单播(unicast)或两者的混合体进行通信。VOLTE选择了SIP协议,最主要的原因就是免费。
在VOLTE中引入了IMS,对VOLTE进行业务控制,MME只是做为业务的承载体,IMS对业务的控制全部通过SIP消息完成,在学习VOLTE的过程中必须学习SIP消息。
SIP有两种类型的消息,它们是:
请求:从客户机发到服务器的消息。
响应:从服务器发到客户机的消息。
 其中VOLTE常用的请求消息包括下列几种,表中也列出了消息的定义文档:
Request Name Description Defined in
INVITE indicates a client is being invited to participate in a call session RFC3261
ACK Confirms that the client has received a final response to an INVITE request RFC3261
BYE Terminates a call and can be sent by caller or the callee RFC3261
OPTIONS Queries the capabilities of servers RFC3261
CANCEL Cancel any pending request RFC3261
REGISTER Registers the address listed in the To header field with SIP Server RFC3261
PRACK Provisional acknowledgement RFC3262
SUBSCRIBE Subscribes for an Event of Notification from the Notifier RFC3265
NOTIFY Notify the subscriber of a new Event RFC3265
UPDATE Modifies the state of a session without changing the state of the dialog RFC3311
PUBLISH Publishes an event to the Server RFC3903
INFO Sends mid-session information that does not modify the session state RFC6086
REFER Asks recipient to issue SIP request(call transfer) RFC3515
MESSAGE Transports instant messages using SIP RFC3248
响应消息包含数字响应代码,SIP响应代码集部分基于HTTP响应代码。
有两种类型的响应,它们是:
  · 临时响应(1XX):临时响应被服务器用来指示进程,但是不终结SIP事物。
  · 最终响应(2XX,3XX,4XX,5XX,6XX):最终响应终止SIP事物。
1xx 进展相应 临时相应
2xx 成功 最终相应
3xx 重定向错误 最终相应
4xx 客户端错误 最终相应
5xx 服务端错误 最终相应
6xx 全局错误 最终相应
SIP由于是采用文本格式编码,所以消息格式很简单,是由Message Header加可选的Message body构成,Message Header 从第二行开始每一行都由“Tag :Valued”格式组成,每一行描述一个属性,SDP也是用文本格式描述的,一个SDP Description可以包含很多行,每一行的格式如下:
Type = Value
Type只用一个字母来表示;一个SDP Description通常有一个Session-level和多个Media-level信息组成,常见的SDP属性如下:
v Protocol version
b Bandwidth information
o Owner of the session and session identifier
z Time zone adjustments
s Name of the session
k Encryption key
i Information about the session
a Attribute lines
u URL containing a description of the session
t Time when the session is active
e E-mail address to obtain information about the session
r Times when the session will be repeated
p Phone number to obtain information about the session
m Media line
c Connection information
i Information about a media line

在这里插入图片描述在这里插入图片描述
在这里插入图片描述在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值