네트워크/VoIP&IPT 2016. 11. 28. 09:52
VoIP/IPT - 02. CME를 이용한 IPT 서비스 구축
@ CME(Cisco Unified Communication Manager Express)
- 라우터를 콜-메니저(IP PBX)로 구성하는 Cisco IPT 솔루션
- 용도 : CUCM 콜-메니저 백업
- 구성 : CLI 기반(명령어 기반)
- 제품
1. 라우터
- 콜-메니저 및 보이스 게이트웨이 수행
- IP 인터페이스 (이더넷, 시리얼)
- PVDM(DSP)
- 음성 트렁크 인터페이스 (T1, E1)
2. 스위치 (권장 : PoE 기능 지원)
- IP 전화기 연결 및 전원 공급
- VLAN, Trunk, 링크 및 기본 게이트웨이 이중화 구성 권장
3. IP Phone
- Cisco IP Phone 6xxx, 7xxx, 9xxx
- R1를 기준으로 진행합니다. R2와 R3는 IP 주소, DN 번호, 기타 내용을 수정해서 진행하세요.
1. 라우터 -> 콜-메니저(IP PBX) 구성
@ R1
telephony-service
ip source-address 13.13.1.1 port 2000
max-dn 10
max-ephone 10
!
2. ephone-dn/ephone 포트 구성 및 IP Phone 수동 등록
@ R1
ephone-dn 1 dual-line
number 1001
!
ephone-dn 2 dual-line
number 1002
!
ephone-dn 3 dual-line
number 1003
!
ephone 1
mac-address xxxx.xxxx.xxxx
type 7940
button 1:1
!
ephone 2
mac-address xxxx.xxxx.xxxx
type CIPC
button 1:2
!
ephone 3
mac-address xxxx.xxxx.xxxx
type CIPC
button 1:3
!
3. DHCP 설정 (IP Phone에게 IP 주소 정보 할당)
@ R1
ip dhcp pool Phone
network 13.13.101.0 255.255.255.0
default-router 13.13.101.254
dns-server 168.126.63.1
option 150 ip 13.13.1.1
4. IP Phone(HQ-1) 등록 확인 및 CIPC 실행
5. IP Phone 전체 메세지 및 날짜/시간 출력 설정
@ R1
telephony-service
system message [사이트 이름] IP Phone 전체 메시지 설정
time-format 12
date-format yy-mm-dd
6. 개인 메세지 및 Caller-ID 설정
@ R1
ephone-dn 1
description 02-562-1001
name HQ1
!
ephone-dn 2
description 02-562-1002
name HQ2
!
ephone-dn 3
description 02-562-1003
name HQ3
!
7. 계정 및 PIN 번호 설정
@ R1
ephone 1
username hq1 password cisco
pin 12345
!
ephone 2
username hq2 password cisco
pin 12345
!
ephone 3
username hq3 password cisco
pin 12345
!
8. dial-peer 설정
@ R1
dial-peer voice 102 voip
destination-pattern 2점점점
session target ipv4:13.13.2.2
!
dial-peer voice 103 voip
destination-pattern 3점점점
session target ipv4:13.13.3.3
!
9. ephone-dn 추가 설정
@ R1
ephone-dn 4 dual-line
number 1101
!
ephone-dn 5 dual-line
number 1102
!
ephone-dn 6 dual-line
number 1103
!
ephone 1
button 2:4
restart
!
ephone 2
button 2:5
restart
!
ephone 3
button 2:6
restart
!
10. PSTN 트렁크 연결 구성 (CCS 방식)
R1,R2,R3#show diag // PVDM 및 트렁크 포트 위치 확인
@ R1, R2, R3
card type e1 0 2 // 0번 모듈/2번 슬롯 -> E1 타입 선정
network-clock-participate wic 2 // 트렁크 포트 PVDM(DSP) Clock 동기화
isdn switch-type primary-net5 // ISDN 스위치 타입(대한민국 : net5, 미국 : ni)
!
controller e1 0/2/0 // E1 0번 모듈/2번 슬롯/0번 포트
pri-group timeslots 1-5 // E1은 최대 30개 체널 사용 가능(단, 실습시에는 5개만 사용)
!
int s0/2/0:15 // E1 D 체널 번호
isdn outgoing display-ie
isdn outgoing ie redirecting-number
// 발신자 번호 및 이름 서비스 설정
R1,R2,R3#show run
R1,R2,R3#show isdn status
[참고] TDM 트렁크
- 1개의 링크를 이용하여 다수의 음성 프레임을 전송 처리하는 링크
- 종류 : T1 트렁크(체널 : 24개, 미국, 일본), E1 트렁크(체널 : 32개, 대한민국, 유럽)
- 방식 : CAS, CCS
- 체널(타임 슬롯) : 각각의 음성 프레임을 전송 처리하는 단위
각 타임 슬롯 용량 : 8bit (초당 8000번 전송 실시, 이유 : 나이퀴스트 이론 적용)
타임 슬롯 당 필요한 대역폭 = 8bit x 8000 = 64kbps = ds0
T1 대역폭 = ds0 x 24 = 1536kbps + 8kbps = 1544kbps
(24개 타임 슬롯) (프레이밍 비트)
E1 대역폭 = ds0 x 32 = 2048kbps (1개의 체널이 프레이밍 체널로 예약되어 있음)
1) CCS(Common Channel Signaling)
- 음성 전송 체널 : B 체널
- 신호 전송 체널 : D 체널
T1 = 23B + 1D = 최대 동시 통화 23개
E1 = 30B + 1D = 최대 동시 통화 30개
2) CAS(Channel Associated Signaling)
- 음성, 신호 체널 구분 없음 (B & D 체널 개념 X)
- 단, E1은 신호만 전송 처리하는 체널이 1개가 예약되어 있음
T1 = 최대 동시 통화 24개
E1 = 최대 동시 통화 30개
[참고] CCS를 사용해야 하는 경우
- ARS(IVR) 시스템 환경
[CCS 방식]
11. PSTN으로부터 수신(트렁크 포트로 수신)하는 콜 dial-peer 설정
R1,R2,R3#show dial-peer voice summary
@ R1#show dial-peer voice summary
dial-peer voice 1 pots
incoming called-number 점 // 모든 Called 번호를 수신함
port 0/2/0:15 // 트렁크 포트
direct-inward-dial // 수신 전용 dial-peer 지정
!
telephony-service
dialplan-pattern 1 02562점점점점 extension-length 4 <- R1
dialplan-pattern 1 032440점점점점 extension-length 4 <- R2
dialplan-pattern 1 312747점점점점 extension-length 4 <- R3
R1,R2,R3#show dial-peer voice summary
12. PSTN Outbound 콜 dial-peer 설정
@ R1, R2, R3
dial-peer voice 100 pots
destination-pattern T
port 0/2/0:15
!
- T(inter-digit Timeout) : 10초 이내에 입력되는 번호를 Called 번호로 처리하는 기능
HQ -> 599-1234, 599-1234#
SB -> 499-1234, 499-1234#
SC -> 799-1234, 799-1234#
13. Access-Code '9' 설정
@ R1, R2, R3
telephony-service
secondary-dialtone 9
!
dial-peer voice 100 pots
destination-pattern 9T
port 0/2/0:15
HQ -> 9-599-1234#
SB -> 9-499-1234#
SCs -> 9-799-1234#
14. Inter-Digit Timeout dial-peer 삭제
@ R1, R2, R3
no dial-peer voice 100 pots
15. PSTN을 이용한 외부 콜 상세 설정 (긴급 전화, 시내 전화, 시외 전화, 국제 전화, 휴대폰)
1) 긴급 전화
HQ(서울) SB(인천) SC(시카고)
긴급 112,113,119 112,113,119 911
@ R1, R2
dial-peer voice 11 pots
destination-pattern 911[239]
port 0/2/0:15
prefix 11
HQ, SB : 9-119
@ R3
dial-peer voice 11 pots
destination-pattern 9911
port 0/2/0:15
prefix 911
SC : 9-911
2) 시내 전화
- 7자리 시내 전화 번호는 앞자리가 '0~1'이 없음, 대부분 '2~9'를 사용하고 있음
HQ(서울) SB(인천) SC(시카고)
시내 xxx-xxxx xxx-xxxx xxx-xxxx
@ R1, R2, R3
dial-peer voice 12 pots
destination-pattern 9[2-9]점점점점점점
port 0/2/0:15
HQ : 9-599-1234
SB : 9-499-1234
SC : 9-799-1234
3) 시외 전화
HQ(서울) SB(인천) SC(시카고)
시외 xxx-xxx-xxxx 02-xxx-xxxx 1-xxx-xxx-xxxx
@ R1
dial-peer voice 13 pots
destination-pattern 90[3-6]점[2-9]점점점점점점
port 0/2/0:15
prefix 0
@ R2
dial-peer voice 13 pots
destination-pattern 902[2-9]점점점점점점
port 0/2/0:15
prefix 02
@ R3
dial-peer voice 13 pots
destination-pattern 91[2-9]점점[2-9]점점점점점점
port 0/2/0:15
prefix 1
HQ : 9-032-499-1234
SB : 9-02-599-1234
SC : 9-1-702-399-1234
4) 국제 전화
HQ(서울) SB(인천) SC(시카고)
시외 001 001 011
@ R1, R2
dial-peer voice 14 pots
destination-pattern 9001T
port 0/2/0:15
prefix 001
@ R3
dial-peer voice 14 pots
destination-pattern 9011T
port 0/2/0:15
prefix 011
HQ : 9-001-1-312-799-1234#
SB : 9-001-1-312-799-1234#
SC : 9-011-82-02-599-1234#, 9-011-82-82-032-499-1234#
5) 휴대폰
HQ(서울) SB(인천) SC(시카고)
시외 010-xxxx-xxxx 010-xxxx-xxxx 011-82-010-xxxx-xxxx
@ R1, R2
dial-peer voice 15 pots
destination-pattern 9010점 8개
port 0/2/0:15
prefix 010
@ R3
dial-peer voice 15 pots
destination-pattern 901182010점 8개
port 0/2/0:15
prefix 01182010
HQ : 9-010-9902-9710
SB : 9-010-9902-9710
SC : 9-011-82-010-9902-9710
16. Digit Manipulation 설정
- HQ, SB, SC 간에 전화를 실시하여 Calling 번호가 내선 번호 4자리 인지, 아니면 E.164 번호인지 확인한다.
- 확인 결과 : E.164 번호로 출력됨
@ R1
voice translation-rule 1
rule 1 /^02562/ //
!
voice translation-profile A
translate calling 1
!
dial-peer voice 102 voip
translation-profile outgoing A
!
dial-peer voice 103 voip
translation-profile outgoing A
@ R2
voice translation-rule 1
rule 1 /^032440/ //
!
voice translation-profile A
translate calling 1
!
dial-peer voice 201 voip
translation-profile outgoing A
!
dial-peer voice 203 voip
translation-profile outgoing A
@ R3
voice translation-rule 1
rule 1 /^312747/ //
!
voice translation-profile A
translate calling 1
!
dial-peer voice 301 voip
translation-profile outgoing A
!
dial-peer voice 302 voip
translation-profile outgoing A
R1,R2,R3#show run
R1,R2,R3#show voice translation-rule
R1,R2,R3#show voice translation-profile
- HQ, SB, SC 간에 전화를 실시하여 Calling 번호가 내선 번호 4자리로 출력되는지 확인한다.
17. IP 망 장애시 PSTN 백업 망 구성(SRST : Survival Remote Site Telephony)
@ R1
dial-peer voice 1002 pots
destination-pattern 2...
port 0/2/0:15
prefix 0324402
translation-profile outgoing A
preference 1
!
dial-peer voice 1003 pots
destination-pattern 3...
port 0/2/0:15
prefix 00113127473
translation-profile outgoing A
preference 1
@ R2
dial-peer voice 2001 pots
destination-pattern 1...
port 0/2/0:15
prefix 025621
translation-profile outgoing A
preference 1
!
dial-peer voice 2003 pots
destination-pattern 3...
port 0/2/0:15
prefix 00113127473
translation-profile outgoing A
preference 1
@ R3
dial-peer voice 3001 pots
destination-pattern 1...
port 0/2/0:15
prefix 01182025621
translation-profile outgoing A
preference 1
!
dial-peer voice 3002 pots
destination-pattern 2...
port 0/2/0:15
prefix 011820324402
translation-profile outgoing A
preference 1
R1,R2,R3#show run
R1,R2,R3#show dial-peer voice summary
- SW7에서 콘솔을 이용하여 다음과 같이 인터페이스를 셧다운하여, IP 망 쟁애를 발생시킨다.
@ SW7
int range fa0/1 - 3
shutdown
R1,R2,R3#terminal monitor
R1,R2,R3#debug isdn q931
- HQ, SB, SC 간에 전화를 실시하고, ISDN 디버깅을 확인한다.
- 확인이 완료되었다면, SW7 F0/1 ~ F0/3 포트를 복구한다.
@ SW7
int range fa0/1 - 3
no shutdown
18. Toll bypass (TEHO 콜 구성)
@ R1
voice translation-rule 2
rule 1 /^90011312/ /9/
!
voice translation-profile B
translate called 2
!
dial-peer voice 1103 voip
destination-pattern 90011312[2-9]점 6개
session target ipv4:13.13.3.3
translation-profile outgoing B
@ R2
voice translation-rule 2
rule 1 /^90011312/ /9/
!
voice translation-profile B
translate called 2
!
dial-peer voice 2203 voip
destination-pattern 90011312[2-9]점 6개
session target ipv4:13.13.3.3
translation-profile outgoing B
@ R3
voice translation-rule 2
rule 1 /^90118202/ /9/
rule 2 /^901182032/ /9/
!
voice translation-profile B
translate called 2
!
dial-peer voice 3301 voip
destination-pattern 90118202[2-9]점 6개
session target ipv4:13.13.1.1
translation-profile outgoing B
!
dial-peer voice 3302 voip
destination-pattern 901182032[2-9]점 6개
session target ipv4:13.13.2.2
translation-profile outgoing B
R1,R2,R3#show run
R1,R2,R3#terminal monitor
R1,R2,R3#debug isdp q931
- 테스트는 강사와 함께~
19. 콜 등급 설정(Call Privilege)
시내 전화 시외 전화 국제 전화
Phone-1 O X X
Phone-2 O O X
Phone-3 O O O
1) 파티션 생성
@ R1, R2, R3
dial-peer cor custom
name local
name long
name inter
2) Outgoing List 생성
@ R1, R2, R3
dial-peer cor list A
member local
!
dial-peer cor list B
member long
!
dial-peer cor list C
member inter
3) Corlist Outgoing 적용
@ R1
dial-peer voice 12 pots
corlist outgoing A
!
dial-peer voice 13 pots
corlist outgoing B
!
dial-peer voice 14 pots
corlist outgoing C
!
dial-peer voice 1103 voip
corlist outgoing C
@ R2
dial-peer voice 12 pots
corlist outgoing A
!
dial-peer voice 13 pots
corlist outgoing B
!
dial-peer voice 14 pots
corlist outgoing C
!
dial-peer voice 2203 voip
corlist outgoing C
@ R3
dial-peer voice 12 pots
corlist outgoing A
!
dial-peer voice 13 pots
corlist outgoing B
!
dial-peer voice 14 pots
corlist outgoing C
!
dial-peer voice 3301 voip
corlist outgoing C
!
dial-peer voice 3302 voip
corlist outgoing C
4) Incoming List 생성
@ R1, R2, R3
dial-peer cor list CSS-A
member local
!
dial-peer cor list CSS-B
member local
member long
!
dial-peer cor list CSS-C
member local
member long
member inter
5) Corlist incoming 적용
@ R1, R2, R3
ephone-dn 1
corlist incoming CSS-A
!
ephone-dn 2
corlist incoming CSS-B
!
ephone-dn 3
corlist incoming CSS-C
!
ephone 1
restart
!
ephone 2
restart
!
ephone 3
restart
!
7) 테스트
시내 전화 시외 전화 국제 전화
Phone-1 O X X
Phone-2 O O X
Phone-3 O O O
O
HQ 9-599-1234 9-032-499-1234 9-001-1-312-799-1234
SB 9-499-1234 9-02-599-1234 9-001-1-312-799-1234
SC 9-799-1234 9-1-702-399-1234 9-011-82-02-599-1234
9-011-82-032-499-1234
'네트워크 > VoIP&IPT' 카테고리의 다른 글
VoIP/IPT - 03. CUCM를 이용한 IPT 서비스 구축 (0) | 2016.12.01 |
---|---|
VoIP/IPT - 01. IPT 개요 (0) | 2016.03.29 |