Mục tiêu thực hành:
- Cấu hình Dial-Peer trên CME1 đóng vai trò ITSP.
- Cấu hình Dial-Peer và Translation-Rule trên CME2.
- Thực hiện quá trình debug ccsip message trên CME2.
- Khảo sát lỗi debug ccsip message (forbidden) trên CME2.
Các bước triển khai:
Cấu hình Dial-Peer trên CME1 đóng vai trò ITSP.
- ITSP là nhà cung cấp dịch vụ SIP Trunk chẳng hạn như Viettel, VNPT, FTP, CMC.
dial-peer voice 1 voipdestination-pattern 02838120120session protocol sipv2session target ipv4:10.0.1.2codec g711ulawexitdial-peer voice 2 voipdestination-pattern 02838120130session protocol sipv2session target ipv4:10.0.1.2codec g711ulawexit
Cấu hình Dial-Peer và Translation-Rule trên CME2.
- Cấu hình Dial-Peer và Translation-Rule tiếp nhận cuộc gọi tới 02838120120 và chuyển cuộc gọi cho 201.
voice service voipip address trusted listipv4 10.0.1.0 255.255.255.0exitexitvoice translation-rule 1rule 1 /02838120120/ /201/exitvoice translation-profile SipTrunk_Incomingtranslate called 1exitvoice class uri 120 siphost ipv4:10.0.1.1exitdial-peer voice 1 voipincoming uri via 120session protocol sipv2codec g711ulawtranslation-profile incoming SipTrunk_Incomingexit
Thực hiện quá trình debug ccsip message trên CME2.
- Thực hiện quá trình debug ccsip message trên CME2 khi IP Phone 101 thực hiện cuộc gọi tới 02838120120.
CME2# debug ccsip messageSIP Call messages tracing is enabledCME2#*Mar 25 07:58:16.213: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:INVITE sip:02838120120@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKDF1ARemote-Party-ID: "101" <sip:101@10.0.1.1>;party=calling;screen=no;privacy=offFrom: "101" <sip:101@10.0.1.1>;tag=56819E8-1E74To: <sip:02838120120@10.0.1.2>Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09E5BC8-8C7611EB-80D2D365-CE99E1AB@10.0.1.1Supported: 100rel,timer,resource-priority,replaces,sdp-anatMin-SE: 1800Cisco-Guid: 2963118153-2356548075-2160907109-3466191275User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERCSeq: 101 INVITETimestamp: 1616659096Contact: <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 3599 6581 IN IP4 10.0.1.1s=SIP Callc=IN IP4 10.0.1.1t=0 0m=audio 16406 RTP/AVP 0 19c=IN IP4 10.0.1.1a=rtpmap:0 PCMU/8000a=rtpmap:19 CN/8000a=ptime:20*Mar 25 07:58:16.218: //172/B09D984980CC/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 100 TryingVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKDF1AFrom: "101" <sip:101@10.0.1.1>;tag=56819E8-1E74To: <sip:02838120120@10.0.1.2>Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09E5BC8-8C7611EB-80D2D365-CE99E1AB@10.0.1.1Timestamp: 1616659096CSeq: 101 INVITEAllow-Events: telephone-eventServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 25 07:58:16.219: //173/B09D984980CC/SIP/Msg/ccsipDisplayMsg:Sent:INVITE sip:201@172.16.2.2:38966 SIP/2.0Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bK92011Remote-Party-ID: "101" <sip:101@172.16.2.1>;party=calling;screen=no;privacy=offFrom: "101" <sip:101@172.16.2.1>;tag=56817EF-1490To: <sip:201@172.16.2.2>Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09F1EAD-8C7611EB-80BF8E17-1B7BC789@172.16.2.1Supported: 100rel,timer,resource-priority,replacesMin-SE: 1800Cisco-Guid: 2963118153-2356548075-2160907109-3466191275User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERCSeq: 101 INVITETimestamp: 1616659096Contact: <sip:101@172.16.2.1:5060>Expires: 180Allow-Events: telephone-eventMax-Forwards: 68Content-Type: application/sdpContent-Disposition: session;handling=requiredContent-Length: 265v=0o=CiscoSystemsSIP-GW-UserAgent 2107 8273 IN IP4 172.16.2.1s=SIP Callc=IN IP4 172.16.2.1t=0 0m=audio 16400 RTP/AVP 0 101 19c=IN IP4 172.16.2.1a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=rtpmap:19 CN/8000a=ptime:20*Mar 25 07:58:16.324: //173/B09D984980CC/SIP/Msg/ccsipDisplayMsg:Received:SIP/2.0 180 RingingVia: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bK92011Contact: <sip:201@172.16.2.2:38966>To: <sip:201@172.16.2.2>;tag=7b156d49From: "101"<sip:101@172.16.2.1>;tag=56817EF-1490Call-ID: B09F1EAD-8C7611EB-80BF8E17-1B7BC789@172.16.2.1CSeq: 101 INVITEUser-Agent: X-Lite release 1006e stamp 34025Content-Length: 0*Mar 25 07:58:16.328: //172/B09D984980CC/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 180 RingingVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKDF1AFrom: "101" <sip:101@10.0.1.1>;tag=56819E8-1E74To: <sip:02838120120@10.0.1.2>;tag=5681859-BE4Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09E5BC8-8C7611EB-80D2D365-CE99E1AB@10.0.1.1Timestamp: 1616659096CSeq: 101 INVITERequire: 100relRSeq: 8533Allow: 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 25 07:58:16.333: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:PRACK sip:201@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKEA4EFrom: "101" <sip:101@10.0.1.1>;tag=56819E8-1E74To: <sip:02838120120@10.0.1.2>;tag=5681859-BE4Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09E5BC8-8C7611EB-80D2D365-CE99E1AB@10.0.1.1CSeq: 102 PRACKRAck: 8533 101 INVITEAllow-Events: telephone-eventMax-Forwards: 70Content-Length: 0*Mar 25 07:58:16.337: //172/B09D984980CC/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKEA4EFrom: "101" <sip:101@10.0.1.1>;tag=56819E8-1E74To: <sip:02838120120@10.0.1.2>;tag=5681859-BE4Date: Thu, 25 Mar 2021 07:58:16 GMTCall-ID: B09E5BC8-8C7611EB-80D2D365-CE99E1AB@10.0.1.1Server: Cisco-SIPGateway/IOS-15.2.4.M5.3CSeq: 102 PRACKContent-Length: 0CME2#
Khảo sát lỗi debug ccsip message (forbidden) trên CME2.
- Khảo sát lỗi debug ccsip message (forbidden) trên CME2 tiếp nhận cuộc gọi tới 02838120130 và chuyển cuộc gọi cho 202.
voice service voipip address trusted listno ipv4 10.0.1.0 255.255.255.0exitexit
CME2# debug ccsip messagesSIP Call messages tracing is enabledCME2#*Mar 25 08:20:43.710: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:INVITE sip:02838120120@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKF570Remote-Party-ID: "101" <sip:101@10.0.1.1>;party=calling;screen=no;privacy=offFrom: "101" <sip:101@10.0.1.1>;tag=57CA98D-1EB1To: <sip:02838120120@10.0.1.2>Date: Thu, 25 Mar 2021 08:20:43 GMTCall-ID: D3C9509D-8C7911EB-80DBD365-CE99E1AB@10.0.1.1Supported: 100rel,timer,resource-priority,replaces,sdp-anatMin-SE: 1800Cisco-Guid: 3553136055-2356744683-2161496933-3466191275User-Agent: Cisco-SIPGateway/IOS-15.2.4.M5.3Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTERCSeq: 101 INVITETimestamp: 1616660443Contact: <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 3665 6100 IN IP4 10.0.1.1s=SIP Callc=IN IP4 10.0.1.1t=0 0m=audio 16410 RTP/AVP 0 19c=IN IP4 10.0.1.1a=rtpmap:0 PCMU/8000a=rtpmap:19 CN/8000a=ptime:20*Mar 25 08:20:43.715: //177/D3C88DB780D5/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 100 TryingVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKF570From: "101" <sip:101@10.0.1.1>;tag=57CA98D-1EB1To: <sip:02838120120@10.0.1.2>Date: Thu, 25 Mar 2021 08:20:43 GMTCall-ID: D3C9509D-8C7911EB-80DBD365-CE99E1AB@10.0.1.1Timestamp: 1616660443CSeq: 101 INVITEAllow-Events: telephone-eventServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Content-Length: 0*Mar 25 08:20:43.715: //177/D3C88DB780D5/SIP/Msg/ccsipDisplayMsg:Sent:SIP/2.0 403 ForbiddenVia: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKF570From: "101" <sip:101@10.0.1.1>;tag=57CA98D-1EB1To: <sip:02838120120@10.0.1.2>;tag=57CA798-2622Date: Thu, 25 Mar 2021 08:20:43 GMTCall-ID: D3C9509D-8C7911EB-80DBD365-CE99E1AB@10.0.1.1Timestamp: 1616660443CSeq: 101 INVITEAllow-Events: telephone-eventServer: Cisco-SIPGateway/IOS-15.2.4.M5.3Reason: Q.850;cause=21Content-Length: 0*Mar 25 08:20:43.724: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:ACK sip:02838120120@10.0.1.2:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.1.1:5060;branch=z9hG4bKF570From: "101" <sip:101@10.0.1.1>;tag=57CA98D-1EB1To: <sip:02838120120@10.0.1.2>;tag=57CA798-2622Date: Thu, 25 Mar 2021 08:20:43 GMTCall-ID: D3C9509D-8C7911EB-80DBD365-CE99E1AB@10.0.1.1Max-Forwards: 70CSeq: 101 ACKAllow-Events: telephone-eventContent-Length: 0*Mar 25 08:20:43.953: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:Received:CME2#
- Cấu hình Dial-Peer và Translation-Rule tiếp nhận cuộc gọi tới 02838120130 và chuyển cuộc gọi cho 202.
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