Mục tiêu thực hành:
- Cấu hình SIP Phone và Registrar Server trên CME1.
- Cấu hình SIP Phone và Registrar Server trên CME3.
- Cấu hình Dial-Peer trên CME1.
- Cấu hình Dial-Peer trên CME2.
- Khắc phục sự cố nếu các SIP Phone không thực hiện cuộc gọi đi được do tính năng “ip address trusted list” trên Cisco Call Manager.
Các bước triển khai:
Cấu hình SIP Phone và Registrar Server trên CME1.
- Đối với Third Party SIP Phone (Non-Cisco) thì các tham số sau không ảnh hưởng đến thiết bị Phone đầu cuối.
+ id mac
+ dtmf-relay
+ codec
CME1# show running-config | section voice registervoice register globalmode cmesource-address 10.0.0.1 port 5060max-dn 144max-pool 42authenticate registerauthenticate realm 10.0.0.1file textcreate profileexitvoice register dn 1number 101exitvoice register pool 1id mac 5488.DECE.ADDBnumber 1 dn 1dtmf-relay rtp-nteusername 101 password 101codec g711ulawexitCME1#
CME1# show running-config | section voice servicevoice service voipallow-connections h323 to h323allow-connections h323 to sipallow-connections sip to h323allow-connections sip to sipsipregistrar server expires max 600 min 60exitCME1#
Cấu hình SIP Phone và Registrar Server trên CME3.
CME3# show running-config | section voice registervoice register globalmode cmesource-address 192.168.100.1 port 5060max-dn 144max-pool 42authenticate registerauthenticate realm 192.168.100.1file textcreate profileexitvoice register dn 1number 301exitvoice register dn 2number 302exitvoice register pool 1id mac 5488.DECE.ADDBnumber 1 dn 1dtmf-relay rtp-nteusername 301 password 301codec g711ulawexitvoice register pool 2id mac 5488.DECE.ADDCnumber 1 dn 2dtmf-relay rtp-nteusername 302 password 302codec g711ulawexitCME3#
CME3# show running-config | section voice servicevoice service voipip address trusted listipv4 192.168.100.1 255.255.255.255ipv4 172.16.0.0 255.255.255.0allow-connections h323 to h323allow-connections h323 to sipallow-connections sip to h323allow-connections sip to sipsipregistrar server expires max 600 min 60exitCME3#
Cấu hình Dial-Peer trên CME1.
CME1# show running-config | section dial-peerdial-peer voice 1 voipdestination-pattern 30.session protocol sipv2session target ipv4:192.168.100.2session transport udpcodec g711ulawexitCME1#
Cấu hình Dial-Peer trên CME2.
CME3# show running-config | section dial-peerdial-peer voice 1 voipdestination-pattern 10.session protocol sipv2session target ipv4:192.168.100.1session transport udpcodec g711ulawexitCME3#
Khắc phục sự cố nếu các SIP Phone không thực hiện cuộc gọi đi được do tính năng “ip address trusted list” trên Cisco Call Manager.
Tình huống 1.
- no ipv4 172.16.0.0 255.255.255.0: Nếu không thực hiện lệnh này thì các SIP Phone thuộc lớp mạng 172.16.0.0/24 sẽ không thể thực hiện cuộc gọi tới các IP Phone khác mà chỉ có thể tiếp nhận cuộc gọi đến.
CME3#voice service voipip address trusted listipv4 192.168.100.1 255.255.255.255no ipv4 172.16.0.0 255.255.255.0exitexit
Tình huống 2.
- ipv4 172.16.0.3 255.255.255.255: Chỉ có SIP Phone có IP là 172.16.0.3 mới có thể thực hiện cuộc gọi tới các IP Phone khác; các SIP Phone thuộc lớp mạng 172.16.0.0/24 sẽ không thể thực hiện cuộc gọi đi mà chỉ có thể tiếp nhận cuộc gọi.
CME3#voice service voipip address trusted listipv4 192.168.100.1 255.255.255.255ipv4 172.16.0.3 255.255.255.255exitexit
Tình huống 3.
- ipv4 0.0.0.0 0.0.0.0: Call Manager chấp nhận tất cả các cuộc gọi từ tất cả các IP; lệnh này chỉ nên sử dụng để khắc phục sự cố và có nguy cơ bị trộm cước phí.
CME3#voice service voipip address trusted listipv4 192.168.100.1 255.255.255.255ipv4 172.16.0.0 255.255.255.0ipv4 0.0.0.0 0.0.0.0exitexit
Tình huống 4.
- no ip address trusted list: Tắt tính năng “trusted list” trên Call Manager chấp nhận tất cả các cuộc gọi từ tất cả các IP; lệnh này chỉ nên sử dụng để khắc phục sự cố và có nguy cơ bị trộm cước phí.
CME3#voice service voipno ip address trusted listexit
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