NETWORK/VOICE2015. 1. 28. 23:48

1. 시나리오 



시드니(SYD) 와 멜버른(MEL) 에 작은 오피스가 있으며, 각 오피스에는 2명의 스텝만 일을 하고 있는 상황이다. 인원이 많지 않기 때문에 CUCM보다는 Cisco CME를 이용해서 VOIP 환경을 구축해보자. 


Voice 통신에서 사용되는 프로토콜은 SCCP, H.323, RTP 이다. 

  - SCCP : voip 폰과 CME 사이에서 전화기의 등록이나 call 에 대한 정보 교환을 위한 프로토콜

  - H.323 : CME 와 CME 사이에서 call routing 시에 사용되는 프로토콜

  - RTP : 음성 데이터를 전송하는 프로토콜


1. Telephony-service 

voip 폰을 CME에 등록하기 위해서는 telephony-service 이용하면된다. telephony-service 는 2가지 모드를 지원하는데 setup모드 와 수동 모드이다. 


1.1 telephony-service setup : 정해진 질문에 응답하는 형식으로 voip 폰을 설정한다. 

CME1(config)#telephony-service setup


 --- Cisco IOS Telephony Services Setup ---


Do you want to setup DHCP service for your IP Phones? [yes/no]: no


Do you want to start telephony-service setup? [yes/no]: yes

Configuring Cisco IOS Telephony Services :


  Enter the IP source address for Cisco IOS Telephony Services :10.10.0.1      <== CME 주소 

  Enter the Skinny Port for Cisco IOS Telephony Services :  [2000]:

  How many IP phones do you want to configure :  [0]: 2    

  Do you want dual-line extensions assigned to phones? [yes/no]: no

  What Language do you want on IP phones :

      0  English

      1  French

      2  German

      3  Russian

      4  Spanish

      5  Italian

      6  Dutch

      7  Norwegian

      8  Portuguese

      9  Danish

      10 Swedish

      11 Japanese

 [0]: 0

  Which Call Progress tone set do you want on IP phones :

      0  United States

      1  France

      2  Germany

      3  Russia

      4  Spain

      5  Italy

      6  Netherlands

      7  Norway

      8  Portugal

      9  UK

      10  Denmark

      11  Switzerland

      12  Sweden

      13  Austria

      14  Canada

      15  Japan

 [0]: 13

  What is the first extension number you want to configure : 1001      <== 1001 부터 1씩 증가하며 번호 부여


Do you have Direct-Inward-Dial service for all your phones? [yes/no]: no


Do you want to forward calls to a voice message service? [yes/no]: no


Do you wish to change any of the above information? [yes/no]: no

CNF-FILES: Clock is not set or synchronized, retaining old versionStamps

 ---- Setup completed config ---


CME1(config)#




1.2 telephony-service 수동 모드


! 기본 설정 

telephony-service

 max-ephones 2

 max-dn 2

 ip source-address 10.20.0.1 port 2000

 max-conferences 8 gain -6

 transfer-system full-consult

!


! 첫번째 번호에 대한 설정 
ephone-dn  1
 number 2001
 label Ruby
 description MEL_RUBY
 name Ruby
!

! 첫번째 폰에 대한 설정
ephone  1
 device-security-mode none
 description MEL_RUBY
 mac-address 0200.4C4F.4F51
 speed-dial 5 2002
 speed-dial 6 1001
 speed-dial 7 1002
 button  1:1
!


이렇게 설정하고 나며 같은 CME 에 등록된 voip 폰들은 서로 통화가 이뤄지지만 다른 CME의 폰에 전화를 걸수 없다. 이를 해결하기 위해서 dial-peer 설정이 필요하다. 



2. dial-peer 설정 


!

dial-peer voice 1 voip

 destination-pattern 10..

 session target ipv4:172.16.1.1

!


3. Cisco IP Communicator  화면 설정



4. Sydney 및 Melbourn 의 설정 완료된 모습


  - Sydney 



- Melbourne 



5. CME and CIPC configurations 


- CME1 

CME1#show run

Building configuration...


Current configuration : 1824 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname CME1

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

!

resource policy

!

memory-size iomem 5

no ip icmp rate-limit unreachable

ip cef

ip tcp synwait-time 5

!

!

!

!

no ip domain lookup

!

!

!

!

interface FastEthernet0/0

 ip address 10.10.0.1 255.255.255.0

 duplex auto

 speed auto

!

interface Serial0/0

 ip address 172.16.1.1 255.255.255.0

 clock rate 2000000

!

interface FastEthernet0/1

 no ip address

 shutdown

 duplex auto

 speed auto

!

ip route 0.0.0.0 0.0.0.0 172.16.1.2

!

!

no ip http server

no ip http secure-server

!

no cdp log mismatch duplex

!

!

!

control-plane

!

!

!

!

dial-peer voice 1 voip

 destination-pattern 20..

 session target ipv4:172.16.1.2

!

!

!

telephony-service

 max-ephones 2

 max-dn 2

 ip source-address 10.10.0.1 port 2000

 auto assign 1 to 2

 network-locale AT

 network-locale 1 AT

 network-locale 2 AT

 network-locale 3 AT

 network-locale 4 AT

 max-conferences 8 gain -6

 transfer-system full-consult

 create cnf-files version-stamp Jan 01 2002 00:00:00

!

!

ephone-dn  1

 number 1001

 label Brian

 description SYD_Brian

 name Brian

!

!

ephone-dn  2

 number 1002

 label Nick

 description SYD_Nick

 name Nick

!

!

ephone  1

 no multicast-moh

 description Brian_IPphone

 mac-address 000C.29B6.B722

 speed-dial 5 1002

 speed-dial 6 2001

 speed-dial 7 2002

 type CIPC

 button  1:1

!

!

!

ephone  2

 no multicast-moh

 mac-address 000C.29B6.B721

 speed-dial 5 1001

 speed-dial 6 2001

 speed-dial 7 2002

 type CIPC

 button  1:2

!

!

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

!

end


CME1#



- CME2 configuration

CME2#show run

Building configuration...


Current configuration : 1636 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname CME2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

!

resource policy

!

memory-size iomem 5

no ip icmp rate-limit unreachable

ip cef

ip tcp synwait-time 5

!

!

!

!

no ip domain lookup

!

!

!

!

interface FastEthernet0/0

 ip address 10.20.0.1 255.255.255.0

 duplex auto

 speed auto

!

interface Serial0/0

 ip address 172.16.1.2 255.255.255.0

 clock rate 2000000

!

interface FastEthernet0/1

 no ip address

 shutdown

 duplex auto

 speed auto

!

ip route 0.0.0.0 0.0.0.0 172.16.1.1

!

!

no ip http server

no ip http secure-server

!

no cdp log mismatch duplex

!

!

!

control-plane

!

!

!

dial-peer voice 1 voip

 destination-pattern 10..

 session target ipv4:172.16.1.1

!

!

!

telephony-service

 max-ephones 2

 max-dn 2

 ip source-address 10.20.0.1 port 2000

 max-conferences 8 gain -6

 transfer-system full-consult

!

!

ephone-dn  1

 number 2001

 label Ruby

 description MEL_RUBY

 name Ruby

!

!

ephone-dn  2

 number 2002

 label Andy

 description MEL_ANDY

 name Andy

!

!

ephone  1

 device-security-mode none

 description MEL_RUBY

 mac-address 0200.4C4F.4F51

 speed-dial 5 2002

 speed-dial 6 1001

 speed-dial 7 1002

 button  1:1

!

!

!

ephone  2

 device-security-mode none

 mac-address 0200.4C4F.4F52

 speed-dial 5 2001

 speed-dial 6 1001

 speed-dial 7 1002

 button  1:2

!

!

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

!

end


CME2#



- CIPC 설정 




Posted by 시티락