【VOLTE】VOLTE中的Precondition

Precondition机制在VOLTE中确保了参与者在会话建立前预留网络资源。它涉及当前状态、请求状态和确认状态。通过一系列SIP消息(如INVITE、183、UPDATE)进行协商,确保双方网络资源准备就绪后再开始振铃。
摘要由CSDN通过智能技术生成

preconditions require thatthe participant reserve network resources before continuing withthe session.  We do not define new quality ofservice reservation mechanisms; these preconditions simply requirea participant to use existing resource reservation mechanismsbefore beginning the session. ...... A precondition is a set ofconstraints about the session which are introduced in theoffer.

 

Preconditions就是让参与则在会话建立之前,保留网络资源

 

Precondition包括3种状态当前状态、请求的状态以及确认的状态。

current-status    "a=curr:" precondition-type

                            SPstatus-type SP direction-tag

desired-status    "a=des:" precondition-type

                            SPstrength-tag SP status-type

                            SPdirection-tag

confirm-status    "a=conf:" precondition-type

                            SPstatus-type SP direction-tag

 

precondition-type =  "qos" |token

strength-tag      ("mandatory" | "optional" |"none"

                         | "failure" | "unknown")

status-type       ("e2e" | "local" | "remote")

direction-tag     = ("none" | "send" | "recv" |"sendrecv")

//curren-staus 当前媒体流所有的网络资源状态

//desired-status就是需要preconditions预前需要提供的网络资源状态

//confirm-status 一个阈值。当网络资源状态达到这个阈值时,对端的UA就要发送update消息说明当前流媒体的状态。

When the status of network resources reach theseconditions, the peer user agent will

send an update of the session descriptioncontaining an updated current status attributefor

this particularmedia stream.

 

//strength-tagprecondition没有达到要求时,主叫是否需要alerting.

//status-type表明 e2e就是end to end端到端的意思

//direction-TAG表明该precondition是用于发送还是用于接收

 

Preconditons常见的场景如下


【VOLTE】VOLTE中的Precondition

AB拨打电话

1.A不希望在AB的网络资源未准备好之前B振铃,B也同意。

2.A呼叫BB接到INVITE消息后,并不马上振铃,而是回复183(session progress)A,让A保留所需要的网络资源

3.A收到B183(session progress)后,开始准备预留网络资源,当准备完成后,发送update消息给B

4.B接收到Aupdate消息,表明A的网络资源已预留好了之后,然后开始振铃。

 

(1) INVITE

 

INVITEsip:0123456789;phone-context=test.net@test.net;user=phoneSIP/2.0

Allow:INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK

P-Preferred-Identity:

User-Agent: TEST IMS CLIENT 4.0

P-Preferred-Service:urn:urn-7:3gpp-service.ims.icsi.mmtel

CSeq: 1 INVITE

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值