1. Thực hiện VoIP với chức năng PLAR
Hình 1: Sơ đồ đấu nối
Mô tả
Chức năng Plar cho phép người dùng không cần quay số, khi vừa nhấc máy thì một số
điện thoại được gán trước sẽ tự động được quay.
Thực hiện
R1#sh run
Building configuration...
Current configuration:
!
version 12.0
no service password-encryption
!
hostname R1
memory-size iomem 10
ip subnet-zero
!
voice-port 1/1/0
connection plar 201 //Số điện thoại đích cần quay
!
voice-port 1/1/1
!
dial-peer voice 1 pots
destination-pattern 101
port 1/1/0
!
dial-peer voice 2 voip
destination-pattern 201
session target ipv4:192.168.1.2
2. !
interface Serial0/0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
!
ip classless
line con 0
transport input none
line aux 0
line vty 0 4
privilege level 15
no login
end
!
R1#
3. R3#sh run
Building configuration...
Current configuration : 932 byte
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
logging queue-limit 100
!
ip subnet-zero
!
mpls ldp logging neighbor-changes
!
no voice hpi capture buffer
no voice hpi capture destination
!
mta receive maximum-recipients 0
!
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
clockrate 2000000
!
ip classless
voice-port 1/0/0
!
voice-port 1/0/1
mgcp profile default
dial-peer cor custom
!
dial-peer voice 1 pots
destination-pattern 201
port 1/0/0
!
dial-peer voice 2 voip
destination-pattern 101
session target ipv4:192.168.1.1
!
line con 0
line aux 0
line vty 0 4
privilege level 15
no login
!
end
R2#