VoIP: (02.01) Định tuyến cuộc gọi Dial-Peer trên CME

By , 0 View

Mục tiêu thực hành:
- Cấu hình Dial-Peer trên CME1.
- Cấu hình Dial-Peer trên CME2.
- Khảo sát quá trình debug thực hiện cuộc gọi từ IP Phone 101 tới 201.

Các bước triển khai:
Cấu hình Dial-Peer trên CME1.
dial-peer voice 1 voip
  destination-pattern 20.
  session protocol sipv2
  session target ipv4:10.0.1.2
  codec g711ulaw
  exit

Cấu hình Dial-Peer trên CME2.
dial-peer voice 1 voip
  destination-pattern 10.
  session protocol sipv2
  session target ipv4:10.0.1.1
  codec g711ulaw
  exit

Khảo sát quá trình debug thực hiện cuộc gọi từ IP Phone 101 tới 201.
- Quá trình debug cuộc gọi giữa 2 IP Phone trực tiếp, không thông qua SIP Proxy.

- Quá trình debug cuộc gọi giữa 2 IP Phone thông qua SIP Proxy.

- IP Phone 101 thực hiện cuộc gọi tới 201.
CME1# debug ccsip message
*Mar 24 07:46:21.881: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
INVITE sip:201@172.16.1.1 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:101@172.16.1.2:37226>
To: "201"<sip:201@172.16.1.1>
From: "101"<sip:101@172.16.1.1>;tag=4b043919
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1006e stamp 34025
Content-Length: 319

v=0
o=- 5 2 IN IP4 172.16.1.2
s=CounterPath X-Lite 3.0
c=IN IP4 172.16.1.2
t=0 0
m=audio 10948 RTP/AVP 107 119 0 98 8 3 101
a=alt:1 1 : TizE8O02 v61c5I+U 172.16.1.2 10948
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv

*Mar 24 07:46:21.886: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rport
From: "101"<sip:101@172.16.1.1>;tag=4b043919
To: "201"<sip:201@172.16.1.1>
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 1 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Content-Length: 0

*Mar 24 07:46:21.886: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:201@10.0.1.2:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598
Remote-Party-ID: "101" <sip:101@10.0.1.1>;party=calling;screen=no;privacy=off
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 3698208935-2343244267-2148651877-3466191275
User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1616571981
Contact: <sip:101@10.0.1.1:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 203

v=0
o=CiscoSystemsSIP-GW-UserAgent 3978 8680 IN IP4 10.0.1.1
s=SIP Call
c=IN IP4 10.0.1.1
t=0 0
m=audio 16392 RTP/AVP 0 19
c=IN IP4 10.0.1.1
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20

*Mar 24 07:46:21.892: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Timestamp: 1616571981
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Content-Length: 0

*Mar 24 07:46:21.998: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Timestamp: 1616571981
CSeq: 101 INVITE
Require: 100rel
RSeq: 885
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@10.0.1.2>;party=called;screen=no;privacy=off
Contact: <sip:201@10.0.1.2:5060>
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Content-Length: 0

*Mar 24 07:46:22.002: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
PRACK sip:201@10.0.1.2:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK52230
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
CSeq: 102 PRACK
RAck: 885 101 INVITE
Allow-Events: telephone-event
Max-Forwards: 70
Content-Length: 0

*Mar 24 07:46:22.002: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rport
From: "101"<sip:101@172.16.1.1>;tag=4b043919
To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@172.16.1.1>;party=called;screen=no;privacy=off
Contact: <sip:201@172.16.1.1:5060>
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Content-Length: 0

*Mar 24 07:46:22.007: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK52230
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:22 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
CSeq: 102 PRACK
Content-Length: 0

CME1#

- IP Phone 201 tiếp nhận cuộc gọi từ 101.
CME1# debug ccsip message
*Mar 24 07:47:00.103: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:22 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Timestamp: 1616571981
CSeq: 101 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@10.0.1.2>;party=called;screen=no;privacy=off
Contact: <sip:201@10.0.1.2:5060>
Supported: replaces
Supported: sdp-anat
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 202

v=0
o=CiscoSystemsSIP-GW-UserAgent 9703 644 IN IP4 10.0.1.2
s=SIP Call
c=IN IP4 10.0.1.2
t=0 0
m=audio 16388 RTP/AVP 0 19
c=IN IP4 10.0.1.2
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20

*Mar 24 07:47:00.107: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
ACK sip:201@10.0.1.2:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK61A4E
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0

*Mar 24 07:47:00.119: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rport
From: "101"<sip:101@172.16.1.1>;tag=4b043919
To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@172.16.1.1>;party=called;screen=no;privacy=off
Contact: <sip:201@172.16.1.1:5060>
Supported: replaces
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 241

v=0
o=CiscoSystemsSIP-GW-UserAgent 3222 8536 IN IP4 172.16.1.1
s=SIP Call
c=IN IP4 172.16.1.1
t=0 0
m=audio 16390 RTP/AVP 0 101
c=IN IP4 172.16.1.1
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

*Mar 24 07:47:00.322: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
ACK sip:201@172.16.1.1:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-a76078478609bc43-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:101@172.16.1.2:37226>
To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5
From: "101"<sip:101@172.16.1.1>;tag=4b043919
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 1 ACK
User-Agent: X-Lite release 1006e stamp 34025
Content-Length: 0

CME1#

- IP Phone 101 ngắt cuộc gọi tới 201.
CME1# debug ccsip message
*Mar 24 07:47:18.236: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
BYE sip:201@172.16.1.1:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-733ecd0eab4de053-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:101@172.16.1.2:37226>
To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5
From: "101"<sip:101@172.16.1.1>;tag=4b043919
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
CSeq: 2 BYE
User-Agent: X-Lite release 1006e stamp 34025
Reason: SIP;description="User Hung Up"
Content-Length: 0

*Mar 24 07:47:18.241: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-733ecd0eab4de053-1--d87543-;rport
From: "101"<sip:101@172.16.1.1>;tag=4b043919
To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5
Date: Wed, 24 Mar 2021 07:47:18 GMT
Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
CSeq: 2 BYE
Reason: Q.850;cause=16
P-RTP-Stat: PS=905,OS=144800,PR=896,OR=143360,PL=0,JI=0,LA=0,DU=18
Content-Length: 0

*Mar 24 07:47:18.241: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Sent: 
BYE sip:201@10.0.1.2:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK7C88
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:46:21 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3
Max-Forwards: 70
Timestamp: 1616572038
CSeq: 103 BYE
Reason: Q.850;cause=16
P-RTP-Stat: PS=896,OS=143360,PR=905,OR=144800,PL=0,JI=0,LA=0,DU=18
Content-Length: 0


*Mar 24 07:47:18.245: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK7C88
From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476
To: <sip:201@10.0.1.2>;tag=36D5FF-8D7
Date: Wed, 24 Mar 2021 07:47:18 GMT
Call-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1
Server: Cisco-SIPGateway/IOS-15.2.4.M5.3
Timestamp: 1616572038
CSeq: 103 BYE
Reason: Q.850;cause=16
P-RTP-Stat: PS=905,OS=144800,PR=896,OR=143360,PL=0,JI=0,LA=0,DU=18
Content-Length: 0

CME1#

Tham khảo các Videos lý thuyết CCNA Voice (Collaboration) trước khi tham khảo các bài hướng dẫn thực hành VoIP. Mọi thắc mắc, các bạn vui lòng liên lạc với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.

You Might Also Like

0 comments