无应答前传消息流程

Posted lytwajue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无应答前传消息流程相关的知识,希望对你有一定的参考价值。

无应答前传

激活无应答呼叫前转业务后,当电话响铃无人接听,电话会自己主动转移到事前设定的号码上。

 

INVITEsip:[email protected]:5060;transport=udp SIP/2.0

Via: SIP/2.0/UDP192.168.11.137:5060;rport;branch=z9hG4bK1075141334

From: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

To:<sip:[email protected]:5060>

Call-ID: [email protected]

CSeq: 39 INVITE

Contact:<sip:[email protected]:5060>

Max-Forwards: 30

Allow: INVITE, ACK, BYE, CANCEL,OPTIONS, NOTIFY, REFER, REGISTER, MESSAGE, INFO, SUBSCRIBE

Content-Type: application/sdp

Content-Length:   284

 

v=0

o=ZED3 5525 5525 IN IP4192.168.11.137

s=ZED3

c=IN IP4 192.168.11.137

t=0 0

m=audio 6510 RTP/AVP 4 18 8 0 3 101

a=rtpmap:4 G723/8000

a=rtpmap:18 G729/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:3 GSM/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

 

主叫方1003发起一路呼叫,终端1003向代理server发送INVITE请求消息

 

SIP/2.0 100 Trying

Via: SIP/2.0/UDP192.168.11.137:5060;rport;branch=z9hG4bK1075141334

From: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

To:<sip:[email protected]:5060>;tag=29a345f73

Call-ID: [email protected]

CSeq: 39 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

代理server向终端用户1003100 Trying响应,表示呼叫已经在处理中,终端收到100 Trying消息后,停止重发定时器

 

INVITE sip:[email protected]/2.0

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK0ec3659b

Allow: INVITE, ACK, CANCEL, BYE,UPDATE, REFER, PRACK, REGISTER, INFO

From: ""<sip:[email protected]>;tag=2fdf9a65

Contact: <sip:[email protected]:5060>

To: <sip:[email protected]>

Call-ID: [email protected]

CSeq: 197 INVITE

Max-Forwards: 70

Alert-Info:<http://127.0.0.1/1>

Supported: timer

Session-Expires: 90

Record-ID: 1003_2013101018071508521178

Content-Type: application/sdp

Content-Length: 296

 

v=0

o=root 247686555 247686555 IN IP4192.168.11.60

s=session

c=IN IP4 192.168.11.60

t=0 0

m=audio 14668 RTP/AVP 4 18 8 0 3101

a=rtpmap:4 G723/8000

a=rtpmap:18 G729/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:3 GSM/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

 

代理server对收到的请求消息验证通过。向被叫1004终端代理转发INVITE请求消息

 

SIP/2.0 100 Trying

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK0ec3659b

From: ""<sip:[email protected]>;tag=2fdf9a65

To: <sip:[email protected]>;tag=1165739258

Call-ID: [email protected]

CSeq: 197 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

被叫1003100 Trying响应,表示呼叫已经在处理中。代理server收到100 Trying消息后,停止重发定时器

 

 

SIP/2.0 180 Ringing

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK0ec3659b

From: "" <sip:[email protected]>;tag=2fdf9a65

To:<sip:[email protected]>;tag=1165739258

Call-ID: [email protected]

CSeq: 197 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

被叫终端用户1004振铃,终端向代理server回180 ring响应,表示被叫用户正在振铃

 

SIP/2.0 180 Ringing

Via: SIP/2.0/UDP192.168.11.137:5060;rport;branch=z9hG4bK1075141334

From: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

To:<sip:[email protected]:5060>;tag=29a345f73

Call-ID: [email protected]

CSeq: 39 INVITE

Contact: <sip:[email protected]:5060>

Content-Length: 0

 

代理server向终端用户1003转发180ring响应,表示用户1003听回铃音

 

SIP/2.0 408 Request Timeout

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK0ec3659b

From: ""<sip:[email protected]>;tag=2fdf9a65

To:<sip:[email protected]>;tag=1165739258

Call-ID: [email protected]

CSeq: 197 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

被叫1004长时间振铃,无人接听,被叫终端代理推断超时后,向代理server回408request timeout消息。放弃该次呼叫

 

ACK sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK0ec3659b

From: "" <sip:[email protected]>;tag=2fdf9a65

To:<sip:[email protected]>;tag=1165739258

Call-ID: [email protected]

CSeq: 197 ACK

Max-Forwards: 70

Content-Length: 0

 

代理server向终端用户1004ACK。确认消息,终端用户1004挂机

 

INVITE sip:[email protected]/2.0

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK7d051e83

Allow: INVITE, ACK, CANCEL, BYE,UPDATE, REFER, PRACK, REGISTER, INFO

From: ""<sip:[email protected]>;tag=20f9459e

Contact:<sip:[email protected]:5060>

To: <sip:[email protected]>

Call-ID: [email protected]

CSeq: 222 INVITE

Max-Forwards: 70

Alert-Info:<http://127.0.0.1/1>

Supported: timer

Session-Expires: 90

Record-ID:1003_2013101018071508521178

Diversion:<sip:[email protected]>;reason=no-answer

Content-Type: application/sdp

Content-Length: 298

 

v=0

o=root 2097487491 2097487491 IN IP4192.168.11.60

s=session

c=IN IP4 192.168.11.60

t=0 0

m=audio 13814 RTP/AVP 4 18 8 0 3101

a=rtpmap:4 G723/8000

a=rtpmap:18 G729/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:3 GSM/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

 

代理server向终端用户1005发送INVITE请求消息

 

SIP/2.0 100 Trying

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK7d051e83

From: ""<sip:[email protected]>;tag=20f9459e

To: <sip:[email protected]>;tag=1114398002

Call-ID: [email protected]

CSeq: 222 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

终端用户1005100 Trying响应,表示呼叫已经在处理中

 

SIP/2.0 180 Ringing

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK7d051e83

From: "" <sip:[email protected]>;tag=20f9459e

To:<sip:[email protected]>;tag=1114398002

Call-ID: [email protected]

CSeq: 222 INVITE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

被叫终端用户1005振铃,终端代理向代理server回180 ring响应

 

SIP/2.0 200 OK

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK7d051e83

From: ""<sip:[email protected]>;tag=20f9459e

To:<sip:[email protected]>;tag=1114398002

Call-ID: [email protected]

CSeq: 222 INVITE

Contact:<sip:[email protected]:5060>

Content-Type: application/sdp

Content-Length:   190

 

v=0

o=ZED3 5605 5605 IN IP4192.168.11.138

s=ZED3

c=IN IP4 192.168.11.138

t=0 0

m=audio 33440 RTP/AVP 18 101

a=rtpmap:18 G729/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

 

被叫用户1005摘机,终端1005向代理server回200OK响应消息。表示1005摘机。

 

ACK sip:[email protected]:5060SIP/2.0

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK7d051e83

From: ""<sip:[email protected]>;tag=20f9459e

To:<sip:[email protected]>;tag=1114398002

Call-ID: [email protected]

CSeq: 222 ACK

Max-Forwards: 70

Content-Length: 0

 

终端服务将ACK确认消息转发给代理终端1005

 

SIP/2.0 200 OK

Via: SIP/2.0/UDP192.168.11.137:5060;rport;branch=z9hG4bK1075141334

From: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

To:<sip:[email protected]:5060>;tag=29a345f73

Call-ID: [email protected]

CSeq: 39 INVITE

Contact:<sip:[email protected]:5060>

Record-ID:1003_2013101018071508521178

Content-Type: application/sdp

Content-Length: 201

 

v=0

o=root 964956008 964956008 IN IP4192.168.11.60

s=session

c=IN IP4 192.168.11.60

t=0 0

m=audio 14940 RTP/AVP 18 101

a=rtpmap:18 G729/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

 

代理server向终端1003转发该成功消息200OK

 

ACK sip:[email protected]:5060SIP/2.0

Via: SIP/2.0/UDP192.168.11.137:5060;rport;branch=z9hG4bK2053676586

From: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

To:<sip:[email protected]:5060>;tag=29a345f73

Call-ID: [email protected]

CSeq: 39 ACK

Contact:<sip:[email protected]:5060>

Max-Forwards: 30

Content-Length: 0

 

终端1003收到200OK消息后,向代理server发送ACK消息进行确认

 

呼叫建立,AC開始通话。。。。。。

 

BYE sip:[email protected]:5060SIP/2.0

Via: SIP/2.0/UDP192.168.11.138:5060;branch=z9hG4bK1933227437

From:<sip:[email protected]>;tag=1114398002

To: ""<sip:[email protected]>;tag=20f9459e

Call-ID: [email protected]

CSeq: 223 BYE

Contact:<sip:[email protected]:5060>

Max-Forwards: 30

Content-Length: 0

 

通话结束,终端1005挂机,并向代理server发送BYE消息

 

SIP/2.0 200 OK

Via: SIP/2.0/UDP192.168.11.138:5060;branch=z9hG4bK1933227437

From: <sip:[email protected]>;tag=1114398002

To: ""<sip:[email protected]>;tag=20f9459e

Call-ID: [email protected]

CSeq: 223 BYE

Contact:<sip:[email protected]:5060>

Content-Length: 0

 

代理server收到BTE消息向终端1005发送200OK响应消息

 

BYE sip:[email protected]:5060SIP/2.0

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK39840f68

From:<sip:[email protected]:5060>;tag=29a345f73

To: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

Call-ID: [email protected]

CSeq: 196 BYE

Max-Forwards: 70

Content-Length: 0

 

代理server转发BYE消息到终端1003

 

SIP/2.0 200 OK

Via: SIP/2.0/UDP192.168.11.60:5060;branch=z9hG4bK39840f68

From:<sip:[email protected]:5060>;tag=29a345f73

To: "1003"<sip:[email protected]:5060;user=phone>;tag=387369502

Call-ID: [email protected]

CSeq: 196 BYE

Content-Length: 0

 

代理终端1003收到BYE消息后。向代理server发送200OK消息

 技术分享

无应答前传业务消息流程图

以上消息流程的简要描写叙述

1)  主叫1003发起一路呼叫,终端1003向代理server发送INVITE请求消息。

2)  代理server向终端用户1003100 Trying响应。表示呼叫已经在处理中。

3)  代理server向被叫用户1004终端代理转发INVITE请求消息。

4)  终端代理用户1004向代理server回100 Trying响应,告知代理server呼叫正在处理

5) 被叫终端用户1004振铃。终端代理向代理server回180 ring响应

6)  代理server向终端用户1003转发180ring响应。

7)  被叫长时间振铃,无人接听,被叫终端代理推断超时后,向代理server回408requesttimeout消息,放弃该次呼叫。

8)  代理server向终端用户1004ACK,确认消息。终端用户1004挂机。

9)  代理server向终端用户1005发送INVITE请求消息。

10)代理终端用户1005100 Trying响应。表示呼叫已经在处理中。

11)被叫终端代理用户1005振铃。终端代理向代理server回180 ring响应。

12)被叫用户1005摘机,终端1005向代理server回200OK响应消息,表示摘机。

13)代理server向终端代理1003转发该成功消息200OK

14) 终端代理1003收到200OK消息后,向代理server发送ACK消息进行确认。

15)终端服务将ACK确认消息转发给代理终端1005

16)代理终端10031005通话建立成功。

17) 通话结束,代理终端1005挂机,并向代理server发送BYE消息。

18)代理server转发BYE消息到终端1003

19)代理终端1003收到BYE消息后,向代理server发送200OK消息。

20)代理server转发200OK响应消息至代理终端1005

21)通话结束。

 

以上是关于无应答前传消息流程的主要内容,如果未能解决你的问题,请参考以下文章

[深入研究4G/5G/6G专题-27]: 5G NR开机流程4.5 - RRC连接应答消息MSG4PUCCH上行控制信道首次调度UCI与HARQ应答

[深入研究4G/5G/6G专题-26]: 5G NR开机流程4.4 - RRC连接应答消息MSG4(RRCSetup授权)的调度与消息内容详解

SIP呼叫流程典型流程图解及其详细解释

STM32模拟I2C读写铁电无应答

[深入研究4G/5G/6G专题-24]: 5G NR开机流程4.2 - 随机接入应答消息MSG2的调度过程与上行同步时间提前量TA通过PDSCH信道下发

ZMQ请求应答模式之无中间件的可靠性--自由者模式