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 voipdestination-pattern 20.session protocol sipv2session target ipv4:10.0.1.2codec g711ulawexit
Cấu hình Dial-Peer trên CME2.
dial-peer voice 1 voipdestination-pattern 10.session protocol sipv2session target ipv4:10.0.1.1codec g711ulawexit
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.0Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rportMax-Forwards: 70Contact: <sip:101@172.16.1.2:37226>To: "201"<sip:201@172.16.1.1>From: "101"<sip:101@172.16.1.1>;tag=4b043919Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 1 INVITEAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFOContent-Type: application/sdpUser-Agent: X-Lite release 1006e stamp 34025Content-Length: 319v=0o=- 5 2 IN IP4 172.16.1.2s=CounterPath X-Lite 3.0c=IN IP4 172.16.1.2t=0 0m=audio 10948 RTP/AVP 107 119 0 98 8 3 101a=alt:1 1 : TizE8O02 v61c5I+U 172.16.1.2 10948a=fmtp:101 0-15a=rtpmap:107 BV32/16000a=rtpmap:119 BV32-FEC/16000a=rtpmap:98 iLBC/8000a=rtpmap:101 telephone-event/8000a=sendrecv*Mar 24 07:46:21.886: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 100 TryingVia: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rportFrom: "101"<sip:101@172.16.1.1>;tag=4b043919To: "201"<sip:201@172.16.1.1>Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 1 INVITEAllow-Events: telephone-eventServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 24 07:46:21.886: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:INVITE sip:201@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598Remote-Party-ID: "101" <sip:101@10.0.1.1>;party=calling;screen=no;privacy=offFrom: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Supported: 100rel,timer,resource-priority,replaces,sdp-anatMin-SE: 1800Cisco-Guid: 3698208935-2343244267-2148651877-3466191275User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERCSeq: 101 INVITETimestamp: 1616571981Contact: <sip:101@10.0.1.1:5060>Expires: 180Allow-Events: telephone-eventMax-Forwards: 69Content-Type: application/sdpContent-Disposition: session;handling=requiredContent-Length: 203v=0o=CiscoSystemsSIP-GW-UserAgent 3978 8680 IN IP4 10.0.1.1s=SIP Callc=IN IP4 10.0.1.1t=0 0m=audio 16392 RTP/AVP 0 19c=IN IP4 10.0.1.1a=rtpmap:0 PCMU/8000a=rtpmap:19 CN/8000a=ptime:20*Mar 24 07:46:21.892: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Received:SIP/2.0 100 TryingVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Timestamp: 1616571981CSeq: 101 INVITEAllow-Events: telephone-eventServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 24 07:46:21.998: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Received:SIP/2.0 180 RingingVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Timestamp: 1616571981CSeq: 101 INVITERequire: 100relRSeq: 885Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERAllow-Events: telephone-eventRemote-Party-ID: <sip:201@10.0.1.2>;party=called;screen=no;privacy=offContact: <sip:201@10.0.1.2:5060>Server: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 24 07:46:22.002: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:PRACK sip:201@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK52230From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1CSeq: 102 PRACKRAck: 885 101 INVITEAllow-Events: telephone-eventMax-Forwards: 70Content-Length: 0*Mar 24 07:46:22.002: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 180 RingingVia: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rportFrom: "101"<sip:101@172.16.1.1>;tag=4b043919To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 1 INVITEAllow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERAllow-Events: telephone-eventRemote-Party-ID: <sip:201@172.16.1.1>;party=called;screen=no;privacy=offContact: <sip:201@172.16.1.1:5060>Server: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 24 07:46:22.007: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK52230From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:22 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Server: Cisco-SIPGateway/IOS-15.2.4.M5.3CSeq: 102 PRACKContent-Length: 0CME1#
- 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 OKVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK42598From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:22 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Timestamp: 1616571981CSeq: 101 INVITEAllow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERAllow-Events: telephone-eventRemote-Party-ID: <sip:201@10.0.1.2>;party=called;screen=no;privacy=offContact: <sip:201@10.0.1.2:5060>Supported: replacesSupported: sdp-anatServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Supported: timerContent-Type: application/sdpContent-Disposition: session;handling=requiredContent-Length: 202v=0o=CiscoSystemsSIP-GW-UserAgent 9703 644 IN IP4 10.0.1.2s=SIP Callc=IN IP4 10.0.1.2t=0 0m=audio 16388 RTP/AVP 0 19c=IN IP4 10.0.1.2a=rtpmap:0 PCMU/8000a=rtpmap:19 CN/8000a=ptime:20*Mar 24 07:47:00.107: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:ACK sip:201@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK61A4EFrom: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Max-Forwards: 70CSeq: 101 ACKAllow-Events: telephone-eventContent-Length: 0*Mar 24 07:47:00.119: //11/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-e216de074f7d4e68-1--d87543-;rportFrom: "101"<sip:101@172.16.1.1>;tag=4b043919To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 1 INVITEAllow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERAllow-Events: telephone-eventRemote-Party-ID: <sip:201@172.16.1.1>;party=called;screen=no;privacy=offContact: <sip:201@172.16.1.1:5060>Supported: replacesServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Supported: timerContent-Type: application/sdpContent-Disposition: session;handling=requiredContent-Length: 241v=0o=CiscoSystemsSIP-GW-UserAgent 3222 8536 IN IP4 172.16.1.1s=SIP Callc=IN IP4 172.16.1.1t=0 0m=audio 16390 RTP/AVP 0 101c=IN IP4 172.16.1.1a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20*Mar 24 07:47:00.322: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:ACK sip:201@172.16.1.1:5060 SIP/2.0Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-a76078478609bc43-1--d87543-;rportMax-Forwards: 70Contact: <sip:101@172.16.1.2:37226>To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5From: "101"<sip:101@172.16.1.1>;tag=4b043919Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 1 ACKUser-Agent: X-Lite release 1006e stamp 34025Content-Length: 0CME1#
- 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.0Via: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-733ecd0eab4de053-1--d87543-;rportMax-Forwards: 70Contact: <sip:101@172.16.1.2:37226>To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5From: "101"<sip:101@172.16.1.1>;tag=4b043919Call-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.CSeq: 2 BYEUser-Agent: X-Lite release 1006e stamp 34025Reason: SIP;description="User Hung Up"Content-Length: 0*Mar 24 07:47:18.241: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 172.16.1.2:37226;branch=z9hG4bK-d87543-733ecd0eab4de053-1--d87543-;rportFrom: "101"<sip:101@172.16.1.1>;tag=4b043919To: "201"<sip:201@172.16.1.1>;tag=36D801-1ED5Date: Wed, 24 Mar 2021 07:47:18 GMTCall-ID: NTUzMjZkODFkY2ZhN2JiNzM5NTgzYzdhNTEwMGFkNzU.Server: Cisco-SIPGateway/IOS-15.2.4.M5.3CSeq: 2 BYEReason: Q.850;cause=16P-RTP-Stat: PS=905,OS=144800,PR=896,OR=143360,PL=0,JI=0,LA=0,DU=18Content-Length: 0*Mar 24 07:47:18.241: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Sent:BYE sip:201@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK7C88From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:46:21 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3Max-Forwards: 70Timestamp: 1616572038CSeq: 103 BYEReason: Q.850;cause=16P-RTP-Stat: PS=896,OS=143360,PR=905,OR=144800,PL=0,JI=0,LA=0,DU=18Content-Length: 0*Mar 24 07:47:18.245: //12/DC6E30A78011/SIP/Msg/ccsipDisplayMsg:Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bK7C88From: "101" <sip:101@10.0.1.1>;tag=36D78D-2476To: <sip:201@10.0.1.2>;tag=36D5FF-8D7Date: Wed, 24 Mar 2021 07:47:18 GMTCall-ID: DC6E5765-8BAB11EB-8017D365-CE99E1AB@10.0.1.1Server: Cisco-SIPGateway/IOS-15.2.4.M5.3Timestamp: 1616572038CSeq: 103 BYEReason: Q.850;cause=16P-RTP-Stat: PS=905,OS=144800,PR=896,OR=143360,PL=0,JI=0,LA=0,DU=18Content-Length: 0CME1#
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.
0 comments