VoIP: (01.02) Cấu hình SIP Phone và Registrar Server trên CME

By , 0 View

Mục tiêu thực hành:
- Kích hoạt chức năng SIP Registrar Server trên CME.
- Cấu hình tính năng Trusted List trên CME.
- Kích hoạt chức năng SIP Server trên CME.
- Khai báo Extension và SIP Account trên CME.
- Kiểm tra danh sách các SIP Phone đã register thành công tới CME.

Các bước triển khai:
Kích hoạt chức năng SIP Registrar Server trên CME.
voice service voip
  allow-connections sip to sip
  sip
      registrar server expires max 600 min 60
      no shutdown
  exit

Cấu hình tính năng Trusted List trên CME.
- Tính năng Trusted List cho phép các SIP Phone thực hiện cuộc gọi đi.
voice service voip 
  ip address trusted list 
    ipv4 172.16.1.0 255.255.255.0
    exit
  exit

Kích hoạt chức năng SIP Server trên CME.
voice register global
  mode cme
  source-address 172.16.1.1 port 5060
  max-dn 144
  max-pool 24
  authenticate register
  authenticate realm 172.16.1.1
  file text
  exit

Khai báo Extension và SIP Account trên CME.
voice register dn 1
  number 101
  exit
voice register pool 1
  id mac 5488.dece.addb
  number 1 dn 1
  username 101 password 101
  codec g711ulaw
  dtmf-relay rtp-nte
  session-transport udp
  apply-config
  restart
  exit
voice register global 
  create profile 
  exit

voice register dn 2
  number 102
  exit
voice register pool 2
  id mac 5488.dece.addc
  number 1 dn 2
  username 102 password 102
  codec g711ulaw
  dtmf-relay rtp-nte
  session-transport udp
  apply-config
  restart
  exit
voice register global 
  create profile 
  exit

Kiểm tra danh sách các SIP Phone đã register thành công tới CME.
Router#show voice register pool all
 Pool Tag 1
Config:
  Mac address is 5488.DECE.ADDB
  Number list 1 : DN 1
  Proxy Ip address is 0.0.0.0
  Previous Phone load version is 3CXPhone for Windows 12.0.37098.0
  Current Phone load version is X-Lite release 1006e stamp 34025
  DTMF Relay is enabled, rtp-nte
  Call Waiting is enabled
  DnD is disabled
  Video is disabled
  Camera is disabled
  Busy trigger per button value is 0
  keep-conference is enabled
  registration expires timer max is 600 and min is 60
  username 101 password 101
  Lpcor Type is none

  Transport type is udp
  service-control mechanism is not supported
  registration Call ID is NTYyZmY1M2ViYmFiZWM4OGUwMDNmZDI2NTU4OTZiNzU. 
  Registration method: per line
  Privacy feature is not configured.
  Privacy button is disabled
  active primary line is: 101

  contact IP address: 172.16.1.2 port 34686

  conference admin: no
  conference add mode: all
  conference drop mode: never
  paging-dn: config 0 [multicast]  effective 0 [multicast]

Dialpeers created:

Dial-peers for Pool 1:

dial-peer voice 40002 voip
 destination-pattern 101$
 session target ipv4:172.16.1.2:34686
 session protocol sipv2
 dtmf-relay rtp-nte
 codec  g711ulaw bytes 160
  after-hours-exempt   FALSE          

Statistics:
  Active registrations  : 1

  Total SIP phones registered: 1
  Total Registration Statistics
    Registration requests  : 9
    Registration success   : 9
    Registration failed    : 0
    unRegister requests    : 8
    unRegister success     : 8
    unRegister failed      : 0
    Attempts to register 
           after last unregister : 0 
    Last register request time   : *04:30:55.737 UTC Mon Mar 22 2021 
    Last unregister request time : *11:51:55.701 UTC Sun Mar 21 2021 
    Register success time        : *04:30:55.737 UTC Mon Mar 22 2021 
    Unregister success time      : *11:51:55.701 UTC Sun Mar 21 2021 


 Pool Tag 2
Config:
  Mac address is 5488.DECE.ADDC
  Number list 1 : DN 2
  Proxy Ip address is 0.0.0.0
  Current Phone load version is X-Lite release 1006e stamp 34025
  DTMF Relay is enabled, rtp-nte
  Call Waiting is enabled
  DnD is disabled
  Video is disabled
  Camera is disabled
  Busy trigger per button value is 0
  keep-conference is enabled
  registration expires timer max is 600 and min is 60
  username 102 password 102
  Lpcor Type is none

  Transport type is udp
  service-control mechanism is not supported
  registration Call ID is OTY2NWI4ZGZkOTI0OWE0ZDBmMmI2NzY3NWJmNjIyM2M. 
  Registration method: per line
  Privacy feature is not configured.
  Privacy button is disabled
  active primary line is: 102

  contact IP address: 172.16.1.2 port 20132

  conference admin: no
  conference add mode: all
  conference drop mode: never
  Reason for unregistered state: 
         No registration request since last reboot/unregister

  paging-dn: config 0 [multicast]  effective 0 [multicast]

Dialpeers created:

Dial-peers for Pool 2:

Statistics:
  Active registrations  : 0

  Total SIP phones registered: 1
  Total Registration Statistics
    Registration requests  : 2
    Registration success   : 2
    Registration failed    : 0
    unRegister requests    : 2
    unRegister success     : 2
    unRegister failed      : 0
    Attempts to register 
           after last unregister : 0 
    Last register request time   : *04:31:27.066 UTC Mon Mar 22 2021 
    Last unregister request time : *04:31:46.904 UTC Mon Mar 22 2021 
    Register success time        : *04:31:27.066 UTC Mon Mar 22 2021 
    Unregister success time      : *04:31:46.904 UTC Mon Mar 22 2021 

Router#

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