真心话太冒险竖笛简谱:如何在Cisco3825路由器上配置语音-IP电话篇(SCCP)

来源:百度文库 编辑:偶看新闻 时间:2024/05/03 09:15:00
如何在Cisco3825路由器上配置语音-IP电话篇(SCCP) 标题这么写,有点不太符合。具体的情况应该是这样的,有一台3825路由器,内插有PVDM2-64模块和VIC2-4FXO模块。路由器连接一台可端口供电的Cisco3560交换机, IP电话连在交换机上。 电话网络结构希望是这样的:
PBX Model
The simplest model is the PBX model, in which most of the IP phones in your system have a single unique extension number. Incoming PSTN calls are routed to a receptionist at an attendant console or to an automated attendant. Phone users may be in separate offices or be geographically separated and therefore often use the telephone to contact each other.
For this model, we recommend that you configure directory numbers as dual-lines so that each button that appears on an IP phone can handle two concurrent calls. The phone user toggles between calls using the blue navigation button on the phone. Dual-line directory numbers enable your configuration to support call waiting, call transfer with consultation, and three-party conferencing (G.711 only).
Figure 3 shows a PSTN call that is received at the Cisco Unified CME router, which sends it to the designated receptionist or automated attendant (1), which then routes it to the requested extension (2).
图1 Incoming Call Using PBX Model

How to Configure Phones for a PBX System
 
下面先了解一下基本概念,然后在看如何在Cisco3825上配置SCCP电话。
 
配置电话可以进行基本呼叫的信息(Information About Configuring Phones to Make Basic Calls)
(一)CME里的电话概念(Phones in Cisco Unified CME)
ephone的概念是相对于SCCP来说的,而voice-register pool则是相对于SIP。这两种名词都是Cisco Unified CME里电话的配置名称。无论是IP电话还是模拟电话都需要配置一个唯一的标记符(tag)。
(二)姓名地址录号码(Directory Numbers)
一个姓名地址录号码,对于SCCP可以被视为ephone-dn,对于SIP可以被视为voice-register dn。姓名地址录号码被视为到一部电话的一个语音通道。一个姓名地址录号码可以有一个或多个电话号码(extension)于其绑定。一般意义上讲,一个姓名地址录号码相当于一条电话线,但这不是绝对,存在着好几种类型的姓名地址录号码,每一个种都有不同的特性。
每一个姓名地址录号码都有唯一的一个dn-tag。姓名地址录号码可以被分配给电话上的线路按钮(line buttons)。
每一个姓名地址录号码,都会有一个虚拟语音端口为其自动生成,还会有一个或多个dial-peer自动为其生成。
你创建的姓名地址录号码的数量相当于你可以同时拨打电话的数量。因为每一个姓名地址录号码在路由器里都表现为一个虚拟语
音端口。这就意味着如果你想同时多个呼叫到一个电话号码上,并且被同时相应,就需要多个姓名地址录号码绑定同一个电话号码。
姓名地址录号码是CME系统里的一块积木。六种不同类型的姓名地址录号码可以根据情形结合在一起。下面以SCCP和Cisco Unified CME为背景来描述六种类型。
(1)单线路 (Single-Line)
单线路姓名地址录号码有如下特性:
.    使用一个电话线路按钮(phone line button)每次只能创建一个呼叫连接。一个单线路姓名地址录号码有一个电话号码于其绑定。
.    当Cisco Unified CME系统里IP电话于PSTN线路的电话进行一对一的通信时,应该采取单线路姓名地址录号码。
.    Should be used for lines that are dedicated to intercom,paging,message-waiting indicator(MWI),loopback,and music-on-hold(MOH) feed sources.
.    当想使用多线路特色时,例如呼叫等待,呼叫转移,电话会议,就必须在电话上使用多线路姓名地址录号码。
.     可以与双向路姓名地址录号码结合在一部电话上。
在初始化配置,必须指定姓名地址录号码是单线路还是双线路。如果想把单线路的更改为双线路的,必须删除重新创建。
图2 单线路姓名地址录号码:

(2)双线路(Dual-line)
双线路姓名地址录号码有如下特性:
. 一个语音端口对应两个通道。
. 支持运行SCCP的IP电话,不支持运行SIP的IP电话。
. 使用一个电话线路按钮(phone line button)可同时创建两个呼叫连接。
. 可以有一个或两个电话号码(一个主的,一个次的)与其对应。
. 可以被用于绑定在一个线路按钮上,实现呼叫转移,呼叫等待,电话会议功能。
. Cannot be used for lines that are dedicated to intercom, paging, message-waiting indicator (MWI),loopback, and music-on-hold (MOH) feed sources.
. 可以与单线路姓名地址录号码结合在一部电话上。
图3 shows a dual-line directory number for an SCCP phone in Cisco Unified CME.

(3)两个姓名地址录号码绑定一个电话号码(Two Directory Numbers with One Telephone or Extension Number)
特性如下:
. 同一个电话号码有两个单独的虚拟语音端口,因此可以创建两个单独的呼叫连接。
. 可以是双线路姓名地址录号码(SCCP only),也可以是单线路姓名地址录号码。
. 可以显示在一部电话的不通按钮上,或者显示在不同的电话上。
. 当使用较少的电话号码获得较多的呼叫连接时,可以使用此类型。
图4 Two Directory Numbers with One Number on One Phone:

上图显示,两个电话按钮绑定了相同的电话号码1003,每一个按钮绑定不同的姓名地址录号码(按钮1绑定姓名地址录号码13, 按钮2绑定姓名地址录号码14),当姓名地址录号码是单线路的时候,每一个按钮都可以创建一个单独的呼叫连接;当姓名地址录号码是双线路的时候,每一个按钮可以创建两个呼叫连接,总共四个。
图5 Two Directory Numbers with One Number on Two Phone:

上图显示两部电话,每部上的一个按钮绑定着相同的电话号码。因为两部电话上的按钮绑定着不同的姓名地址录号码,所以在这两个按钮上产生的呼叫是相互独立的。同一时间,电话4可以使用1003号码创建一个呼叫连接,电话5可以使用1003收到一个不同的呼叫连接。
图4和图5,展示了两个姓名地址录号码绑定一个电话号码的情形,这种情形用来提供一个小的搜索组能力(a small hunt group capability)。例如图4,当在按钮1上的姓名地址录号码忙,无法应答时,呼入1003的连接会翻转到和按钮2绑定的姓名地址录号码上。相似的,对于图5,如果电话4上的按钮1忙,一个呼入1003的连接会翻转到电话5的按钮1上。
(4)双号码(Dual-Number)
一个双电话号姓名地址录号码特性如下:
. 有两个电话号码,一个主的和一个从的。
. 如果是单线路姓名地址录号码,则只可以创建一个呼叫。
. 如果是双线路姓名地址录号码,同一时间可以创建两个呼叫。(SCCP only)
. 当想使一个按钮拥有两个电话号码,且只使用一个姓名地址录号码的情况下,使用此类型。
图6 Dual-Number Directory

(5)共享线路(Shared)
一个共享线路姓名地址录号码有如下特性:
. 两个电话上使用了相同的姓名地址录号码,电话号码。
. 同一时间只能创建一个呼叫,且这个呼叫将显示在两部电话上。
. 当你想要使用多个电话对一个呼叫进行应答时,使用此类型。
因为这些电话共享同样的姓名地址录号码,如果这个姓名地址录号码在一部电话上被一个呼叫连接占用,那么这个姓名地址录号码在第二部电话上将不可用于其它的呼叫连接。如果在一部电话上的呼叫不挂断,那么可以从第二部电话上重新得到。
图7 Shared Directory Number

(6)覆盖(Overlaid)
一个覆盖姓名地址录号码有如下特性:
. 是一个覆盖集(overlay set)的成员,它包含了被一起分配给一个指定的电话按钮的所有的姓名地址录号码。
. 覆盖集的成员可以有相同的电话号码,或者有不同的电话号码。
. 可以是单线路的,也可以是双线路的,但不能把这两种线路混合在一个覆盖集里。
. 可以在多个电话上共享。
覆盖姓名地址录号码提供了呼叫覆盖的功能(Overlaid directory numbers provide call coverage),类似于共享线路姓名地址录号码,因为同样的电话号码显示在多个电话上。相对于简单的共享线路,采用两个姓名地址录号码的覆盖姓名地址录号码优势在于:当一个呼叫连接占用了一部电话上的电话号码时,并部影响同样的电话号码在另一部电话上的使用。而共享线路却会影响。
SCCP 电话篇
一. SCCP:生成姓名地址录号码(Creating Directory Numbers)
在Cisco Unified CME里为一部SCCP电话、内部通信线路、语音端口、或者MWI 生成一个姓名地址录号码,请参考以下步骤:
每一个ephone-dn变成呼叫连接所依赖的一条虚拟线路或者一个号码。
前提条件:
使用max-dn命令更改默认的最大姓名地址录号码数
主要步骤:
1. enable
2. configure terminal
3. ephone-dn dn-tag [dual-line]
进入ephone-dn配置模式.配置dual-line参数,通过一个ephone-dn号,可以实现呼叫等待、呼叫转移和会议等功能。如果要更改双线ephone-dn到单线ephone-dn,必须删除旧的ephone-dn再重新建立。
4. number number[secondary number] [no-reg[both|primary]]
5. name name
6. end
二. SCCP: 给电话分配姓名地址录号码(Assinging Directory Numbers to Phones)
这个步骤用来建立起ephone-dn 到 ephone的关系,就是说,如何显示号码以及显示什么号码在电话机上。创建和修改SCCP电话特定参数,执行如下的操作到连接在Cisco Unified CME上的SCCP 电话机。
前提条件:
. To configure a phone line for Watch(w) mode by using the button command, Cisco Unified CME4.1 or a later version
. To configure a phone line for Monitor(m) mode by using the button command, Cisco CME 3.0 or a later version.
限制:
. For Watch mode. If the watched directory number is associated with several phones, then the watched phone is the one on which the watched directory number is on button 1 or the one on which the watched directory number is on the button that is configured by using the auto-line command, with auto-line having priority.
主要步骤:
1. enable
2. configure terminal
3. ephone phone-tag
4. mac-address [mac-address]
5. type phone-type[addon 1 module-type[2 module-type]]
6. button button-number(separator)dn-tag[,dn-tag...][button-number(x)overlay-button-number][button-number...]
绑定一个电话号码(ephone-dn)到一个按钮及线路特性。最大的可配置按钮数量取决于电话类型。例如:Cisco Unified IP Phone 7910 只有一个线路按钮,但是可以为其配置两个ephone-dn tags。
7. keypad-normalize
8. end
三 . 如果既有SSCP电话,又有SIP电话连接到同一个Cisco Unified CME,需要为它们之间的内部呼叫配置Codec
为保证在SIP和SCCP电话之间的本地呼叫,必需配置codec.
前提条件:
.Cisco Unified CME 3.4或更高版本
.Cisco IP phone必须已经配置好
主要步骤:
1. enable
2. configure terminal
3. ephone ephone-tag                 为配置Cisco Unified CME里一个SCCP电话,进入ephone配置模式设置电话特性参数
or
voice register pool-tag           为配置Cisco Unified CME里一个SIP电话,进入voice register pool配置模式设置电话特性参数
4. codec codec-type
5. end
四.SCCP: 为SCCP电话生成配置文件(Generating Configuration Files for SCCP Phones)
对于小型的路由器,如Cisco 2600系列,当改变配置文件位置后,必须使用squeeze命令来擦除文件,释放以前占用的空间。
主要步骤:
1. enable
2. configure terminal
3. telephony-service                        进入 telephony-service 配置模式
4. create cnf-files                         生成对于IP电话必须的XML配置文件
5. end
例子: (config)#telephony-serivce
(config-telephony)#cnf-file location flash
(config-telephony)#cnf-file perphone
检验SCCP电话的配置文件
主要步骤:
1. show telephony-service all
2. show telephony-service tftp-bindings
五. 重置和重启电话(Resetting and Restarting Phones)
这一节讲如何重置或者重启连接在Cisco Unified CME上的电话机.
(一)重置于重启的不同(Differences between Resetting and Restarting IP Phones)
为了使对ip电话的更改得以应用,必须重启电话。新的配置文件将在电话重启时(reboot or reset)被下载下来。在Cisco Unified CME里可以重启一部电话,也可以重启所有的电话。
reset和restart的不同:
reset restart
Type of Reboot 类似于掉电,再加电的重启  快速重启
Phone Configurations 为IP电话下载配置文件      为IP电话下载配置文件
DHCP and TFTP 连接DHCP和TFTP服务器来更新配置信息 电话连接TFTP服务器来更新配置信息
Processing Time 当更新多部电话时需要较长时间 当更新多部电话时比较快
When Required 日期和时间设置 地址目录号码(Directory numbers)
网络环境(Network locale) 电话按钮(Phone buttons)
电话固件(Phone firemware) 快捷号码(Speed-dial numbers)
源地址(Source address)
TFTP路径
URL特性(URL parameters)
用户环境(User locale)
语音邮件访问码(Voicemail access number)
地址目录号码(Directory numbers)
电话按钮(Phone buttons)
快捷号码(Speed-dial numbers)
(二) SCCP: 使用reset命令
1. enable
2. configure terminal
3. telephony-service
or
ephone phone-tag
4. reset {all [time-interval]|cancle|mac-address mac-address|sequence-all}
or
reset
5. end
(三)SCCP: 使用restart命令
1. enable
2. configure terminal
3. telephony-service
or
ephone
4. resart {all[time-interval]|mac-address}
or
restart
5. end
六. SCCP:配置覆盖Ephone-dns(Configuring Overlaid Ephone-dns)
首先创建ephone-dns, 然后通过使用o或者c关键字的button命令分配多个ephone-dns到一个电话按钮上。
限制:
. 当你使用o关键字的button命令配置ephone-dn覆盖时,呼叫等待被禁止。如要开启呼叫等待,必须使用c关键字的button命令来  配置ephone-dn。
. Rollover of overlay calls to another phone button by using the x keyword with the button command only works to   expand coverage if the overlay button is configured with the o keyword in the button command. Overlay buttons   with call waiting that use the c keyword in the button command are not eligible for overlay rollover.
. The primary ephone-dn on each phone in a shared-line overlay set should be an ephone-dn that is unique to the   phone to guarantee that the phone will have a line available for outgoing calls, and to ensure that the phone   user can obtain dial-tone even when there are no idle lines available in the rest of the shared-line overlay   set. Use a unique ephone-dn in this manner to provide for a unique calling party identity on outbound calls   made by the phone so that the called user can see which specific phone is calling.
主要步骤:
1. enable
2. configure terminal
3. ephone-dn dn-tag[dual-line]
4. number number
5. preference preference-value
6. huntstop
or
no huntstop
7. call-forward noan
8. call-forward busy
9. huntstop channel
10. exit
11. ephone phone-tag
12. mac-address mac-address
13. button button-number{o|c}dn-tag,dn-tag[,dn-tag...] button-number{x}overlay-button-number
14. end
命令
目的
1
enable
2
configure terminal
3
ephone-dn phone-tag [dual-line]
Example:
Router(config)# ephone-dn 10 dual-line
进入ephone-dn配置模式,为一部IP电话线路创建一个extension(ephone-dn)。
. 对于共享线路覆盖集(shared-line overlay set):在一部电话上的主要ephone-dn,对于这部电话应该是唯一的。
4
number  number                           Example:                               Router(config-ephone-dn)#number 1001  建立起电话机或者extension号码于ephone-dn的联系。
5
preference preference-order
Example:                                Router(config-ephone-dn)# preference 1
为一个ephone-dn设置播叫优先选择定制(dial-peer preference order)
.  Preference-order  按?查看一个数字选项范围,0是最高优先选择。默认的是0。
6
no huntstop                            or                                         huntstop                                                 Example:
Router(config-ephone-dn)# no hunstop
Router(config-ephone-dn)# huntstop
对一个姓名地址录号码(directory number)明确允许呼叫搜索行为(call hunting behavior)。
. 在覆盖集(overlay set)里除了最后一个实例外,要对所有的ephone-dn设置这个命令。
. 交叉多个号码在一部电话上的同一条线路按钮上,允许呼叫搜索,这条命令是必须的。
or
对一个姓名地址录号码禁止呼叫搜索行为。
. 在一个覆盖集里,对最后一个ephone-dn设置此命令
. 限制对一个覆盖集的呼叫搜索,需要使用此命令。
7
call-forward noan                               Example:
Router(config-ephone-dn)# call-forward noan
(可选的)在覆盖集里使呼入的未接呼叫转寄到下一条线路.
.在覆盖集里对所有的ephone-dn设置此命令。
8
call-forward busy
Example:
Router(config-ephone-dn)#call-forward busy
(可选的)如果线路忙,使呼入的呼叫转寄(forwards)。
. 仅在覆盖集里的最后一个ephone-dn设置此命令。
9
huntstop channel
Example:
Router(config-ephone-dn)# huntstop channel
仅用在覆盖集里的双线(dual-line)ephone-dn。如果第一个通道(channel)忙或者没有应答,阻止呼入的呼叫搜索到第二个通道.
. 为呼出电话保留第二个通道,例如当呼叫转移或者电话会议时,一个协商的呼叫被放于第二通道里。
10
exit
11
ephone phone-tag
Example:
Router(config)# ephone 4
进入ephone配置模式。
12
mac-address mac-address
Example:
Router(config-ephone)# mac-address 1234.5678 abcd
13
button
button-number{o |c }dn-tag,dn-tag[,dn-tag…]
button-number{x}overlay-button-number
Example:
Router(config-ephone)#  buton                          1o15,16,17,18,19 2c20,21,22 3x1 4x1
创造一组ephone-dn,覆盖到一个单一的按钮上(Creates a set of ephone-dns overlaid on a single button)。
.  o-覆盖按钮。多个ephone-dn共享这个按钮。通过逗号,最多25个ephne-dn可以被指定到一个单一的按钮上。
.  c-呼叫等待的覆盖按钮(Overlay button with call-waiting)。多个ephone-dn共享这个按钮。最多25个ephone-dn可以别指定到一个单一的按钮上。
.  x-Seprator that creates a rollover button for an overlay button that was defined using the o keyword. When the overlay button specified in this command is occupied by an active call, a second call to one of its ephone-dns will be presented on this button.
.  overlay-button-number:   Number of the overlay button that should overflow to this button. Note that the button must have been defined using the o keyword and not the c keyword.
14
end
检查覆盖ephone-dns
1. show running-config
2. show telephony-service ephone
七. 配置自动选线(Configuring Automatic Line Selection)
(一)对呼入和呼出的呼叫自动选线
对于多线路IP电话,当有电话打入时,拿起话柄,自动选择第一个响铃线路。当准备打出电话时,自动选择第一个空闲的线路。这些都是默认的行为。
自动选线特性允许当你拿起电话听筒使用时选择线路。
可以为每一部电话指定如下的行为(Any of the following behaviors can be assigned on a per-phone basis):
.    自动选线-拿起听筒回答第一个响铃的线路,没有响铃时,拿起听筒,选择第一个空闲的线路。使用auto-line命令,不带任何关键字和参数,可以设置自动选线特性,这是默认的。
.    手工选线-按下Answer软按键来应答第一个响铃线路,按下一个线路按钮选择一个线路来向外呼叫。拿起电话听筒,不能应答一个呼入的呼叫,或者听到dial tone。使用 no auto-line来设置成手工选线。
.    仅对呼入电话自动选线-当有电话呼入时,拿起听筒,自动选择第一个响铃线路来应答。但是当准备呼出时,拿起听筒,不能自动选择第一个空闲线路,需要按下线路按钮选择一个线路来呼出。使用auto-line incoming命令来设置成此特性。
.    仅对呼出电话自动选线-当拿起电话听筒准备呼出时,选择与button-number参数相关联的线路。如果与指定的button相关联的线路不可达(因为另一个电话在使用这个共享线路),就是当你拿起电话听筒时听不到dial-tone。你必须按下可用的线路按钮来呼出。当有电话打入时,必须按下Answer软按键来应答。使用auto-line button-number命令来设置此特性。
.    对呼入和呼出自动选线-Pressing the Answer soft key or picking up the handset answers an incoming call on the line associated with the specified button. Picking up the handset for outgoing calls selects the line associated with the specified button. Use the auto-line command with the button-number argument and answer-incoming keyword.
(二)SCCP:开启自动选线(Enabling Automatic Line Selection)
Restrictions:
Automatic line selection is bypassed if it is configured for a trunk directory number and the line is seized by
pressing the Park or Callfwd soft keys. The first available directory number is seized.
主要步骤:
1. enable
2. configure terminal
3. ephone phone-tag
4. auto-line [button-number][answer-incoming][incoming]
5. end
检验自动选线:
1. show running-config
2. show telephony-service ephone
八.配置实例
下面是在公司的CME上添加一个新的电话的例子
首先是配置ephone-dn
1. conf t
2. ephone-dn 35 dual-line
3. number 15734
4. name Rui Wang
5. preference 0 secondary 9
6. hunstop
7. no huntstop channel
8. call-forward busy 15799
9. call-forward noan 15799 10. timeout 18
11. call-waiting beep
12. pickup-group 198
13. end
其次是配置ephone
1. conf t
2. ephone 45
3. device-security-mode none
4. mac-address 001D.A2F4.93A1
5. type 7911
6. button 1:35
7. keepalive 30 auxiliary 30
8. multicast-moh
9. no mtp
10. codes 9711ulaw
11. username lzhang password 123456
12. mwi-line 1
13. conference drop-mode never
14. conference add-mode
15. no conference admin
16. end
参考
Cisco Unified CME Overview
http://www.cisco.com/en/US/docs/voice_ip_comm/cucme/admin/configuration/guide/cmeover.html
Configuring Phones to Make Basic Calls
http://www.cisco.com/en/US/docs/voice_ip_comm/cucme/admin/configuration/guide/cmebasic.html#wpxref63333