IOS Version: c3845-spservicesk9-mz.124-22.YB5.bin
Cisco Unified Communications Manager Express Version 7.1
Cisco Unity 5.x (based on Windows 2003 sp2 & Exchange 2003)
+------------+
| Unity 5.x |
+-----+------+
|10.10.1.66
|
+-----+------+ +---------------+
| POE Switch +-------------------+ ISR 3845 CCME +------E1
+-----+------+ 10.10.1.30 +---------------+
|
|
+-----+------+
| IP Phone |
+------------+
!初始化E1接口卡
card type e1 0 0
!
clock timezone gmt 8
!
!定义E1时钟,注意在后面的配置中用show controller e1命令检查E1是否有不正常的Secs,不正常的Secs会导致传真失真
network-clock-participate wic 0
network-clock-select 1 E1 0/0/0
!
!这个不用多说了,一般国内都用primary-net5
isdn switch-type primary-net5
!
voice-card 0
dsp services dspfarm
!
!
!
voice service pots
fax rate disable
!
!定义号码转换规则,我规划是这样:外线号码为81111XXX,内线号码为对应的8XXX
voice translation-rule 1
rule 1 /^81111/ /8/
!
voice translation-rule 2
rule 1 /^8/ /81111/
rule 2 /[^8].*/ /81111590/
rule 3 // /81111589/
!
voice translation-rule 3
rule 1 /^0/ //
!
!配合上面的号码转换规则,定义转换profile
voice translation-profile pstn-in
!来电时,对被叫号码进行转换
translate called 1
!
voice translation-profile pstn-out
!来电时,对主叫号码进行转换
translate calling 2
!来电时,对被叫号码进行转换
translate called 3
!
!
fax receive called-subscriber $d$
fax send max-speed 9600
fax interface-type fax-mail
mta send server 10.10.1.66 port 25
mta send with-subject both
mta send mail-from hostname c3845.test.com
mta send mail-from username $s$
mta receive aliases c3845.test.com
mta receive aliases 10.10.1.30
mta receive maximum-recipients 10
mta receive generate permanent-error
!
!IP传真相关脚本加载,onramp为进,offramp为出
application
service onramp flash:app_faxmail_onramp.2.0.1.3.tcl
!
service offramp flash:app_faxmail_offramp.2.0.1.1.tcl
!
!在E1上配置ISDN
controller E1 0/0/0
framing NO-CRC4
clock source line primary
pri-group timeslots 1-31
!
controller E1 0/0/1
shutdown
!
interface GigabitEthernet0/0
ip address 10.10.1.30 255.255.255.0
!
interface Serial0/0/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable
!
ip http server
ip http authentication local
!ccme的网管地址为http://ccme_ip_address/ccme.html
ip http path flash:/gui
!
tftp-server flash:7911/apps11.8-4-1-23.sbn alias apps11.8-4-1-23.sbn
tftp-server flash:7911/cnu11.8-4-1-23.sbn alias cnu11.8-4-1-23.sbn
tftp-server flash:7911/cvm11sccp.8-4-1-23.sbn alias cvm11sccp.8-4-1-23.sbn
tftp-server flash:7911/dsp11.8-4-1-23.sbn alias dsp11.8-4-1-23.sbn
tftp-server flash:7911/jar11sccp.8-4-1-23.sbn alias jar11sccp.8-4-1-23.sbn
tftp-server flash:7911/SCCP11.8-4-2S.loads alias SCCP11.8-4-2S.loads
tftp-server flash:7911/term06.default.loads alias term06.default.loads
tftp-server flash:7911/term11.default.loads alias term11.default.loads
tftp-server flash:7961/apps41.8-4-1-23.sbn alias apps41.8-4-1-23.sbn
tftp-server flash:7961/cnu41.8-4-1-23.sbn alias cnu41.8-4-1-23.sbn
tftp-server flash:7961/cvm41sccp.8-4-1-23.sbn alias cvm41sccp.8-4-1-23.sbn
tftp-server flash:7961/dsp41.8-4-1-23.sbn alias dsp41.8-4-1-23.sbn
tftp-server flash:7961/jar41sccp.8-4-1-23.sbn alias jar41sccp.8-4-1-23.sbn
tftp-server flash:7961/SCCP41.8-4-2S.loads alias SCCP41.8-4-2S.loads
tftp-server flash:7961/term41.default.loads alias term41.default.loads
tftp-server flash:7961/term61.default.loads alias term61.default.loads
tftp-server flash:ATA030204SCCP090202A.zup
!
voice-port 0/0/0:15
translation-profile incoming pstn-in
translation-profile outgoing pstn-out
no echo-cancel enable
no vad
no comfort-noise
cptone CN
!
!以下为定义会议DSP资源
ccm-manager fax protocol cisco
!
sccp local GigabitEthernet0/0
sccp ccm 10.10.1.30 identifier 100 version 7.0
sccp
!
sccp ccm group 123
bind interface GigabitEthernet0/0
associate ccm 100 priority 1
associate profile 1 register confdsp1
!
dspfarm profile 1 conference
codec g711ulaw
codec g711alaw
maximum sessions 8
associate application SCCP
!
!一下为我自定义的电话权限配置,仔细研究一下,不难理解
dial-peer cor custom
name emergency
name internal
name local
name domestic
name international
name system
!
!
dial-peer cor list emergency
member emergency
!
dial-peer cor list internal
member internal
!
dial-peer cor list local
member local
!
dial-peer cor list domestic
member domestic
!
dial-peer cor list international
member international
!
dial-peer cor list system
member system
!
dial-peer cor list css-internal
member emergency
member internal
member system
!
dial-peer cor list css-local
member emergency
member internal
member local
member system
!
dial-peer cor list css-domestic
member emergency
member internal
member local
member domestic
member system
!
dial-peer cor list css-international
member emergency
member internal
member local
member domestic
member international
member system
!
dial-peer voice 2 pots
!呼叫权限配置,将1..定义为紧急电话
corlist outgoing emergency
destination-pattern 1..
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 3 pots
corlist outgoing local
destination-pattern 0[^0]T
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 4 pots
corlist outgoing domestic
destination-pattern 00[^0]T
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 5 pots
corlist outgoing international
destination-pattern 000T
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 8 pots
corlist outgoing internal
destination-pattern 0800.......
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 9 pots
corlist outgoing internal
destination-pattern 0400.......
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 10 mmoip
service offramp
information-type fax
incoming called-number 0
dsn delayed
dsn success
dsn failure
!
!IP传真配置,详见相关官方文档
dial-peer voice 11 mmoip
service fax_on_vfc_onramp_app out-bound
destination-pattern 8589
information-type fax
session target mailto:[email protected]
dsn success
dsn failure
!
dial-peer voice 12 pots
service onramp
incoming called-number 8589
direct-inward-dial
port 0/0/0:15
!
telephony-service
sdspfarm units 5
sdspfarm tag 1 confdsp1
conference hardware
no auto-reg-ephone
max-ephones 262
max-dn 720
ip source-address 10.10.1.30 port 2000
timeouts interdigit 5
system message Welcome To CISCO
cnf-file location flash:
cnf-file perphone
user-locale 1 U1 load CME-locale-zh_CN-Chinese-7.0.1.1.tar
network-locale 1 U1
load 7911 SCCP11.8-4-2S
load 7961 SCCP41.8-4-2S
load ata ATA030204SCCP090202A
time-zone 42
time-format 24
voicemail 8000
max-conferences 12 gain -6
moh music-on-hold.au
multicast moh 239.1.1.1 port 2000
dn-webedit
time-webedit
transfer-system full-consult
!
ephone-template 1
network-locale 1
user-locale 1
!
!
ephone-dn 1
number 8601
!类似于CCM中的Call Seache Space
corlist incoming css-domestic
!
!
ephone-dn 2 dual-line
number 8602
corlist incoming css-domestic
!
!
ephone-dn 3 dual-line
number 8603
corlist incoming css-internal
!
!
ephone-dn 11
!这个号码后面会分给ATA
number 8611
ephone-dn 12
!这个号码后面会分给ATA
number 8612
!
!
ephone-dn 100 octo-line
!语音留言的号码
number 8000
no huntstop
!
!
ephone-dn 101
number 8001
mwi on
!
!
ephone-dn 102
number 8002
mwi off
!
!
ephone 1
mac-address 0026.CB3C.DACA
ephone-template 2
max-calls-per-button 1
type ata
button 1:1
!
!
!
ephone 2
mac-address 26CB.3CDA.CA01
ephone-template 2
max-calls-per-button 1
type ata
button 1:2
!
!
!
ephone 3
mac-address 6416.8D50.D64E
ephone-template 1
type 7911
button 1:3
!
!
!
ephone 4
mac-address 6416.8D50.D652
ephone-template 1
type 7911
button 1:4
!
!
!
ephone 11
!ATA的SCCP配置,电话11和12对应到同一个ATA上的两个端口,注意MAC地址的偏移
mac-address 0024.142D.31D6
ephone-template 1
max-calls-per-button 1
type ata
button 1:11
!
!
!
ephone 12
mac-address 2414.2D31.D601
ephone-template 1
max-calls-per-button 1
type ata
button 1:12
!
!
!
ephone 601
!unity会注册上来
vm-device-id CiscoUM1-VI1
button 1:100
!
!
!
ephone 602
vm-device-id CiscoUM1-VI2
button 1:100
!
!
!
ephone 603
vm-device-id CiscoUM1-VI3
button 1:100
!
!
!
ephone 604
vm-device-id CiscoUM1-VI4
button 1:100
!
!
!
ephone 605
vm-device-id CiscoUM1-VI5
button 1:100
!
!
!
ephone 606
vm-device-id CiscoUM1-VI6
button 1:100
!
!
!
ephone 607
vm-device-id CiscoUM1-VI7
button 1:100
!
!
!
ephone 608
vm-device-id CiscoUM1-VI8
button 1:100