VoIP: (02.05) Cấu hình giả lập ITSP tiếp nhận tất cả các cuộc gọi từ khách hàng gọi tới từ đầu số xác định

By , 0 View

Mục tiêu thực hành:
- Cấu hình Dial-Peer trên CME2 tiến hành Route tất cả các cuộc gọi tới ITSP (CME1).
- Cấu hình Dial-Peer trên CME1 đóng vai trò ITSP.

Các bước triển khai:
Cấu hình Dial-Peer trên CME2 tiến hành Route tất cả các cuộc gọi tới ITSP (CME1).
voice service voip
  ip address trusted list
    ipv4 10.0.1.0 255.255.255.0
    exit
  exit

voice translation-rule 2
  rule 1 /201/ /02838120120/
  rule 2 /202/ /02838120130/
  exit
voice translation-profile SipTrunk_Outgoing
  translate calling 2
  exit

voice class codec 2
 codec preference 1 g711ulaw
 codec preference 2 g711alaw
 exit

dial-peer voice 1 voip
  destination-pattern .T
  session protocol sipv2
  session target ipv4:10.0.1.1
  voice-class codec 2
  translation-profile outgoing SipTrunk_Outgoing
  exit

Cấu hình Dial-Peer trên CME1 đóng vai trò ITSP.

- Cấu hình Voice Class Codec trên CME1 (ITSP).
voice class codec 2
 codec preference 1 g711ulaw
 codec preference 2 g711alaw
 exit

- ITSP là nhà cung cấp dịch vụ SIP Trunk chẳng hạn như Viettel, VNPT, FTP, CMC. Cấu hình Dial-Peer cấp chính xác 2 đầu số 02838120120 và 02838120130 trên CME1 (ITSP) cho khách hàng CME2.
dial-peer voice 1 voip
  destination-pattern 02838120120
  session protocol sipv2
  session target ipv4:10.0.1.2
  codec g711ulaw
  exit
dial-peer voice 2 voip
  destination-pattern 02838120130
  session protocol sipv2
  session target ipv4:10.0.1.2
  codec g711ulaw
  exit

- Định nghĩa Translation-Rule và Translation-Profile tiếp nhận các cuộc gọi tới và chuyển hết cho IP Phone 101.
voice service voip
  ip address trusted list
    no ipv4 10.0.1.2 255.255.255.255
    exit
  exit

voice translation-rule 1
  rule 1 /^.*/ /101/
  exit
voice translation-profile SipTrunk_Incoming
  translate called 1
  exit

- Thiết lập Dial-Peer chỉ tiếp nhận cuộc gọi từ đầu số 02838120120 02838120130
dial-peer voice 3 voip
 translation-profile incoming SipTrunk_Incoming
 session protocol sipv2
 answer-address 02838120120
 voice-class codec 2
 exit
dial-peer voice 4 voip
 translation-profile incoming SipTrunk_Incoming
 session protocol sipv2
 answer-address 02838120130
 voice-class codec 2
 exit

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