물리서버

[21전국] 3과제 Voice Networking

_눙이_ 2021. 11. 11. 16:07
반응형

WORK-R

int tun 1
tunnel mode gre ip

tunnel source gig0/0/1

tunnel destination 107.58.65.1

ip add 10.10.10.1 255.255.255.0

exit

ip route 172.16.0.0 255.255.255.0 10.10.10.2
ip route 10.1.0.0 255.255.255.252 10.10.10.2

 

voice service voip

allow-connections sip to sip

allow-connections h323 to h323

allow-connections sip to h323

allow-connections h323 to sip

sip

registrar server

no call service stop

voice register global

mode cme

authenticate register

source-address 192.168.0.254 port 5060
voicemail 11000

max-dn 2

max-pool 1

tftp-path flash:

voice register dn 1

number 1001

name John

label John

allow watch
call-forward b2bua noan 11001 timeout 10

exit
voice register dn 2
number 1002
name TO-CENT
label TO-CENT
intercom speed-dial 2002 label TO-CENT

voice register pool 1

id mac <WORK-PHONE MAC 주소>

type 7962

number 1 dn 1
number 2 dn 2

codec g711ulaw

description John

username 1001 pass 1001
dtmf-relay rtp-nte

exit

voice register global

create profile

dial-peer voice 2000 voip

destination-pattern 200.

session target ipv4:107.58.65.1

dtmf-relay rtp-nte

codec g711ulaw

session protocol sipv2
dial-peer voice 11000 voip
destination-pattern 1....

session protocol sipv2

session target ipv4:172.16.0.1

dtmf-relay rtp-nte

codec g711ulaw

end

 

WORK-PHONE

※번호를 받아온 것을 확인

 

CENT-R

conf t

int tun 1
tunnel mode gre ip

tunnel source gig0/0/1

tunnel destination 203.230.10.1

ip add 10.10.10.2 255.255.255.0

exit

ip route 192.168.0.0 255.255.255.0 10.10.10.1

voice service voip

allow-connections sip to sip

allow-connections h323 to h323

allow-connections sip to h323

allow-connections h323 to sip

sip

registrar server

no call service stop

voice register global

mode cme

authenticate register

source-address 10.1.0.2 port 5060

max-dn 2

max-pool 1
voicemail 11000

tftp-path flash:

voice register dn 1

number 2001

name Kali

label Kali

allow watch
call-forward b2bua noan 12001 timeout 10

voice register dn 2
number 2002
name TO-WORK
label TO-WORK
intercom speed-dial 1002 label TO-WORK

exit

voice register pool 1

id mac <CENT-PHONE MAC 주소>

type 7962

number 1 dn 1
number 2 dn 2

codec g711ulaw

username 2001 pass 2001
description Kali
dtmf-relay rtp-nte

exit

voice register global

create profile

dial-peer voice 1000 voip

destination-pattern 100.

session target ipv4:203.230.10.1

dtmf-relay rtp-nte

codec g711ulaw

session protocol sipv2
dial-peer voice 11000 voip

destination-pattern 1....

session target ipv4:172.16.0.1

dtmf-relay rtp-nte

codec g711ulaw

session protocol sipv2

end

 

CENT-PHONE

※번호를 받아온 것을 확인

 

ISP

#apt –y install asterisk

#cp /usr/share/asterisk/conf/samples/skinny.conf.sample /etc/asterisk/skinny.conf

#vim /etc/asterisk/skinny.conf

 

device 항목은 “SEP”+<REMOTEMAC 주소>

 

#vim /etc/asterisk/sip.conf

※맨 아래 추가

 

#vim /etc/asterisk/extensions.conf

※맨 아래 추가'

 

#systemctl restart asterisk

 

WORK-R, CENT-R

conf t

dial-peer voice 3000 voip

destination-pattern 300.

session target ipv4:110.240.50.1

session protocol sipv2

dtmf-relay rtp-nte

codec g711ulaw

exit

 

WORK-PHONE, CENT-PHONE, REMOTE

※서로 통화가 가능한 것을 확인

 

 

반응형