如何在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
下面先了解一下基本概念,然後在看如何在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
 
Configuring Phones to Make Basic Calls
 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章