Voice Lab 3-IPhone Features & CME Features

Voice Lab 3-IPhone Features & CME Features

1-试验拓扑:

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是可以看到的

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就可以访问了,以下为截图

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

4-配置呼叫前转

4-1方法一

电话机上设置

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-配置呼叫转移

它有两个方式

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

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

1001A<--->1002B通信

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

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

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

代答方式:

? 举例:

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

Intercom有如下参数:

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中

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码的等待时间

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

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

16-配置保持音乐MOH

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来进行绑定的。

现在要求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。

参考链接:

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/

Voice Lab 3-IPhone Features & CME Features

时间: 2024-08-01 20:13:37

Voice Lab 3-IPhone Features & CME Features的相关文章

[OrangePi] Features (the features of Loboris&#39;s Images)

boot0_sdcard.fex, u-boot.fex and kernel (uImage) created from sources kernel built with many features enabled (btrfs, USB serial adapters, bluetooth, hdmi sound, nfsd ...) CPU runs at 1.53GHz, termal management adjusted so that all 4 cores are active

Voice Lab 7- AAR-SRST-Media Resource

一 集中式部署模型中的两个solution: 1-AAR,2-SRST 分布式模型没有这两个技术 1-AAR AAR 首先是发生在IP链路拥塞的情况下的,而SRST则是发生在IP链路中断的情况下 Regional : 放在不同的device pool,使用不同的编码 Location :配置带宽,让CM知道当前链路状态 Location的试验: 1-新建立一个'remote' location 我用1000--->2000 建立call,再用1001 ------->2001则不通,提示错误

Voice Lab 8-SIP笔记

H323 和SIP 的区别 SIP P2P : trunk SIP C/S: end point Sip拨号行为不支持kpml.每个按键就就发一次 默认sip电话只支持块输出,等拨dial的键才能发invite报文 但可以用sip dial rule去定义超时 时间 Debug ccsip message 注意邦原: Voice ser voip Bind all source-interface f0/0 但r2直接dail-peer指到cucm不安全, 往往应该指到R1 CUBE 基于URI

arcgis andriod Edit features

来自:https://developers.arcgis.com/android/guide/edit-features.htm#ESRI_SECTION1_56C60DB71AF941E98668AFB991A1B9C9 Edit features In this topic Create a feature table Add layers to the map Add features Update features Delete features Select features Comm

Voice Lab6- CUCM2

Voice Lab CUCM2 1-路由类型总结 分布式管理的缺陷是要FULL-MESH 2-CUCM部署模型 拓扑图 2-1多站点分布式模型-用H323 Trunk建立站点间IP中继 R2的配置如下 R2(config)#int f0/1 R2(config-if)#h323-gateway voip bind srcaddr 192.168.200.254 //不敲这命令,CUCM会拒绝R2发起的call leg 2-2多站点分布式模型-用GK 控制的 H323 Trunk R1(confi

voice lab2 &ndash; GK Operations

Voice Lab 2 –GK 1- GK e164 配置如下: R1(config)#int lo 0 R1(config-if)#ip add 1.1.1.1 255.255.255.255 R1(config-if)#no shut R1(config)#gatekeeper R1(config-gk)#zone local a cisco.com 1.1.1.1 R1(config-gk)#no shut R1(config)#int f0/1 R1(config-if)#h323-ga

《机器学习系统设计》之k-近邻分类算法

前言: 本系列是在作者学习<机器学习系统设计>([美] WilliRichert)过程中的思考与实践,全书通过Python从数据处理,到特征工程,再到模型选择,把机器学习解决问题的过程一一呈现.书中设计的源代码和数据集已上传到我的资源:http://download.csdn.net/detail/solomon1558/8971649 第2章通过在真实的Seeds数据集构建一个k-近邻分类器,从而达到一个较好的分类效果.本章主要涉及数据可视化分析.特征和特征工程.数据归一化.交叉验证等知识内

Learning WCF Chapter2 Service Contracts

A service contract describes the operations supported by a service,the message exchange pattern they use,and the format of each message. The service contract is also the main driver for generating a service description. A valid WCF service implements

[C4] Andrew Ng - Improving Deep Neural Networks: Hyperparameter tuning, Regularization and Optimization

About this Course This course will teach you the "magic" of getting deep learning to work well. Rather than the deep learning process being a black box, you will understand what drives performance, and be able to more systematically get good res