您好,登录后才能下订单哦!
CME上配置IP phone
CME上配置IP phone
随着网络的快速发展,我们无法向想象不久的将来是什么样的科技。但是Cisco的voice 给我们现在的交流带来方便,尤其是音质方面,由于国家不想再原有的基础实施进行花费巨资进行改造,所以目前这种设备只能在局域网中使用,他的使用不仅给我们带来了,交流的方便而且也创造了经济效益,节约了大量的成本开销!尤其是大型的局域更可以显示出他的效益哦!~
对于目前Cisco的使用有通过软件和硬件使用,我们就以采用软件的方式进行配置,硬件的基本配置与软件的配置基本一致,只不过在真机(硬件)配置中:还需要添加DHCP地址池,默认网关、DNS域名解析、扩张选项等。
当然我们在安装软电话的时,需要安装java虚拟机。
拓扑图:
基本配置
--------------------------------------------------------------------------------------------------------------------
Router>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f1/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0 对CME的路由接口f1/0配置ip地址
Router(config-if)#no shutdown
Router(config-if)#ex
*Mar 1 00:00:56.647: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Mar 1 00:00:57.647: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upit
Router(config)#
Router(config)#line console 0
Router(config-line)#no exec-timeout
Router(config-line)#logging synchronous
Router(config-line)#no ip domain-lookup
Router(config)#do ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/47/92 ms
Router(config)# 我们与本机的MAC绑定后,测试是否与我们本机链接畅通,因为我们采用的软件是将微软的环回口链接在一起。
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
进入CME的配置阶段
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Router(config)#telephony-service 开启电话注册服务
Router(config-telephony)#max-ephones 3 设置可允许注册的最大电话数为3个
Router(config-telephony)#max-dn 10 设置可以允许的最多线路条数(目录)为10
Router(config-telephony)#keepalive 10 设置keepaliv的时间为10秒
Router(config-telephony)#ip source-address 192.168.1.254 port 2000 设置CME的源地址为192.168.1.254 端口号为2000
Router(config-telephony)#system message Cisco Voice 电话机器显示的信息为Cisco Voice \\可选
Router(config-telephony)#exit
Router(config)#ephone-dn 1 进入第一个电话,进行设置电话
Router(config-ephone-dn)#
*Mar 1 00:03:49.079: %LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up 显示第一个电话的状态up
Router(config-ephone-dn)# number 2010 我们对此电话号设置为2010 \\ 可以随便设置
Router(config-ephone-dn)#name 2010 对此号码命名,方便我们对此辨认是来自那个部门的电话 \\可选
Router(config-ephone-dn)#exit
Router(config)#ephone-dn 2
Router(config-ephone-dn)#
*Mar 1 00:04:19.699: %LINK-3-UPDOWN: Interface ephone_dsp DN 2.1, changed state to up
Router(config-ephone-dn)#number 2012
Router(config-ephone-dn)#name 2012
Router(config-ephone-dn)#exit
Router(config)#ephone 1 配置ephone,每个ephone 对应一个mac地址
Router(config-ephone)#mac-address
Router(config-ephone)#mac-address 0200.4C4F.4F50 对相应的ephone 1的mac地址进行匹配
Router(config-ephone)#button 1:1 将line按钮与ephone-dn对应起来,其中第一个“1”是指ip phone 上的line button 第二个“1”是ephone-dn的号码。意思是将7940 ip phone上的line 1 按钮与ephone-dn 1的号码 2010对应联系起来!
Router(config-ephone)#exit
Router(config)#ephone 2
Router(config-ephone)#mac-address
*Mar 1 00:06:57.915: %IPPHONE-6-REGISTER_NEW: ephone-2:SEP005056C00001 IP:192.168.1.1 Socket:1 DeviceType:Phone has registered.
Router(config-ephone)#mac-address 0050.56C0.0001
Router(config-ephone)#button 1:2
Router(config-ephone)#exit
--------------------------------------------------------------------------------------------------------------------
更新配置文件
Router(config)#telephony-service
Router(config-telephony)#create cnf-files
Creating CNF files
CNF-FILES: Clock is not set or synchronized, retaining old versionStamps 由于时间不一致致使不能进行同步,所以就需要我们进行set时间
Router(config-telephony)#exit
Router(config)#^Z
Router#
*Mar 1 00:08:20.879: %SYS-5-CONFIG_I: Configured from console by console
Router#cloc
Router#clock set 17:57:00 7 june 2010
Router#
*Jun 7 17:57:00.003: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:08:45 UTC Fri Mar 1 2002 to 17:57:00 UTC Mon Jun 7 2010, configured from console by console.
Router#show ephone summary 查看ephone的汇总信息
hairpin_block:
ephone-1 Mac:0200.4C4F.4F50 TCP socket:[-1] activeLine:0 UNREGISTERED
mediaActive:0 offhook:0 ringing:0 reset:0 reset_sent:0 debug:0 primary_dn: 1*
IP:0.0.0.0 Unknown 0 keepalive 0
ephone-2 Mac:0050.56C0.0001 TCP socket:[1] activeLine:0 REGISTERED
mediaActive:0 offhook:0 ringing:0 reset:0 reset_sent:0 debug:0 primary_dn: 2*
IP:192.168.1.1 Telecaster 7960 keepalive 12 1:2 由于我们刚开始开启此个软电话,所以显示ephone-2为keepalive
Max 3, Registered 1, Unregistered 1, Deceased 0, Sockets 1
ephone_send_packet process switched 0
Max Conferences 8 with 0 active (8 allowed)
Skinny Music On Hold Status
Active MOH clients 0 (max 580), Media Clients 0, B-ACD Clients 0
No MOH file loaded
--------------------------------------------------------------------------------------------------------------------
关闭和开启显示的信息,不需要我们开启dubug
Router#
Jun 7 17:57:29.255: %IPPHONE-6-UNREGISTER_NORMAL: ephone-2:SEP005056C00001 IP:192.168.1.1 Socket:1 DeviceType:Phone has unregistered normally.
Jun 7 17:57:29.263: %IPPHONE-6-UNREGISTER_NORMAL: ephone-3: IP:192.168.1.1 Socket:1 DeviceType:Phone has unregistered normally. 关闭softphone显示的信息
Router#
Jun 7 17:57:38.091: %IPPHONE-6-REGISTER: ephone-2:SEP005056C00001 IP:192.168.1.1 Socket:1 DeviceType:Phone has registered. ephone-2注册成功
Router#
Jun 7 17:57:52.251: %IPPHONE-6-REG_ALARM: 25: Name=SEP02004C4F4F50 Load= 2.1.2.0 Last=Initialized
Jun 7 17:57:52.255: %IPPHONE-6-REGISTER: ephone-1:SEP02004C4F4F50 IP:192.168.1.1 Socket:2 DeviceType:Phone has registered. ephone-1注册成功
Router#
Router#
Jun 7 17:58:53.843: %IPPHONE-6-UNREGISTER_NORMAL: ephone-2:SEP005056C00001 IP:192.168.1.1 Socket:1 DeviceType:Phone has unregistered normally.
Router#
Jun 7 17:58:57.051: %IPPHONE-6-UNREGISTER_NORMAL: ephone-1:SEP02004C4F4F50 IP:192.168.1.1 Socket:2 DeviceType:Phone has unregistered normally.
Router#
Router#
最后,两个软电话通过设置可进行通信,在同一个机器上由于有串音干扰,会是刺耳的声音,所以我们可以在本机上(服务器上跑一个CME)然后在其他机器上安装softphone后,就可进行再不同机器上进行通信了!!不妨大家试一试啊!!实践是可行的!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。