Cisco As5300 设置文档-IP phone ,IP fax, radius AAA ,IVR

March 16, 2009 | tags Cisco As5300  IP phone  IP fax  linksys  Voip  网络电话  免费网络电话   | views
Comments 0

一、配置文件及其简要功能说明

resource-pool disable
clock timezone cn -8
clock calendar-valid
!
!打开 AAA功能
aaa new-model
!
!设置详细的AAA项
aaa authentication login h323 group radius
aaa authentication ppp h323 group radius
aaa authorization exec h323 group radius
aaa authorization network h323 group radius
aaa accounting network h323 start-stop group radius
aaa accounting connection h323 start-stop group radius
!显示nas扩展接口信息
aaa nas port extended
! 显示nas Voip 接口信息
aaa nas port voip
! 为每个认证会话分配一个唯一的ID
aaa session-id unique
ip subnet-zero
ip tcp timestamp
ip domain name tuolei.net
ip host tftpserver 211.98.29.59
ip host as5300.tuolei.net 211.98.29.60
ip name-server 211.98.2.4
ip name-server 211.98.29.3
!
ip cef
!
isdn switch-type primary-net5
! 发送振铃音,语音资源周期升级,对语音双方向实行RTP
voice call send-alert
voice call carrier capacity active
voice rtp send-recv
!定义声音解码算法
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g711ulaw bytes 80
 codec preference 3 g723ar53
 codec preference 4 g723ar63 bytes 144
 codec preference 5 g723r53
 codec preference 6 g723r63 bytes 120
 codec preference 7 g726r16
 codec preference 8 g726r24
 codec preference 9 g726r32
 codec preference 10 g728
 codec preference 11 g729br8
 codec preference 12 g729r8 bytes 50
!
!
!应用这些算法到H323应用中,设置h225tcp建立连接延时
voice class h323 1
 h225 timeout tcp establish 7
!
!
!
!
!
!
! 设置ivr调用模式
ivr autoload mode verbose retry 3 url flash:
ivr prompt streamed flash
! 设置传真封面,MTA,MMOIP认证信息
fax receive called-subscriber $d$
fax send transmitting-subscriber $s$
fax send left-header $s$
fax send center-header $a$
fax send right-header $t$
fax interface-type fax-mail
mta send server message.tuolei.net port 25
mta send subject Fax to Mail from Cisco AS5300 (as5300.tuolei.net)
mta send postmaster xlma@mail.tuolei.net
mta send mail-from hostname as5300.tuolei.net
mta send mail-from username $s$
mta send return-receipt-to hostname mail.tuolei.net
mta send return-receipt-to username xlma
mta receive aliases as5300.tuolei.net
mta receive maximum-recipients 1024
mta receive generate-mdn
mmoip aaa send-id primary envelope-to
mmoip aaa receive-id primary dnis
mmoip aaa method fax authentication h323
mmoip aaa method fax accounting h323
mmoip aaa send-accounting enable
mmoip aaa send-authentication enable
mmoip aaa receive-accounting enable
mmoip aaa receive-authentication enable
! 文件系统改动提示
file prompt noisy
! 设置E1
controller E1 0
 framing NO-CRC4
 clock source line primary
 pri-group timeslots 1-31
!
controller E1 1
 clock source line secondary 1
!
controller E1 2
 clock source line secondary 2
!
controller E1 3
 clock source line secondary 3
!
! 启用acct-session-id overloaded 功能,可以统计更多的信息
gw-accounting aaa
 attribute acct-session-id overloaded
 attribute h323-remote-id resolved
!
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 no ip address
 shutdown
 clockrate 2015232
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
 clockrate 2015232
 no fair-queue
!
interface Serial2
 
no ip address
 shutdown
 clockrate 2015232
 no fair-queue
!
interface Serial3
 no ip address
 shutdown
 clockrate 2015232
 no fair-queue
!设置E1信令通道
interface Serial0:15
description logical interface to carry ISDN signal to E1
 no ip address
 isdn switch-type primary-net5
 isdn overlap-receiving T302 5000
 isdn incoming-voice modem
 isdn send-alerting
 no cdp enable
!设置FasEthernet0, voip接口,网关ID,对列,rtp
interface FastEthernet0
 description connect to internet and voip interfce
 ip address 211.98.29.60 255.255.255.192
 duplex auto
 speed auto
 fair-queue 128 256 2
 h323-gateway voip interface
 h323-gateway voip h323-id xlma@mail.tuolei.net
 ip rtp priority 16384 200 500
!
ip classless
ip route 0.0.0.0 0.0.0.0 211.98.29.1
no ip http server
! 设置认证接口
ip radius source-interface FastEthernet0
!
!
! snmp 设置
snmp-server group xlma v3 auth read notify *tv.00000001.00000000.00000000
snmp-server community xlma RW
snmp-server location as5300
snmp-server contact admin xlma@mail.tuolei.net
snmp-server enable traps snmp linkup coldstart warmstart
snmp-server enable traps tty
snmp-server host 211.98.29.59 version 3 auth xlma snmp
! Radius 服务器设置
radius-server host 211.98.29.59 auth-port 1645 acct-port 1646 non-standard
radius-server attribute nas-port format c
radius-server unique-ident 103
radius-server key 7 130F181A05040B242C
radius-server authorization permit missing Service-Type
radius-server vsa send accounting
radius-server vsa send authentication
! 呼叫资源管理
call treatment on
call threshold global cpu-5sec low 50 high 80 treatment
call threshold global total-mem low 80 high 90 treatment
call rsvp-sync
! 设置对于不同的拨号点的不同应用,位置,参数。
call application voice off-ramp flash:/app_faxmail_offramp.2.0.1.1.tcl
!
call application voice on-ramp flash:/app_faxmail_onramp.2.0.1.2.tcl
call application voice on-ramp accounting disable
call application voice on-ramp authentication disable
call application voice on-ramp language 1 ch
call application voice on-ramp set-location ch 0 flash:
!
call application voice test tftp://tftpserver/app_faxmail_onramp.2.0.1.3.tcl
call application voice test access-method prompt-user
call application voice test authen-method prompt-user
call application voice test authentication disable
call application voice test authorize disable
call application voice test language 1 ch
call application voice test set-location ch 0 tftp://tftpserver/
!
call application voice authorize tftp://tftpserver/app_faxmail_onramp.2.0.1.6.tcl
call application voice authorize access-method prompt-user
call application voice authorize authen-method prompt-user
call application voice authorize authentication enable
call application voice authorize accounting enable
call application voice authorize authen-list h323
call application voice authorize accounting-list h323
call application voice authorize password 222222
call application voice authorize language 1 ch
call application voice authorize set-location ch 0 tftp://tftpserver/
!
call application voice authentication tftp://tftpserver/fax_on_vfc_onramp_app.tcl
call application voice authentication lauguage ch
call application voice authentication languge ch
call application voice authentication language 0 ch
call application voice authentication set-location ch 0 tftp://tftpserver/
! voip pots 拨号点语音接口设置
voice-port 0:D
 echo-cancel suppressor 1
 cptone CN
 timeouts interdigit 3
 bearer-cap Speech
!
no mgcp timer receive-rtcp
!
mgcp profile default
!
dial-peer cor custom
!
!
!
dial-peer voice 1 pots
description dial pee that beijing outgoing voip and fax to pstn
 destination-pattern 10........
 progress_ind progress enable 8
 direct-inward-dial
 port 0:D
!
dial-peer voice 200 pots
description dial peer (51915101) that beijing incoming fax call to voip dial peer
 application on-ramp
 incoming called-number 1051915101
!
dial-peer voice 201 mmoip
description dial peer that beijing fax app outgoing to ip network
 application fax_on_vfc_onramp_app out-bound
 max-conn 1024
 destination-pattern ......
 information-type fax
 session target mailto:$d$@message.tuolei.net
 image encoding MMR
 image resolution super-fine
 dsn delayed
 dsn success
 dsn failure
!
dial-peer voice 2 voip
description dial peer that ip phone incoming call from softswitch to pots dial peer
 destination-pattern 10........
 voice-class codec 1
 session target ras
 dtmf-relay h245-signal
!
dial-peer voice 4 pots
 application authorize
 incoming called-number 105191546.
!
dial-peer voice 100 mmoip
 description dial peer that incoming mail to pstn
 application off-ramp
 max-conn 1024
 incoming called-number 10........
 information-type fax
 mdn
 dsn delayed
 dsn success
 dsn failure
!
dial-peer voice 10 voip
 destination-pattern ...........
 voice-class codec 1
 session target ras
 dtmf-relay h245-signal
!
dial-peer voice 7 pots
 destination-pattern ...........
 progress_ind progress enable 8
 direct-inward-dial
 port 0:D
!
dial-peer voice 202 mmoip
 application fax_on_vfc_onramp_app out-bound
 destination-pattern 222222
 information-type fax
 session target mailto:$d$@message.tuolei.net
 image encoding MMR
 image resolution super-fine
 mdn
 dsn delayed
 dsn success
 dsn failure
!
gateway
!
 几点注意事项和建议
1、 TCL脚本作更改后要重新调入内存.
所用命令:call application voice load
2、 声音文件更改后也要重装内存。
所用命令:audio load
3、 IOS 版本与vc ware版本兼容
所用命令:show vfc
4、 不同网关的IOS版本最好一样。
5、 建议:把脚本和声音文件发到53flash里,这样可以保证不会因为TFTP或到TFTP网络故障影响,但这要根据系统资源和应用大小而灵活决定。
 
二、常用命令参考
1、 维护明令:
Copy running-configure startup-configure
Copy run-configure tftp:
Call application voice load
Audio load
Show running-configure
Show call application voice
Show call history
Show isdn
2、 排错明令
 debug voip ivr
 debug foip
 debug isdn
 debug aaa
 debug radius
 debug isdn
 debug vxlm

 

本文地址 : http://jz3.net/post/Cisco-as5300-ip-phone.html




发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。