Asterisk 구성 내용
ISP에 음성사서함을 구성하고, 음성사서함 조회를 위해 번호를 4000번을 할당하고 John 사용자는 4001, Kali 사용자는 4002번을 사용한다. messages 버튼을 눌러서 4000번에 접근해 녹음된 내용을 을 수 있게 구성하고, Kali 사용자가 John 사용자에게 전화를 걸었을 때, 10초 동안 전화를 받지 않으면, 자동으로 각 사용자의 음성사서함에 연결되며 메시지를 녹음 할 수 있어야 한다. (이것은 하나의 참고용으로 생각해주시길 바랍니다)
CENT-R에 call-forward b2bua noan 1001 timeout 10 이 명령어는 구글링 하시면서 공부하시길 바랍니다
Asterisk 구성
WORK-R
conf t
voice service voip
allow-connections sip to sip
allow-connections sip to h323
allow-connections h323 to sip
allow-connections h323 to h323
sip
registar server
no call service stop
voice register global
mode cme
authenticate register
source-address 192.168.0.254 port 5060
voicemail 4000
max-dn 2
max-pool 2
tftp-path flash:
voice register dn 1
number 1001
name John
label John
allow watch
call-forward b2bua noan 4001 timeout 10
voice register pool 1
id mac <WORK-PHONE의 MAC 주소>
type 7962
number 1 dn 1
description John
codec g711ulaw
dtmf-relay rtp-nte
dial-peer voice 2000 voip
destination-pattern 200.
session target ipv4:107.58.65.1
session protocol sipv2
dtmf-relay rtp-nte
codec g711ulaw
voice register global
create profile
CENT-R
conf t
voice service voip
allow-connections sip to sip
allow-connections sip to h323
allow-connections h323 to sip
allow-connections h323 to h323
sip
register server
no call service stop
voice register global
mode cme
source-address 10.1.0.2 port 5060
voicemail 4000
max-dn 2
max-pool 2
tftp-path flash:
authenticate register
voice register dn 1
number 2001
name Kali
label Kali
allow watch
call-forward b2bua noan 1001 timeout 10
voice register pool 1
id mac <CENT-PHONE의 MAC 주소>
type 7962
number 1 dn 1
description 1 dn 1
description Kali
codec g711ulaw
username 2001 pass 2001
dtmf-relay rtp-nte
dial-peer voice 1000 voip
session target ipv4:203.230.10.1
session protocol sipv2
dtmf-relay rtp-nte
codec g711ulaw
voice register global
create profile
ISP
#apt install asterisk
#cp /usr/share/asterisk/conf/samples/skinny.conf.sample /etc/asterisk/skinny.conf
#vim /etc/asterisk/skinny.conf


<device 항목은 REMOTE의 MAC 주소 이다 >

#vim /etc/asterisk/sip.conf


#vim /etc/asterisk/extension.conf


#vim /etc/asterisk/voicemail.conf

#systemctl restart asterisk
REMOTE (윈도우 클라이언트)
CIPC 설치
WORK-R, CENT-R
conf t
dial-peer voice 3000 voip
destination-pattern 300.
session target ip4:110.240.50.1:5061
session protocol sipv2
dtmf-relay rtp-nte
codec g711ulaw
exit
dial-peer voice 4000 voip
destination-pattern 400.
session target ipv4:110.240.50.1:5061
session protocol sipv2
dtmf-relay rtp-nte
codec g711ulaw
EX-FW (방화벽 허용해주는 작업 입니다.)
access-list OUT-TO-IN extended permit udp host 203.230.10.1 host 110.240.50.1 eq 5061
access-list OUT-TO-IN extended permit udp host 107.58.65.1 host 110.240.50.1 eq 5061