2013년 1월 2일 수요일

CUCM에서 H323 gateway 설정하기


H.323 Gateway 구현하기 

CUCM and H323 Gateway configuration

H.323 Gateway는 Voice 탑재된 라우터로서, PSTN call 과 IP망에서의 통화를 연결 시켜주는 기능을 한다. 


CUCM에 H323 Gateway 등록하기 

Step 1. go to CUCM Administration > Device > Gateway > Add New

Step 2. choose H322 Gateway from Gateway Type

참고로, H.323 gate는 CUCM 에 등록되지 않으므로 registraton status 를 보면 항상 Unknown 으로 되어 있다.


 Voice Router 에서 H.323 설정하기 

Step 1. h.323 voip 인터페이스 

Step 2. Voip Dial-Peer 설정하기

    H.323 Gateway 로 들어오는 모든 incoming call 을 CUCM (ip : 10.1.1.1) 으로 보내라는 dial-peer 이다. 

Step 3. CUCM Redundancy on H.323 Gateway : H.323 ==> CUCM
H.323 Voice Class Configuration

Step 4. H.323 Gateway Call Survivability

   CUCM 와 H.323 gateway 의 TCP 연결은 H.225 keepalive 에 의해서 모니터링이 되고 있다. 만일 이 둘 사이에 communication 이 실패하면, 통화는 drop 된다. 통화중에 call 이 끊기는 것을 방지하기 위해서는 no h225 timeout keepalive 를 설정해 주면된다. 참고로, h225 keepalive 는 TDM-to-VOIP call 에만 적용되는 값이다. 
Keepalive configuration
  
Step 5. CUCM Call Survivability 

   앞에서 설명한 것처럼 "no h225 timeout keepalive" 는 PSTN-VoIP call 는 적용된다. VoIP-VoIP 연결을 유지하기 위해서는 h.323 voice class 를 생성하고 call preserve parameter를 설정해주면 된다.  


















2013년 1월 1일 화요일

cisco voice translation rule setting & testing

cisco voice translation rule setting



Example 1

This example replaces any five-digit number that begins with "40" with the number "6666000".
voice translation-rule 1
 rule 1 /^40.../ /6666000/
router#test voice translation-rule 1 40123
Matched with rule 1
Original number: 40123    Translated number: 6666000


Example 2

This example replaces all numbers with "5554000".
voice translation-rule 2
 rule 1 /.*/ /5554000/
router#test voice translation-rule 2 123
Matched with rule 1
Original number: 123    Translated number: 5554000

router#test voice translation-rule 2 86573
Matched with rule 1
Original number: 86573  Translated number: 5554000

router#test voice translation-rule 2 ""
Matched with rule 1
Original number:   Translated number: 5554000

Example 3

This example provides further detail:
voice translation-rule 1
 rule 1 /^\(12\)3\(45\)$/ /6\1\2/
  • Set 1: 12
  • Set 2: 45
  • Ignore: 3
router#test voice translation-rule 1 12345
Matched with rule 1 
Original number: 12345 Translated number: 61245



Pattern Match with Wildcards

These tables define wildcard and wildcard combinations and show some examples.
WildcardDefinition
.Any single digit
0 to 9,*,#Any specific character
[0-9]Any range or sequence of characters
*Modifier—match none or more occurrences
+Modifier—match one or more occurrences
?Modifier—match none or one occurrence
Wildcard CombinationDefinition
.*Any digit followed by none or more ocurrences. This is effectively anything, including null.
.+Any digit followed by one or more ocurrences. This is effectively anything, except null.
^$No digits, null

Number Slice

You can use number slice when you need to copy parts of a matched number across to the replacement number. You slice the matched number into sets that you can keep or ignore.
CharacterDescription
\In the match pattern, indicates where to slice up the number.
\In the replacement pattern, indicates where to copy the sets to keep.
( )Indicates which sets in the matched number to keep.
Character UsageDescription
(a\)Keep expression "a".
b\Ignore expression "b".
\1Copy the first set into the replacement number.

Apply Rules

Voice Translation Rules are applied to Voice Translation Profiles. These profiles are then applied to dial peers or voice ports. Profiles can be applied to VoIP or POTS dial peers or voice ports, and can be applied to inbound or outbound calls. A profile can translate Called, Calling, or Redirecting numbers.
voice translation-rule 3 
 rule 1 /123/ /456/ 

voice translation-profile profile1
 translate calling 3 

dial-peer voice 10 pots
 translation-profile outgoing profile1

reference
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

2012년 12월 30일 일요일

CCVP VOICE lab 구성 #01

CCVP VOICE lab 구성 

CCVP를 공부하면서, voice 랩 환경을 집에 구축하고 싶었지만,
라우터(with voice), 스위치(with PoE)가 너무 고가?? 라서 일단 노트북을 이용해서 환경 구성해 보기로 했다.

virtual voice lab 을 이용하는 경우 아래의 기능은 사용할수 없다고 한다.


 • Hardware Media Resources (XCONF, CFB) on NM-HDVs and 6608 DSPs
 • PSTN Signaling (ISDN PRI, E1 R2, FXS/FXO)
 • MGCP and Q.931 backhaul
 • ATA186 and VG248 analog gateways
 • Catalysts 6500 and 3550/3560 port config
 • Catalyst QoS
 • 6608 blade functions (CFB/XCODE/GW)
 • CUE


하지만, virtual voice lab을 아래 기능은 충분히 테스트 할수 있다.


 • Cisco CallManager 7.x with all it’s Applications and Features
 • Unity 7.0 Voice Mail
 • Cisco CallManager Express
 • SRST
 • H.323 gateways and gatekeepers
 • IP Phones
 • IP PSTN Simulation (IPIP GW)
 • WAN QoS



우선 GNS3를 이용해서 다음과 같이 voice lab을 구성해보자.
























각 라우터의 configuration은 추후 업데이트 해서 올릴 예정...








2012년 12월 26일 수요일

GNS3 Tutorial - Connecting GNS3 Routers to the Internet in Mac OS X


GNS3 Tutorial - Connecting GNS3 Routers to the Internet in Mac OS X


This quick tutorial will run through how you can connect your Cisco virtual routers in GNS3 to the Internet using the Cloud option and your real network interface card (NIC).


2012년 12월 25일 화요일

GNS3 : ping PC, but cannot ping gateway... on win7

GNS3 : ping PC, but cannot ping gateway on win7... 

I'm running GNS3 0.8.3 on windows 7 64 bits and I have a problem to access my gateway. 
The topology is very simple and I use all ip address within same network.. 
However, I am able to ping my pc from a router in GNS3, cannot ping gateway from the router. 

in order to solve the problem, follow up these steps... 

1. if you use wire NIC, 

 In Windows, go to Control Panel->Network and Internet -> Network and Sharing Center,

 click Local Area Connection Link of the connection to change 

 then choose 'Properties' button. Press the 'Configure...' button, 

 choose the 'Advanced' tab to modify 
  • "IP V4 Checksum Offload" 
  • "TCP Checksum Offload (IPV4)" 
  • "UDP Checksum Offload (IPV4)"
 change the setting from "RX and TX Enable" to "Disabled" 
 so that the OS will compute the checksum. 

Note: I had to reboot my machine after the setting changes. 
Hope this works for you as it did for me!


2. if you use wireless NIC, 

watching the following video. 


  make the ms-loopback interface with ip address 192.168.137.1 

  and share the network between wireless network adapter and ms-loopback interface. 

  then, connect cloud to loopback interface. 

  Now, you can use a router within 192.168.137.0/24 network



2012년 12월 18일 화요일

CCNA VOICE LAB 2: INTERCOM, PAGING, CALL BLOCK, MOH, GUI

CCNA VOICE LAB :



1. config INTERCOM

시스코에서 말하는 인터콤의 기능은 하나의 폰에서 다른 폰으로 전화를 걸면, 
수화기를 들어 전화를 받는 것이 아니라 스피커폰을 통해서 자동으로 전화를 받는 것이다. 


INTERCOM 설정 

example) 라인번호 A100 이고, A101 (manager) 에 인터콤을 통해서 바로 연결
!    
ephone-dn  15
 number A100
 intercom A101 label "Manager"
!

### 매니져 폰을 위한 DN 설정     
ephone-dn  16
 number A101
 intercom A100 label "Assistant"

=> 위에서 설정된 번호들을 보면 A100, A101 이다. 일반적으로 번호로 설정하지 않는 이유는  인터컴의 경우는 번호를 누르게 되면 스피커 폰으로 자동으로 연결되므로 번호를 잘못 눌러서 매니저의 폰으로 자동 연결되는 것을 방지하지 위한 것이다. 

이제 이렇게 생성된 dn 정보를 phone button 에 맵핑해 주면 된다. 

R1(config)#ephone 1 
R1(config-ephone)#button 4:15

R1(config)#ephone 3
R1(config-ephone)#button 4:16


Manager/Assistant phone button 을 누르면 자동으로 스피커 폰으로 연결하게 된다. 




2. CONFIG PAGING

  페이징(PAGING)이란? 스피커폰을 이용한 안내방송이라고 생각하면된다. 
  페이징을 이용하면 페이징 그룹에 있는 모든 폰의 스피커 폰을 통해서 안내를 할 수 있다. 

example) 페이지을 위한 dn : 5510 설정

R1(config)#ephone-dn 18
R1(config-ephone-dn)#number 5510
R1(config-ephone-dn)#paging 
R1(config-ephone-dn)#exit

- 페이징 dn을 폰에 적용

R1(config)# ephone 2
R1(config-ephone)#paging-dn 18
R1(config-ephone)#exit
R1(config)#ephone 3
R1(config-ephone)#paging-dn 18
R1(config-ephone)#exit

이제 dn : 5510 번호에 전화를 걸면 phone 2,3 스피커 폰을 통해서 자동으로 응답하는 것을 볼수 있다. 


페이징의 경우, 그룹의 멤버가 많아지면 multicast 를 이용해야만 한다.

R1(config)#ephone-dn 18
R1(config-ephone-dn)#paging ip 239.1.1.100 port 2000


3. CONFIG AFTER HOURS CALL BLOCKING
   이 기능은 퇴근시간 이후에 전화오는 것을 막는 것이다. 

example) 근무외 시간 설정 
R1(config-telephony)#after-hours day mon 17:00 8:00
R1(config-telephony)#after-hours day tue 17:00 8:00
R1(config-telephony)#after-hours day wed 17:00 8:00
R1(config-telephony)#after-hours day thu 17:00 8:00
R1(config-telephony)#after-hours day fri 17:00 8:00

example) 특정 일에 대한 설정 
R1(config-telephony)#after-hours date dec 25 00:00 00:00

아래 설정한 전화번호에 대한 통화를 막게된다. 
R1(config-telephony)#after-hours block pattern 1 91.........
R1(config-telephony)#after-hours block pattern 2 9200.......



4. CONFIG MOH (Music On Hold)
   통화중에 hold 버튼을 누르면 대기음 대신에 음악을 들려주는 기능이다. 


5. CONFIG the CME GUI









2012년 12월 17일 월요일

CCNA VOICE CME Productivity Features: call forward, call park, transfer, pickup

CCNA Voice LAB : CME Voice Productivity Features..


1. Create a Voice Network Directory

example)

ephone-dn  1  dual-line
 number 1001
 name Brian KANG
!
!
ephone-dn  2  dual-line
 number 1002
 name Jeremy Cioara
!
!
ephone-dn  3  dual-line
 number 1003
 name Snuggles Cioara 

 ephone-dn 밑에 name 을 작성하면, 전화를 걸거나 받을때, 그냥 번호만 보이는 것이 아니라 name 에 입력한 정보들을 번호와 함께 보여준다. 그리고 이 정보들은 나중에 IP phones의 directory 서비스를 통해서 검색할 수도 있게 된다.


2. CONFIGURING CALL FORWARD


R1(config)#ephone-dn 2
R1(config-ephone-dn)#call-forward ?

  all                  forward all calls
  busy              forward call on busy
  max-length     max number of digits allowed for CFwdAll from IP phone
  night-service  forward call on activated night-service
  noan              forward call on no-answer



example) ephone-dn 에 해당되는 번호가 통화중이거나, 전화를 받지 않은 경우 1003 번으로 전화를 돌리는 경우

R1(config)#ephone-dn 2

R1(config-ephone-dn)#call-forward busy 1003
R1(config-ephone-dn)#call-forward noan 1003 timeout 10



** toll fraud 를 방지하기 위한 방법

R1(config)#telephony-service
R1(config-telephony)#call-forward pattern ....


숫자 4자리에 형식을 가진 번호만 call forward 가능


R1(config)#ephone-dn 2
R1(config-ephone-dn)#call-forward max-length 5


또, 한가지 방법은 ephone-dn 아래에 있는 max-length 를 이용하는 방법이다.
max-length를 forward 할 번호를 자리수를 제한하는 것이다. 따라서 국제전화 및
외부로 forward 하는 것을 방지할수 있다.



3. CONFIGURING CALL TRANSFER



통화가 연결된 후에 다른 사람에 통화를 돌리고 싶다면 Transfer 를 이용하면 된다.
사용방법은 다음과 같다.

> Transfer + 1002(전화번호)

call transfer

-  transfer 를 위한  CME 설정

R1(config-telephony)#transfer-system ?
  full-blind     Perform call transfers without consultation using H.450.2 or
                 SIP REFER standard methods
  full-consult   Perform H.450.2/SIP call transfers with consultation using
                 second phone line if available, fallback to full-blind if
                 second line unavailable. This is the recommended mode for most
                 systems. See also 'supplementary-service' commands under
                 'voice service voip' and dial-peer.
  local-consult  Perform call transfers with local consultation using second
                 phone line if available, fallback to blind for non-local
                 consultation/transfer target. Uses Cisco  proprietary method.


 ** H.450.2 : call transfer without hair pin effect.


- toll fraud 를 방지하기 위한 방법


example1) transfer를 통해서 내부 통화만 허락한 경우
R1(config-telephony)#transfer-pattern ....

example2) transfer를 통해서 local 통화(7자리)를 허용한
R1(config-telephony)#transfer-pattern 9.......



4. CONFIGURING CALL PARK

=> allow you to "park" a call on hold

우리가 자동차를 주차장에 주차하는 것처럼 통화를 잠시 call park에 대기 시켜 놓는 기능을 제공한다.

call park을 위한 번호 생성, 하나의 call park 번호에는 하나의 call 만 대기 가능하다.

call park 생성 방법:


R1(config)#ephone-dn 5            
R1(config-ephone-dn)#number 3001
R1(config-ephone-dn)#park-slot
R1(config-ephone-dn)#exit


이제 call park을 이용해서 통화를 대기 상태로 만들어 보자
방법은 간단한다. 통화중에 softkey > park 을 누르면 CME 가 알아서
call 을 park-slot 에 넣어준다.




R1(config)#ephone-dn 5
R1(config-ephone-dn)#park-slot ?
  reserved-for  Reserve this park slot for the exclusive use of the phone with
                the extension indicated by the transfer target extension number
                (특정 번호의 폰만 사용가능)
  timeout       Set call park timeout
                 (일정시간후에 call park 했던 폰에게 call 을 보내서 알려준다.)
  <cr>


example) call park 10초 후에 ring을 울려주고, 3번 시도후에 전화를 받지 않으면 call을 drop 한다.

R1(config-ephone-dn)#park-slot timeout 10 limit 3





5. CONFIGURING CALL PICKUP

- Direct Pickup : 직접 번호를 입력해서 전화를 받을수 있다.
- Local Group Pickup : 같은 pickup group 안에서 전화를 받는 경우
- Other Group Pickup : 다른 pickup group 의 전화는 받는 경우



- directory pickup : pickup버튼 + line 번호

하지만 일반적 생각해보면 전화가 울리는데, 어느 번호에서 울리는지 알아내기가 쉽지 않다.
이런 경우, 여러개의 전화번호를 같은 그룹으로 묶어주면, 전화 번호를 입력하는 불편함 없이 바로 전환를 당겨 받을수 있다.

전화를 같은 그룹으로 묶는 방법은 다음과 같다.


R1(config)#ephone-dn 2
R1(config-ephone-dn)#pickup-group 1101
R1(config-ephone-dn)#exit

R1(config)#ephone-dn 3
R1(config-ephone-dn)#pickup-group 1101
R1(config-ephone-dn)#exit


dn 2 or dn 3 에 전화가 오는 경우, 그룹내에 있는 누구나 "GPickup"을 이용해서 전화를 받을수 있다.


마지막으로 다른 그룹에 있는 전화를 당겨 받는 방법이다.

=> "GPickup" + 그룹번호