標題這麼寫,有點不太符合。具體的情況應該是這樣的,有一臺3825路由器,內插有PVDM2-64模塊和VIC2-4FXO模塊。路由器連接一臺可端口供電的Cisco3560交換機, IP電話連在交換機上。 電話網絡結構希望是這樣的:
PBX Model
配置電話可以進行基本呼叫的信息(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 單線路姓名地址錄號碼:
雙線路姓名地址錄號碼有如下特性:
特性如下:
一個雙電話號姓名地址錄號碼特性如下:
一個共享線路姓名地址錄號碼有如下特性:
一個覆蓋姓名地址錄號碼有如下特性:
SCCP 電話篇
一. SCCP:生成姓名地址錄號碼(Creating Directory Numbers)
在Cisco Unified CME裏爲一部SCCP電話、內部通信線路、語音端口、或者MWI 生成一個姓名地址錄號碼,請參考以下步驟:
每一個ephone-dn變成呼叫連接所依賴的一條虛擬線路或者一個號碼。
前提條件:
使用max-dn命令更改默認的最大姓名地址錄號碼數
主要步驟:
1. enable 進入ephone-dn配置模式.配置dual-line參數,通過一個ephone-dn號,可以實現呼叫等待、呼叫轉移和會議等功能。如果要更改雙線ephone-dn到單線ephone-dn,必須刪除舊的ephone-dn再重新建立。 |
二. 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 |
三 . 如果既有SSCP電話,又有SIP電話連接到同一個Cisco Unified CME,需要爲它們之間的內部呼叫配置Codec
爲保證在SIP和SCCP電話之間的本地呼叫,必需配置codec.
前提條件:
.Cisco Unified CME 3.4或更高版本
.Cisco IP phone必須已經配置好
主要步驟:
1. enable 進入ephone配置模式設置電話特性參數
or voice register pool-tag 爲配置Cisco Unified CME裏一個SIP電話,
進入voice register pool配 置模式設 置電 話
特性參數
|
四.SCCP: 爲SCCP電話生成配置文件(Generating Configuration Files for SCCP Phones)
對於小型的路由器,如Cisco 2600系列,當改變配置文件位置後,必須使用squeeze命令來擦除文件,釋放以前佔用的空間。
主要步驟:
1. enable |
例子: (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) | ||
1. enable |
(三)SCCP: 使用restart命令
1. enable |
六. SCCP:配置覆蓋Ephone-dns(Configuring Overlaid 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 |
命令 |
目的 | |
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 |
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 |
檢驗自動選線:
1. show running-config
2. show telephony-service ephone
八.配置實例
下面是在公司的CME上添加一個新的電話的例子
1. conf t |
1. conf t 123456 12. mwi-line 1 |