Voice Lab 3-IPhone F

发布时间:2019-09-03 08:57:58编辑:auto阅读(1743)

    Voice Lab 3-IPhone Features & CME Features

    wKiom1bywU-w7YkjAABslJX6Uac438.png

    1-试验拓扑:

    clip_p_w_picpath002

    telephony-service

    no auto-reg-ephone //关闭自动注册

    max-ephones 5

    max-dn 5

    ip source-address 192.168.100.1 port 2000 //电话注册地址

    timeouts interdigit 5 //拨号按钮等待时间

    system message HM TEST // 公司标示

    network-locale JP //定义location

    time-format 24 //定义时间格式

    date-format yy-mm-dd

    voicemail 9999

    max-conferences 8 gain -6 //最多8个人参加会议

    web admin system name cisco password cisco //开启GUI

    dn-webedit //在网页中可以更改DN

    time-webedit //在网页中可以更改时间

    transfer-system full-consult

    secondary-dialtone 1 //外拨号音

    create cnf-files version-stamp 7960 Jan 11 2016 20:25:32

    load 7914 S00105000200 //更新电话固件

    几个常用命令:

    Show telephone-service

    Show ephone summary

    Show ephone registered

    Debug vpm signal 

    debug cch323 h225

    debug cch323 h245

    Debug voip dialpeer 

    2-开启GUI for CME

    R1#format flash: //在gns3下作flash格式化,用下面命令确保flash是可以看到的

    clip_p_w_picpath004

    R1#archive tar /xtract tftp://192.168.100.100/cme-gui-4.1.0.2.tar flash:

    注意: cme-gui-4.1.0.2.tar 可以在我的百度网盘中下载到

    R1(config)#ip http server //开启http 服务

    http://192.168.100.1/ccme.html就可以访问了,以下为截图

    clip_p_w_picpath005

    3-配置电话directory

    3-1电话配置

    ephone-dn 1

    number 1001

    name fuA, ericA

    ephone-dn 2

    number 1002

    name fuB, ericB

    ephone-dn 3

    number 1003

    name fuC, ericC

    !

    ephone 1

    mac-address 0200.4C4F.4F50

    type CIPC

    button 1:1

    ephone 2

    mac-address 000C.295E.AA6D

    type CIPC

    button 1:2

    ephone 3

    mac-address 000C.29CC.0734

    type CIPC

    button 1:3

    3-2配置local directory

    R1(config)#telephony-service

    R1(config-telephony)#service local-directory

    R1(config-telephony)directory last-name-first

    R1(config-telephony)directory entry 1 1001 name fuA ericA

    R1(config-telephony)directory entry 2 1002 name fuB ericB

    R1(config-telephony)directory entry 3 1003 name fuC ericC

    clip_p_w_picpath006

    clip_p_w_picpath008

    clip_p_w_picpath010

    4-配置呼叫前转

    4-1方法一

    电话机上设置

    clip_p_w_picpath012

    4-2 方法二

    R1(config)#ephone-dn 1

    R1(config-ephone-dn)#call

    R1(config-ephone-dn)#call-f

    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

    5-配置呼叫转移

    它有两个方式

    clip_p_w_picpath013

    clip_p_w_picpath014

    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.//local 转

    6-PLAR

    私有号码自主振铃

    例如一摘机就触发一个呼叫

    voice-port 1/0/0

    connection plar 2001

    7-配置呼叫驻留

    ephone-dn 4

    number 1004

    park-slot

    name callpark

    具体详细命令可以参考下表

    clip_p_w_picpath015

    clip_p_w_picpath017

    1001A<--->1002B通信

    B有点事,换到C位置上,同时点了park, 输入1004

    clip_p_w_picpath018

    然后用C的电话拨打park 1004,然后又建立起了连接

    clip_p_w_picpath019

    clip_p_w_picpath020

    8-配置呼叫代答

    就是用pickup和Gpickup 键

    R1(config)#ephone-dn 1

    R1(config-ephone-dn)#pickup-group 1

    R1(config-ephone-dn)#ephone-dn 2

    R1(config-ephone-dn)#pickup-group 1

    R1(config-ephone-dn)#ephone-dn 3

    R1(config-ephone-dn)#pickup-group 1

    代答方式:

    clip_p_w_picpath022

    ? 举例:

    Pickup:从外部一台电话2222呼叫1001。1001不接。1002提机按pickup键。输入1001。这样2222和1001的呼叫由1002接通(不同组也没关系)

    ? Gpickup:从2222呼叫1002。1002不接。1001提机。按Gpickup键。输入1002

    所在的group号2。则2222和1001的呼叫接通。

    9-配置快捷拨号

    !!!特别注意要号码重叠

    num-exp 1 2001    拨1,2001就会振铃(先要有路由)

    num-exp 2 2002

    特别要注意的是:这里有一个快捷键是“2”拨号2002;,,这是如果需要打2001,,就不同了,,因为按到2就出触发了去拨打2002.

    R1(config)#num-exp 3 1003

    拨打3就是代表拨打1003

    10-配置对讲电话

    实际应用于上下级关系的电话配置中

    R1(config)#ephone-dn 6

    R1(config-ephone-dn)#number A100

    R1(config-ephone-dn)#intercom A101 label manager

    R1(config-ephone-dn)#ephone-dn 7

    R1(config-ephone-dn)#number A101

    R1(config-ephone-dn)#intercom A100 label "Assistant"

    R1(config-ephone-dn)#ephone 1

    R1(config-ephone)#button 2:6

    R1(config-ephone)#restart

    R1(config-ephone)#ephone 2

    R1(config-ephone)#button 2:7

    R1(config-ephone)#restart

    clip_p_w_picpath024

    Intercom有如下参数:

    clip_p_w_picpath026

    11-配置HuntGroup

    从去呼叫总机。首先1001会振铃。如果1001按了dnd键(don't disturb,类似

    于静音了),或Endcall。1002会振铃。1002也按。1003振铃。

    CME配置如下:

    R1(config)#ephone-hunt 1 ?

    longest-idle longest idle hunting \\按时间选择

    peer peer hunting \\对等选择轮训

    sequential sequential hunting \\顺序选择

    R1(config)#ephone-hunt 1 sequential

    R1(config-ephone-hunt)#pilot 8888 //呼叫总机8888

    R1(config-ephone-hunt)#list 1001,1002

    R1(config-ephone-hunt)#preference 1//这个huntgroup的优先级

    R1(config-ephone-hunt)#timeout 30 //30秒自动跳转到下个

    R1(config-ephone-hunt)#final 9999 //最后转入语音邮箱

    R1(config)#ephone-dn 1 dual-line

    R1(config-ephone-dn)#huntstop channel //如果第一路忙,则自动到第二路振铃。默认是第一路忙就不转了

    R1(config)#ephone-dn 2 dual-line

    R1(config-ephone-dn)#huntstop channel

    R1(config)#ephone-dn 3 dual-line

    R1(config-ephone-dn)#huntstop channel

    12-配置寻呼功能

    寻呼配置为三类,单播,多播,广播.

    R1(config)#ephone-dn 4

    R1(config-ephone-dn)#number 5555

    R1(config-ephone-dn)#paging

    R1(config-ephone-dn)#paging ip 239.1.1.100 port 2000 \\配置为组播地址

    R1(config-ephone-dn)#exit

    R1(config)#ephone 1

    R1(config-ephone)#paging-dn 4

    R1(config-ephone)#ephone 2

    R1(config-ephone)#paging-dn 4

    1003拨打5555,则1001和1002自动接听,因为他们在同一个paging group中

    clip_p_w_picpath028

    R1(config)#ephone-dn 5

    R1(config-ephone-dn)#number 6666

    R1(config-ephone-dn)#paging group 4,5

    Paging group的应用在于,拨打6666, 同时也会振铃paging dn 4的所有电话

    13-支持SIP电话

    配置如下:

    voice class codec 1

    codec preference 1 g711ulaw 

    codec preference 2 g729r8 !

    voice register global  mode cme

    source-address 11.11.11.100  

    max-dn 10 

    max-pool 5

    authenticate realm cisco.com  create profile !

    voice register dn  1  number 9001 !

    voice register pool  1  id mac 9999.9999.0001

    number 1 dn 1

    voice-class codec 1      调用上面的class  必须要写,或写固定的code  username evan password evan

    voice service voip   sip

      bind control source-interface Loopback0   bind media source-interface Loopback0 allow-connections sip to h323   registrar server

    注意preference 的值,代表那根线先使用,0好像默认,为最大

    如果是两台sip之间打(路由表里voip到voip),由于防环的机制,,我们要打下面的命令

    voice service voip 

    allow-connections sip to sip

    allow-connections sip to h323

    allow-connections h323 to h323

    在R1和R2上在写dial-peer时建议加上:voice-class codec x的命令 dial-peer voice 8000 voip 

    destination-pattern 80..

    voice-class codec 1

    session target ipv4:x.x.x.x

    14-配置时间段呼叫阻塞

    R1(config)#telephony-service

    R1(config-telephony)#after-hours day mon 18:00 9:00 //定义时间段,星期1晚6点到次日9点

    R1(config-telephony)#after-hours block pattern 1 9T

    R1(config-telephony)#ephone 3 //电话3除外

    R1(config-ephone)#after-hour exempt

    R1(config-ephone)#ephone 2

    R1(config-ephone)#pin 1234//电话2除外,但要输入pin码,就是在电话屏幕中点 'log in'

    R1(config-ephone)#exit

    R1(config)#telephony-service

    R1(config-telephony)#login time 120 clear 23:00 //定义输入pin码的等待时间

    clip_p_w_picpath029

    15-配置CDR

    CDR:call detail record

    R1(config)#logging buffered 51200

    R1(config)#dial-control-mib retain-timer 10080 \\保留时间

    R1(config)#dial-control-mib max-size 700 \\保留长度

    以上配置是没有log server的情况,但以下是有server的配置

    R1(config)#gw-accounting syslog

    R1(config)#logging 1.1.1.1

    clip_p_w_picpath030

    打电话过程中,这个键是用来计费的,比如each department cost center

    clip_p_w_picpath032

    16-配置保持音乐MOH

    clip_p_w_picpath034

    R1(config)#telephony-service

    R1(config-telephony)#moh 1.wav

    R1(config-telephony)#multicast moh 239.1.1.5 port 2111

    17-配置呼叫权限COR

    COR的工作方式讲起来有点麻烦。它的实施有三个步骤,

    第一是定义COR成员,第二是定义COR list。第三是和dial-peer以及ephone-dn绑定。COR成员是包括在COR list当中,而COR list是与dial-peer和ephone-dn绑定的。

    COR list分为incoming和outgoing。那么如何判断是否允许通过呢。如果COR outgoing中的成员是COR incoming中的成员的子集的时候,就可以通过。比如incoming成员有1,2,3,4 ,而outgoing有1或者有1,2或者2,3,4那么都是incoming的子集(这个是数学里面集合的内容)。这个时候这个出向dial-peer就可以继续传递了。

    (特例,当出向或者入向dial-peer,ephone-dn任何一方或者两方都没有和任何COR list关联的时候,也是可以通过的)

    Ephone-dn和入向dial-peer是和COR incoming来进行绑定的。出向dial-peer是和COR outgoing来进行绑定的。

    clip_p_w_picpath036

    现在要求1001 只能拨打2001, 1002只能拨打2002

    R1(config)#dial-peer cor custom //定义cor 成员

    R1(config-dp-cor)#name call2001

    R1(config-dp-cor)#name call2002

    R1(config-dp-cor)#exit

    出向和入向list并不是从配置的开始就确定的,创建的时候都是list。只是你应用到出向dial-peer就是出向COR list

    //定义出向cor list时刻记住COR的匹配准则:出向COR成员是入向的子集才能通过

    R1(config)#dial-peer cor list cor-out-2001

    R1(config-dp-corlist)#mem call2001

    R1(config)#dial-peer cor list cor-out-2002

    R1(config-dp-corlist)#member call2002

    //定义入向cor list

    R1(config)#dial-peer cor list cor-in-2001

    R1(config-dp-corlist)#mem

    R1(config-dp-corlist)#member call2001

    R1(config-dp-corlist)#exit

    R1(config)#dial-peer cor list cor-in-2002

    R1(config-dp-corlist)#member call2002

    //邦定出向corlist在dial-peer上

    R1(config)#no dial-p voice 2000 voip

    R1(config)#dial-p voice 2001 voip

    R1(config-dial-peer)#destination-pattern 2001

    R1(config-dial-peer)#corlist outgoing cor-out-2001

    R1(config-dial-peer)#session target ipv4:12.1.1.2

    R1(config-dial-peer)#exit

    R1(config)#dial-p voice 2002 voip

    R1(config-dial-peer)#destination-p 2002

    R1(config-dial-peer)#corlist outgoing cor-out-2002

    R1(config-dial-peer)#session target ipv4:12.1.1.2

    //再绑定入向dial-peer或者ephone-dn

    R1(config)#ephone-dn 1

    R1(config-ephone-dn)#corlist incoming cor-in-2001

    R1(config-ephone-dn)#ephone-dn 2

    R1(config-ephone-dn)#corlist incoming cor-in-2002

    测试结果: 不能打通的时候,电话上显示的是unknown number。

    clip_p_w_picpath038

    参考链接:

    http://sns.clnchina.com.cn/space.php?uid=119704&do=blog&id=2241

    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucme/admin/configuration/guide/cmeadm/cmebasic.html

    http://wenku.baidu.com/view/a9d7f548e45c3b3567ec8bbf

    http://www.techrepublic.com/article/know-how-to-use-cisco-ios-file-system-commands/

关键字