烽火2640路由器命令行手冊-11-IP語音配置命令

第1章   配置撥號對命令

1.1  配置撥號對命令

1.1.1   dial-peer voice

要進入撥號對配置模式,可以使用dial-peer全局配置命令。

dial-peer voice TAG {voip|pots|ivr}

no dial-peer voice {TAG|all}

參數

參數

參數說明

TAG

用戶想要創建或配置的dialpeer的ID(1~2147483647)。

voip

通過IP網絡連接的撥號對。

pots

通過傳統電信網絡連接的撥號對。

ivr

IVR連接類型的撥號對。

all

選擇所有撥號對。

缺省

命令模式

全局配置模式

使用說明

用戶輸入配置命令時:

(1)       用戶輸入的ID若在dialpeer表中已存在,且模式匹配,則進入dialpeer配置模式對相應dialpeer進行配置修改;

(2)       用戶輸入的ID若在dialpeer表中已存在,但模式不匹配,則提示用戶是否需創建一個新的dialpeer兵取代原有的dialpeer。用戶選擇“是”,則新建一個dialpeer並將原來的具有此ID的dialpeer刪除,然後進入dialpeer配置模式進行配置。若選擇“否”,則返回全局配置模式;

(3)       用戶輸入的ID若在dialpeer表中不存在,則新建一個dialpeer並進入dialpeer配置模式對其進行配置。

用戶輸入no命令時,若指定ID的dialpeer存在,則刪除,否則提示用戶;若選擇all則在提示確認後刪除所有dialpeer。

同時只能有一個用戶配置dialpeer,否則(如連個TELNET用戶同時進入不同的dial-peer進行配置)將會引起配置的錯誤。

示例

下面的例子訪問撥號對配置模式,並配置標識爲2的POTS撥號對:

router>enable

router#config

router_config#dail-peer voice 2 voip

router_config_dialpeer#

1.1.2   application

配置IVR模式名稱

application APPNAME

no application

參數

參數

參數說明

APPNAME

IVR模式名稱。

缺省

no application

命令模式

IVR類型的dial-peer配置模式

使用說明

示例

下面的例子是爲一個dialpeer配置一個application。

router>enable

router#config

router_config#dial-peer voice 1 ivr

router_config_dialpeer#application app1

router_config_dialpeer#

1.1.3   codec

配置本方在與某個destination-pattern的其它設備進行VOIP呼叫時所使用的語音編碼方式。

codec {g711ar64 | g711ur64 | g723r53 | g723r63 | g726r32 | g726r40 | g727r32 | g727r40 | g729r8 | g729-compatible}

default codec

參數

參數

參數說明

g711ar64

g.711 alaw 64k。

g711ur64

g.711 ulaw 64k。

g723r53

g.723.1 5.3k。

g723r63

g.723.1 6.3k。

g726r32

g.726 32k。

g726r40

g.726 40k。

g727r32

g.727 32k。

g727r40

g.727 40/32k。

g729r8

g.729 AnnexA 8k。

g729-compatible g.729 AnnexA 8k(如與cisco IOS12.04(T)及以前的版本互通時使用)

缺省

codec g711ar64

命令模式

dial-peer配置模式。

使用說明

rxx代表這種編碼方式的帶寬佔用量。如果有足夠帶寬想得到清晰的語音,可以選用g.711編碼方式。

在用該dialpeer做FAX傳輸時,強烈建議使用g.711或者g.727/726編碼bypass方式,這樣才能取得良好的傳輸效果。但是其它方式也是允許的。

在同一個dial-peer中,後面的codec配置覆蓋前面的。

在目前的實現中,一旦配置了語音的codec,則ByPass方式的FAX的BPC也要採用相同的值。將不提供專門用於配置BPC的命令。

示例

下面的例子是將一個dialpeer的編碼方式設爲g711ur64:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#codec g711ur64

router_config_dialpeer#

1.1.4   destination-pattern

配置一個dialpeer的撥號前綴或整個串。

destination-pattern STR[t]

no destination-pattern

參數

參數

參數說明

STR

由(0~9 , * # .)組成的32字符以下的串,‘.’通配任何的其它合法字符,‘,’表示在撥號中插入一個停頓。

t

表示這是一個變長的撥號串。

缺省

no destination-pattern

命令模式

dial-peer配置模式

使用說明

如果配置了撥號終結符,並且在參數中指定了t選項,則該撥號串作爲一個撥號的前綴,否則必須匹配全串。後面的配置覆蓋前面的。

示例

下面的例子是爲一個dialpeer配置一個撥號串:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#destination-pattern 121212

router_config_dialpeer#

1.1.5   dial-prefix

爲dialpeer中的撥號增加一個指定的前綴,在向外撥號時,把這個前綴和已收集到的號碼前連在一起撥出。例如用戶撥號爲5678,配置前綴爲1234,那麼向外撥的號碼將爲12345678。

dial-prefix PREFIX

參數

參數

參數說明

PREFIX

由(0~9 , # *)組成的長度小於10的撥號前綴。

缺省

命令模式

POTS類型的dial-peer配置模式

使用說明

系統在向外撥號時,在用戶已撥的號碼前自動添加一個前綴號碼。此配置只有對於FXO與E&M端口有效。

示例

下面的例子是爲一個dialpeer配置一個撥號串前綴:

router>enable

router#config

router_config#dial-peer voice 1 pots

router_config_dialpeer#dial-prefix 12345

router_config_dialpeer#

1.1.6   dtmf-relay

配置在通話過程中傳遞dtmf的方式。

dtmf-relay {[rtp] [h245-alphanumeric] [h245-signal]}

no dtmf-relay {[rtp] [h245-alphanumeric] [h245-signal]}

default dtmf-relay

參數

參數

參數說明

rtp

在rtp報文攜帶的語音幀中傳遞dtmf。

h245-alphanumeric

在H245的UserInputIndication中的alphanumeric IE傳遞dtmf。

h245-signal

在H245的UserInputIndication中的signal IE傳遞dtmf。

缺省

dtmf-relay rtp

命令模式

dial-peer配置模式。

使用說明

用戶可在三種方式中選取一種或多種方式傳遞dtmf。使用no命令可取消配置,但不可全部取消,至少比需保留一種方式。

示例

下面的例子是將一個dialpeer的dtmf傳遞方式設爲rtp和h245-signal:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#dtmf-relay rtp h245-signal

router_config_dialpeer#

1.1.7   fax-protocol

指定某個的dialpeer正進行傳真業務時,使用的傳送協議。

fax-protocol {t38|rtp}

no fax-protocol

參數

參數

參數說明

t38

t38協議方式。

rtp

rtp協議方式。

缺省

no fax-protocol

命令模式

非IVR類型的dial-peer配置模式。

使用說明

命令默認是採用bypass方式。

示例

下面的例子是配置dialpeer的fax-protocol:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#fax-protocol rtp

router_config_dialpeer#

1.1.8   fxo-dial-mode

配置FXO端口的撥號方式。

fxo-dial-mode {once | twice}

default fxo-dial-mode

參數

參數

參數說明

once

一次撥號。

twice

兩次撥號。

缺省

fxo-dial-mode once

命令模式

POTS類型的dial-peer配置模式。

使用說明

在FXO端口作爲被叫方時,有兩種撥號方式。一種是接通電話時將dialpeer中配置的destination-pattern串從端口向PBX撥出;另一種是直接將呼叫置於接通狀態,以後的撥號動作會以語音幀的方式傳到交換機。

示例

下面的例子是爲一個dialpeer設定一個撥號方式:

router>enable

router#config

router_config#dial-peer voice 1 pots

router_config_dialpeer#fxo-dial-mode once

router_config_dialpeer#

1.1.9   port

爲POTS類型的dialpeer綁定語音端口。

port slot-num/port-num[:changrp]

no port {slot-num/port-num[:changrp]|all}

參數

參數

參數說明

slot-num

需配置的端口所在的槽號。

port-num

需配置的端口號。

changrp

HDV controller上配置的CAS語音端口ds0組號。

all

對應所有端口。

缺省

命令模式

POTS類型的dial-peer配置模式

使用說明

在POTS類型的dialpeer中綁定語音端口。可以在同一個dialpeer中綁定多個port。

示例

下面的例子是爲一個dialpeer綁定一個語音端口:

router>enable

router#config

router_config#dial-peer voice 1 pots

router_config_dialpeer#port 1/0

router_config_dialpeer#

1.1.10   req-qos

在dialpeer上使用QoS策略。

req-qos { best-effort | controlled-load | guaranteed-delay }

no req-qos

參數

參數

參數說明

best-effort

Best Effort。

controlled-load

Controlled Load。

guaranteed-delay Guaranteed

Delay。

缺省

no req-qos

命令模式

非IVR類型的dial-peer配置模式。

使用說明

示例

下面的例子是配置dialpeer的req-qos:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#req-qos guaranteed-delay

router_config_dialpeer#

1.1.11   session target

爲dialpeer指定一個目的傳輸地址。

session target {ipv4: dest-ip | ras | terminal}

參數

參數

參數說明

ipv4

表示後面的參數是一個點分格式的v4 IP地址。

dest-ip

IP地址串。

ras

表示這個dialpeer的被叫方傳輸地址需要通過RAS過程確定。

terminal

表示這個dialpeer的被叫方是一個H323終端。

缺省

命令模式

VOIP類型的dial-peer配置模式。

使用說明

配置了ras類型的target的情況下,呼叫H323終端時通過RAS查找目標地址。

terminal類型的target是用來在沒有ras協議幫助的情況下呼叫H323終端時用的。如果指定了terminal類型的target,destination-pattern的配置有以下的一些選擇:

未配置dial-peer terminator:   可以只配置12位destination-pattern,解釋時轉化爲點分格式的串。每三位轉化爲一個十進制數,如果該十進制數不足3位,在配置時就以前置的0補齊。這樣就可以從中取到目的傳輸地址。這樣的問題是,IP地址配置可能會將一些需要用到的其它類型撥號串的空間佔去。所以可以有另一種處理方法,在該12位串前加上前綴(使用trim-prefix命令)。使用和其它撥號串配置不衝突的前綴可以很好地解決前面遇到的問題。

配置了dial-peer terminator:   在配置了撥號終結符之後就只配置一個唯一確定的撥號前綴,用戶輸入撥號終結符後再對撥號串進行匹配。

示例

下面的例子是對兩個dialpeer分別配置ras和ipv4:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#session target ras

router_config_dialpeer#exit

router_config#dial-peer voice 2 voip

router_config_dialpeer#session target ipv4: 192.2.2.153

router_config_dialpeer#

1.1.12   trim-prefix

爲dialpeer中的destination-pattern配置指定一個前綴的長度。

trim-prefix LENGTH

參數

參數

參數說明

LENGTH

指定一個前綴的長度。範圍爲1~32。

缺省

命令模式

非IVR類型的dial-peer配置模式

使用說明

如果在FXO端口的dialpeer上配置了fxo-dial-mode once,則在收到VOIP呼叫後需要將被選的目的dialpeer上的destination-pattern向PBX撥出,這樣如果在兩臺PBX都有號碼爲8001的分機,另外一臺設備要呼叫這兩個分機中的一個時就無法確定。如果給destination-pattern前加上一個唯一確定的前綴,並且在撥號時將該前綴去掉再呼出,就能解決這個衝突。比如,可以爲兩個destination-pattern分別配置上2位的前綴,一個是12,另一個是22,則不會發生衝突。

另一種情況是配置session target terminal以後,destination-pattern中的配置就被解釋爲IP地址。假設配置爲192168……,可以以主叫方式呼通IP爲192.168.0.0 255.255.0.0網段的所有H323終端。但是付出的代價是在其它dialpeer中192,1921之類的destination-pattern均無法再配置。這時如果加上trim-prefix的配置,就可以解決這個問題。

這個配置在向外撥號或發起呼叫時,將destination-pattern中的串去掉指定長度的前綴後再撥出。

示例

下面的例子是爲一個dialpeer配置一個撥號串前綴長度:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#trim-prefix 5

router_config_dialpeer#

router_config_dialpeer#

1.1.13   alternative

配置在當前dialpeer撥號失敗時,替換使用的備份dialpeer。

alternative DialpeerID preference NUM

no alternative DialpeerID preference NUM

參數

DialpeerID   配置替換使用的dialpeer的ID(1~2147483647)。

參數

參數說明

NUM

配置備份dialpeer的優先級(0~3)。

缺省

命令模式

dial-peer配置模式。

使用說明

用戶撥號失敗時,如配置了替換dialpeer,則系統自動替換使用配置的替換dialpeer進行撥號,一個dialpeer可以配置最多4個不同優先級的備份。

示例

下面的例子是配置dialpeer的替換使用:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#alternative 3 preference 0

router_config_dialpeer#alternative 4 preference 2

router_config_dialpeer#

1.1.14   shutdown(dial-peer)

禁用當前的dial-peer。

shutdown

no shutdown

參數

缺省

no shutdown

命令模式

dial-peer配置模式。

使用說明

dialpeer被禁用後,任何的匹配呼叫操作都不包括此dialpeer。

示例

下面的例子是禁用一個配置的dialpeer:

router>enable

router#config

router_config#dial-peer voice 1 voip

router_config_dialpeer#shutdown

router_config_dialpeer#

第2章   語音端口配置命令

2.1  語音端口配置命令

2.1.1   voice-port

進入某個語音端口的配置狀態。

voice-port [slot-num|port-num[:changrp]

參數

參數

參數說明

slot-num

需配置的端口所在的槽號。

port-num

需配置的端口號。

changrp

E1端口使用的ds0-group號。

缺省

命令模式

全局配置模式

使用說明

用戶輸入此命令後,若指定端口不存在,則提示用戶並退到全局配置模式;若指定端口存在,則進入此端口相應的配置模式(FXO/FXS/E&M/E1)。

示例

下面的例子進入插槽1上的FXS卡的端口0配置的配置模式:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#

2.1.2   comfort-noise

對某個DSP的通道的輸出加上靜音壓縮選項後,在靜音時設備就不再向對端發送語音。對端爲了使用戶不至於因爲聽不到聲音而感到不適,可以通知本方的DSP在沒有收到對方發送的語音時,給本方的用戶發送模擬的背景噪音。這個命令是用來通知本方的DSP在通話時啓動背景噪音設置。

comfort-noise

no comfort-noise

參數

缺省

no comfort-noise

命令模式

voice-port配置模式。

使用說明

在需要低帶寬的語音傳輸時,可以打開這個選項。在通話時,DSP就會啓動靜音抑制功能,同時在對方沒有發送語音幀的時候向本方的用戶發送背景噪音。在同一個voice-port配置中,後面的配置覆蓋前面的。

示例

下面的例子是取消一個端口的背景噪音配置:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#comfort-noise

router_config_voiceport#

2.1.3   connection-plar

在語音端口收到對方摘機的動作後,由端口根據該端口上配置的熱線撥號發起一次VOIP呼叫。

connection-plar STR

no connection-plar

參數

參數

參數說明

STR

由(0~9 , * # a b c d)組成的32字符以下的串。

缺省

no connection-plar

命令模式

voice-port配置模式。

使用說明

使用熱線功能可以省略用戶撥號動作。在同一個voice-port配置中,後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的熱線15300:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#connection-plar 15300

router_config_voiceport#

router_config_voiceport#

2.1.4   description

給指定的語音端口加上描述,可以讓配置者在操作時不致混淆。

description STR

no description

參數

參數

參數說明

STR

字符串,長度小於255字節。

缺省

no description

命令模式

voice-port配置模式。

使用說明

給指定端口加上描述符。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的描述:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#description “This is a FXS voice port.”

router_config_voiceport#

2.1.5   emsignal-in

配置E&M端口上由交換機呼叫本方端口時端口上採用的信令。

emsignal-in {immediate | wink-start | delay-dial}

default emsignal-in

參數

參數

參數說明

immediate

immediate start信令。

wink-start

wink start信令。

delay-dial

delay dial信令。

缺省

emsignal-in immediate

命令模式

E&M類型的voice-port配置模式。

使用說明

通常情況下對端的PBX使用的是何種信令模式我們的端口上也應該配置此種信令。但是如果對端的PBX沒有使用wink-start信令,我們端口上配置immediate即可。

由於當前硬件設計的限制,同一塊E&M卡上所有端口必須配成相同的屬性。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的由交換機呼叫本方端口時端口上採用的信令爲wink-start:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#emsignal-in wink-start

router_config_voiceport#

2.1.6   emsignal-out

配置E&M端口上由本方端口向交換機呼叫時端口上採用的信令。

emsignal-out {immediate | wink-start | delay-dial}

default emsignal-out

參數

參數

參數說明

immediate

immediate start信令。

wink-start

wink start信令。

delay-dial

delay dial信令。

缺省

emsignal-out delay-dial

命令模式

E&M類型的voice-port配置模式。

使用說明

通常情況下對端的PBX使用的是何種信令模式我們的端口上也應該配置此種信令。但是實際上如果本方配置了delay-dial信令及適當的超時選項,就可以呼通任何一種信令的對端。

由於當前硬件設計的限制,同一塊E&M卡上所有端口必須配成相同的屬性。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的由本方端口向交換機呼叫時端口上採用的信令爲wink-start:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#emsignal-outwink-start

router_config_voiceport#

2.1.7   input-gain

配置語音端口的輸入增益。

input-gain NUM

default input-gain

參數

參數

參數說明

NUM

-31~31(db)。

缺省

input-gain 0

命令模式

voice-port配置模式。

使用說明

輸入增益的調節有助於改善回波抵消的效果,一般使用缺省參數即可達到效果,在缺省參數效果不佳時可以考慮修改參數。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的輸入增益爲10:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#input-gain 10

router_config_voiceport#

2.1.8   operation

配置E&M語音端口的線制。

operation {2-wire|4-wire}

default operation

參數

參數

參數說明

2-wire

二線制。

4-wire

四線制。

缺省

operation 4-wire

命令模式

E&M類型的voice-port配置模式。

使用說明

配置E&M端口的線制,如果與交換機的不同是無法互通的。

示例

下面的例子是配置一個端口的線製爲2線:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#operation 2-wire

router_config_voiceport#

2.1.9   output-gain

配置語音端口向用戶播出的音量。

output-gain NUM

no output-gain

default output-gain

參數

參數

參數說明

NUM

-31~31(db)。

缺省

output-gain –8(FXO端口)

output-gain -6(其他端口)

命令模式

voice-port配置模式。

使用說明

調節這個參數可以將網絡端送來的數據音量調節後向用戶回放。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的輸出音量爲10:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#output-gain 10

router_config_voiceport#

2.1.10   sig-gain

配置本方向交換機發送信號音時的音量設置。

sig-gain NUM

default sig-gain

參數

參數

參數說明

NUM

-31~0 (db)。

缺省

sig-gain -23(E&M端口)

sig-gain -11(其他端口)

命令模式

voice-port配置模式。

使用說明

本方向交換機發送信號音時如果太輕可能導致交換機檢測不到,太響時容易淹沒交換機方向發來的信號音。在進行調試後設置這個值可以確保通話的正常接續。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的發送信號音音量爲-15:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#sig-gain -15

router_config_voiceport#

2.1.11   timing delay-start

配置E&M端口使用delay dial信令時,向PBX呼叫從本方摘機到向外撥號的延時設定。

timing delay-start MS

default timing delay-start

參數

參數

參數說明

MS

20~2000ms。

缺省

timing delay-start 300

命令模式

E&M類型的voice-port配置模式。

使用說明

在使用了delay dial信令後,如果向外撥號,首先本方摘機,等待delay-start超時。超時到達以後,檢查對端的狀態是否爲掛機狀態,如果是,則開始撥號,否則呼叫失敗。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的從本方摘機到向外撥號的延時值爲1000ms:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#timing delay-start 1000

router_config_voiceport#

2.1.12   timing dialout-delay

在E&M端口上配置immediate start信令後,本方向PBX發起呼叫的情況下,從摘機到向外撥號的延時設定。

timing dialout-delay MS

default timing dialout-delay

參數

參數

參數說明

MS

100~5000ms。

缺省

timing dialout-delay 300

命令模式

E&M類型的voice-port配置模式。

使用說明

immediate start信令對主叫方的要求是,摘機後,等待dialout-delay超時,再向PBX方向開始撥號。不需要考慮對方是否摘機狀態。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的從本方摘機到向外撥號的延時值爲1000ms:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#timing dialout-delay 1000

router_config_voiceport#

2.1.13   timing dialout-pause

配置在語音端口向PBX方向發起撥號時遇到停頓提示時應該等待的延時值。

timing dialout-pause MS

no timing dialout-pause

default timing dialout-pause

參數

參數

參數說明

MS

500~5000ms。

缺省

timing dialout-pause 2000

命令模式

voice-port配置模式。

使用說明

在語音端口撥出一個撥號串時,遇到’,’符號,需要停頓的時間。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的停頓提示時的等待延時值爲3000:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timing dialout-pause 3000

router_config_voiceport#

2.1.14   timing digit

配置語音端口向交換機撥號時單個DTMF的持續時間。

timing digit MS

default timing digit

參數

參數

參數說明

MS

50~100ms。

缺省

timing digit 100

命令模式

voice-port配置模式。

使用說明

語音端口向交換機撥號時單個DTMF的持續時間。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的單個DTMF的持續時間值爲80ms:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timing digit 80

router_config_voiceport#

2.1.15   timing interdigit

語音端口向交換機撥號時,撥號之間的間隔時間。

timing interdigit MS

default timing interdigit

參數

參數

參數說明

MS

50~500ms。

缺省

timing interdigit 100

命令模式

voice-port配置模式。

使用說明

語音端口向交換機撥號時,撥號之間的間隔時間。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的撥號之間的間隔時間值爲100ms:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timing interdigit 100

router_config_voiceport#

2.1.16   timing offhook-delay

語音端口摘機之前等待的時間。

timing offhook-delay MS

default timing offhook-delay

參數

參數

參數說明

MS

0~200ms。

缺省

timing offhook-delay 5(FXO端口)

timing offhook-delay 0(E&M端口)

命令模式

voice-port配置模式。

使用說明

對FXO口來說,在接收到對端FXS口的鈴流信號後端口應該摘機準備發起呼叫。但是如果太早摘機容易導致瞬間摘機電流不穩定發生抖動,使FXS口認爲本端口掛機,從而斷開呼叫。這個超時是用來穩定摘機電流的。

對於immediate start信令的E&M端口,表示在接收到對端的摘機信號後多久本端摘機。

對於delay dial信令的E&端口,表示在接收到對端的摘機信號後多久本端開始接收被叫號碼,然後摘機。

示例

下面的例子是配置一個FXO端口的offhook-delay值爲50ms:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timing offhook-delay 50

router_config_voiceport#

2.1.17   timing wink-duration

指定一個wink的最小時間跨度。

timing wink-duration MS

default timing wink-duration

參數

參數

參數說明

MS

100~400ms。

缺省

timing wink-duration 200

命令模式

E&M類型的voice-port配置模式。

使用說明

對於主叫方來說,如果對方的設備發起的wink小於這個時間跨度,則認爲呼叫失敗;對被叫方來說,這個設置比產生wink的持續時間略長一些,表示wink持續時間的上限。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的一個wink的最小時間跨度值爲150ms:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#timing wink-duration 150

router_config_voiceport#

2.1.18   timing wink-wait

在E&M端口向PBX方向呼叫時,該端口等待對方wink動作從開始到結束的超時值。

timing wink-wait MS

default timing wink-wait

參數

參數

參數說明

MS

端口等待對方wink動作從開始到結束的超時值。100~5000ms

缺省

timing wink-wait 200

命令模式

E&M類型的voice-port配置模式。

使用說明

端口做摘機動作後,等待對方發送一個wink表示準備接受呼叫。一個wink就是從摘機到掛機的整個過程,如果在超時過去後對方的wink動作尚未開始,呼叫失敗。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的等待對方wink動作從開始到結束的超時值爲1000ms:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#timing wink-wait 1000

router_config_voiceport#

2.1.19   timeouts initial

指定語音端口接收首個撥號的等待超時。

timeouts initial SEC

default timeouts initial

參數

參數

參數說明

SEC

指定語音端口接收首個撥號的等待超時。5~30s

缺省

timeouts initial 10

命令模式

voice-port配置模式。

使用說明

交換機接受撥號時,如果超時則向主叫發送忙音。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的接收首個撥號的等待超時值爲20s:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timeouts initial 20

router_config_voiceport#

2.1.20   timeouts interdigit

指定語音端口接受撥號時,在兩次撥號間的等待超時。

timeouts interdigit SEC

default timeouts interdigit

參數

參數

參數說明

SEC

5~20s。

缺省

timeouts interdigit 10

命令模式

voice-port配置模式。

使用說明

如果超時則向主叫發送忙音。後面的配置覆蓋前面的。

示例

下面的例子是配置一個端口的兩次撥號間的等待超時值爲20s:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#timeouts interdigit 20

router_config_voiceport#

2.1.21   type

配置E&M語音端口的接線方式。

type {1 | 2 | 3 | 5}

default type

參數

參數

參數說明

1

1型接線方式。

2

2型接線方式。

3

3型接線方式。

5

5型接線方式

缺省

type 5

命令模式     

E&M類型的voice-port配置模式。

使用說明

E&M端口一共有1~5五種接線方式,我們的硬件支持除4以外的其它所有類型。E&M端口的接線方式與PBX的相連端口一致才能互通。

示例

下面的例子是配置一個端口的接線方式爲3型:

router>enable

router#config

router_config#voice-port 3/0

router_config_voiceport#type 3

router_config_voiceport#

2.1.22   shutdown (voice-port)

禁用當前的語音端口。

shutdown

no shutdown

參數

缺省

no shutdown

命令模式

voice-port配置模式。

使用說明

在shutdown時,將語音端口接續護駕的功能禁止。在no shutdown時,允許當前的端口接續呼叫,並且對該端口進行重新初試化。如果當前的端口出現故障,可以通過no shutdown命令來恢復端口的功能。在使用shutdown,no shutdown命令時,本端口不允許有呼叫接續正進行中。

示例

下面的例子是禁用一個端口:

router>enable

router#config

router_config#voice-port 1/0

router_config_voiceport#shutdown

router_config_voiceport# 

2.1.23   restrict

設定語音通道或HDV通道組的呼叫限制。

restrictdial-in | dial-out | bothway | busyout

no restrict

參數

參數

參數說明

dial-in

只允許呼入。

dial-out

只允許呼出。

bothway

允許雙向呼叫。

busyout

禁止雙向呼叫。

缺省

bothway

命令模式

voice-port配置模式。

使用說明

設定語音通道的呼叫限制。

示例

router_config#voice-port 1/0:1

router_config_voiceport#restrict dial-in

2.1.24   KA

KA val

no KA

參數

參數

參數說明

val

設定R2主叫類別。1~15

缺省

1

命令模式

voice-port配置模式。

使用說明

設定R2信令的主叫類別。

示例

router_config#voice-port 1/0:1

router_config_voiceport#KA 1

2.1.25   KD

KD val

no KD

參數

參數

參數說明

val

設定R2發端業務類別。1~15

缺省

3

命令模式

voice-port配置模式。

使用說明

設定R2信令的發端業務類別。

示例

router_config#voice-port 1/0:1

router_config_voiceport#KD 1

2.1.26   default-abcd

default-abcd val

no default-abcd

參數

參數

參數說明

val

設定R2信令缺省的ABCD位。“0000”~”1111”

缺省

“1010”

命令模式

voice-port配置模式。

使用說明

設定R2信令缺省的ABCD位。

示例

router_config#voice-port 1/0:1

router_config_voiceport#default-abcd 1010

第3章   HDV控制器配置命令

3.1  HDV控制器配置命令

3.1.1   framing

配置HDV的組幀方式,是否攜帶校驗和。

framing {crc4 | no-crc4}

no framing

參數

參數

參數說明

crc4

帶校驗和。

no-crc4

不帶校驗和。

缺省

crc4

命令模式

HDV-controller配置模式。

使用說明

配置E1接口的MF幀是否攜帶校驗和。

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#framing crc4

3.1.2   clock

配置HDV的時鐘方式。

clock { internal | external}

no clock

參數

參數

參數說明

internal

內時鐘方式。

external

外時鐘方式。

缺省

external

命令模式

HDV-controller配置模式。

使用說明

配置E1接口的時鐘方式

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#clock in

3.1.3   linecode

配置HDV編碼方式。

linecode { ami | hdb3}

no linecode

參數

參數

參數說明

ami

ami編碼。

hdb3

hdb3編碼。

缺省

hdb3

命令模式

HDV-controller配置模式。

使用說明

配置E1編碼方式

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#linecode ami

3.1.4   cable

配置HDV編碼方式。

cable { 120 | 75}

no cable

參數

參數

參數說明

120

120歐。

75

75歐。

缺省

75

命令模式

HDV-controller配置模式。

使用說明

配置E1線路阻抗

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#cable 120

3.1.5   ds0-group

由某個HDV端口上的一組時系組成一個ds0-group。

ds0-group ds0-group-no timeslots timeslot-list type {r2-digital}

no ds0-group ds0-group-no

參數

參數

參數說明

ds0-group-no

1-5.

timeslot-list

1-15, 17-31。分隔符有‘-’和‘,’, ‘-’表示連選,‘,’表示下一段時系組。如:1-10, 19-28表示第一到第十時系以及第十九到第二十八時系。

缺省

命令模式

HDV-controller配置模式。

使用說明

在某個HDV端口上指定一個DS0組作爲CAS語音端口提供服務。在同一個HDV端口上只能配置5個不同的DS0組,同時在某個DS0組的timeslot-list中指定的任何時系不能在其它DS0組中出現。對於所有的DS0組只提供r2-digital協議的支持。

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#ds0-group 1 timeslots 1-15 type r2-digital

3.1.6   HDV-controller

進入某個HDV控制器的配置模式。

HDV-controller slot-number/subnumber

參數

參數

參數說明

slot-number

插卡槽號。

subnumber

HDV trunk號。

缺省

命令模式

全局配置模式

使用說明

進入某個HDV控制器的配置模式。

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#ds0-group 1 timeslots 1-15 type r2-digital

3.1.7   companding-type

指定某個HDV控制器上PCM通道採用的語音採樣方式。

companding-type {alaw | ulaw}

no companding-type

參數

參數

參數說明

alaw

A率。

ulaw

U率。

缺省

alaw

命令模式

HDV-controller配置模式。

使用說明

不同的交換機會採用不同的採樣方式。

示例

router_config#HDV-controller 1/0

router_config_HDV-controller1/0#companding-type alaw 

第4章   IVR配置命令

4.1  IVR 配置命令

4.1.1   ivr-cfg

要進入IVR配置模式,可以使用ivr-cfg全局配置命令。

ivr-cfg

參數

缺省

命令模式

全局配置模式

使用說明

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#

4.1.2   account-rate

配置通話費率。

account-rate rate

def account-rate

參數

參數

參數說明

rate

費率值。

缺省

def account-rate

命令模式

ivr配置模式

使用說明

費率值單位爲 分/6秒。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#account-rate 10

router_config_ivr#

4.1.3   authen card

配置認證帳戶信息。

authen card num_len key_len times

def authen

參數

參數

參數說明

num_len

賬戶名號碼長度。

key_len

賬戶密碼長度。

times

認證次數。

缺省

def authen

命令模式

ivr配置模式

使用說明

配置卡式電話模式中卡號的位數和密碼的位數;默認的值NUM_LEN是10,KEY_LEN是10,TIMES是3。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#authen card 5 5 2

router_config_ivr#

4.1.4   authen timeout

配置認證超時信息。

authen timeout first_key all_key

def authen

參數

參數

參數說明

first_key

等待撥號超時時間。

all_key

用戶整個撥號過程超時時間。

缺省

def authen

命令模式

ivr配置模式

使用說明

配置用戶名和密碼撥號過程中首次按鍵和全部按鍵等待時間;默認的值FIRST_KEY是30,ALL_KEY是60。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#authen timeout 15 30

router_config_ivr#

4.1.5   dial dialing

配置撥號設置。

dial dialing num_len times

def dial

參數

參數

參數說明

num_len

用戶撥號長度。

times

用戶撥號次數。

缺省

def dial

命令模式

ivr配置模式

使用說明

配置所有ivr模式中撥號的默認長度和允許的重撥次數;默認的值NUM_LEN是10,TIMES是3。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#dial dialing 5 2

router_config_ivr#

4.1.6   dial timeout

配置撥號超時信息。

dial timeout first_key all_key

def dial

參數

參數

參數說明

first_key

等待撥號超時時間。

all_key

用戶整個撥號過程超時時間。

缺省

def dial

命令模式

ivr配置模式

使用說明

配置所有ivr模式中撥號的默認長度和允許的重撥次數;默認的值FIRST_KEY是30,ALL_KEY是60。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#dial timeout 15 30

router_config_ivr#

4.1.7   file play-start

配置歡迎詞文件名。

file play-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置卡式電話中歡迎詞的語音提示文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file play-start playstart

router_config_ivr#

4.1.8   file record-start

配置錄音提示文件名。

file record-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置錄音提示音的語音提示文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file record-start recordstart

router_config_ivr#

4.1.9   file record-again

配置再次錄音文件名。

file record-again file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置繼續錄音的語音提示文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file record-again recordagain

router_config_ivr#

4.1.10   file record-failed

配置錄音失敗文件名。

file record-failed file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置錄音失敗語音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file record-failed reocrdfailed

router_config_ivr#

4.1.11   file authen-user-start

配置認證開始文件名。

file authen-user-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置卡式電話中輸入用戶命提示的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file authen-user-start authenuserstart

router_config_ivr#

4.1.12   file authen-key-start

配置密碼輸入文件名。

file authen-key-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置卡式電話中輸入密碼提示的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file authen-key-start authenkeystart

router_config_ivr#

4.1.13   file authen-failed

配置認證失敗文件名。

file authen-failed file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置認證失敗提示的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file authen-failed authenfailed

router_config_ivr#

4.1.14   file dial-start

配置開始撥號文件名。

file dial-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置可以撥打所撥號碼提示的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file dial-start dialstart

router_config_ivr#

4.1.15   file dial-failed

配置接通失敗文件名。

file dial-failed file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置接通失敗的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file dial-failed dialfailed

router_config_ivr#

4.1.16   file interrupt-start

配置中斷信息文件名。

file interrupt-start file

def file

參數

參數

參數說明

file

文件名,不帶後綴。

缺省

def file

命令模式

ivr配置模式

使用說明

配置儲金用完準備結束通話的錄音文件。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file interrupt-start interstart

router_config_ivr#

4.1.17   file record-gather-name

配置設置語音文件名。

file record-gather-name file

def file

參數

參數

參數說明

file

文件名,不帶後綴

缺省

def file

命令模式

ivr配置模式

使用說明

配置錄音的集成聲音文件名的配置。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#file record-gather-name gathername

router_config_ivr#

4.1.18   ivr

配置IVR啓用/禁用模式。

ivr enable

ivr disable

參數

參數

參數說明

enable

啓用。

disable

禁用。

缺省

ivr enable

命令模式

ivr配置模式

使用說明

禁用IVR後,所有有關IVE的DIALPEER配置均無效。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#ivr disable

router_config_ivr#

4.1.19   record key

配置錄音使用的按鍵信息。

record key start_key restart_key

def record

參數

參數

參數說明

star t_key

開始錄音鍵。

restart_key

重新開始錄音鍵。

缺省

def record

命令模式

ivr配置模式

使用說明

配置錄音開始鍵和連續錄音鍵;默認的值START_KEY是‘*’,RESTART_KEY是‘1’。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#record key 0

router_config_ivr#

4.1.20   record time

配置錄音次數信息。

record time max_preiod def_period

def record

參數

參數

參數說明

max_preiod

錄音一次時間,單位是秒。

def_period

錄音一次時間,單位是0.1秒。

缺省

def record

命令模式

ivr配置模式

使用說明

配置一次錄音的時間參數分別是秒和0.1秒,以小的爲準;默認的值MAX_PREIOD是100,DEF_PERIOD是10。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#record time 150 30

router_config_ivr#

4.1.21   stop-key

配置IVR使用的停止鍵。

stop-key key

def stop-key

參數

參數

參數說明

key

停止鍵。

缺省

def stop-key

命令模式

ivr配置模式

使用說明

IVR中所有操作的停止均使用此定義的鍵,默認的鍵是‘#’。

示例

router>enable

router#config

router_config#ivr-cfg

router_config_ivr#stop-key *

router_config_ivr#

第5章   cptone配置命令

5.1  cptone 配置命令

5.1.1   cptone

每個交換機發出的信號音都是有一定的頻率值的,如果將本設備的信號音檢測頻率設定爲相應的值,有助於忙音檢測功能。本命令用於進入cptone配置模式。Default命令將此槽上所有信號音恢復默認值。

cptone slot

default cptone slot

參數

參數

參數說明

slot

進行設置的卡槽號。

缺省

命令模式

voice-port配置模式。

使用說明

用戶對指定卡槽上的FXO語音模塊設置忙音、回鈴音、波號音等信號音進行設置;若信號音爲單頻,則高頻值應設爲2001。

信號音中,PBX上的波號音、回鈴音、忙音和空號音必須設置且只能設置一個,其他種類的信號應可以不設置或設置多個。設置的值在退出配置模式時統一寫入DSP,因此若設置的是無效值,將不能退出配置模式。

示例

下面的例子是進入信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#

5.1.2   cptone-vty-cfg

強制取消對cptone配置的多vty屏蔽。

cptone-vty-cfg

參數

缺省

命令模式

全局配置模式。

使用說明

在配置cptone的過程中,若vty被強制關閉(如掉電、窗口強制關閉等),這以後任何vty均無法進入cptone配置,除非重啓動機器。爲了解決這個問題,使用這條命令,強制解除屏蔽功能。

此命令只在下次進入cptone時有效,其後cptone屏蔽將恢復。

使用此命令前請確認無任何vty正在配置cptone,否則進入cptone配置時可能導致cptone配置的紊亂。

示例

下面的例子是進入信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#

5.1.3   dial-tone-pbx

設置PBX上的撥號音。

dial-tone-pbx low-freq high-freq

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#dial-tone-pbx 400 480

router_config_cptone#

5.1.4   alert-tone-pbx

設置PBX上的回鈴音。

alert-tone-pbx low-freq high-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#alert-tone-pbx 400 480 100 400

router_config_cptone#

5.1.5   busy-tone-pbx

設置PBX上的忙音。

busy-tone-pbx low-freq high-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#busy-tone-pbx 400 480 35 35

router_config_cptone#

5.1.6   empty-tone-pbx

設置PBX上的空號音。

empty-tone-pbx low-freq high-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#empty-tone-pbx 400 480 40 40

router_config_cptone#

5.1.7   dial-tone-ext

設置遠端PBX上的撥號音。

dial-tone-ext low-freq high-freq

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#dial-tone-ext 400 2001

router_config_cptone#

5.1.8   alert-tone-ext

設置遠端PBX上的回鈴音。

alert-tone-ext low-freq high-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#alert-tone-ext 400 2001 100 400

router_config_cptone#

5.1.9   busy-tone-ext

設置遠端PBX上的忙音。

busy-tone-ext low-freq low-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

low-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#busy-tone-ext 400 2001 35 35

router_config_cptone#

5.1.10   empty-tone-ext

設置遠端PBX上的空號音。

empty-tone-ext low-freq high-freq on-time off-time

參數

參數

參數說明

low-freq

低頻值。

high-freq

高頻值。

on-time

通時間。

off-time

斷時間。

缺省

命令模式

cptone配置模式。

使用說明

低頻值必須小於高頻值。

示例

下面的例子是信號音的設置:

router>enable

router#config

router_config#cptone 1

router_config_cptone#empty-tone-ext 400 2001 40 40

router_config_cptone# 

第6章   網關配置命令

6.1  網關配置命令

6.1.1   gateway-cfg

進入網關配置模式。

gateway-cfg

參數

缺省

命令模式

全局配置模式

使用說明

進入網關配置模式。

示例

router>enable

router#config

router_config#gateway-cfg

router_config_gw#

6.1.2   gateway ipaddr

指定語音網關的IP地址。

gateway ipaddr ipaddr

no gateway ipaddr ipaddr

參數

參數

參數說明

paddr

IP點分類型的地址。

缺省

命令模式

gateway配置模式。

使用說明

配置語音網關使用的IP地址。

示例

router>enable

router#config

router_config#gateway-cfg

router_config_gw#gateway ipaddr 192.2.2.152

router_config_gw#

6.1.3   gateway gkid

指定語音網關注冊到的網守的IP地址。

gateway gkid gkname ipaddr Ipaddr [port]

gateway gkid gkname

參數

參數

參數說明

gkname

網守的名稱(最大長度爲16)。

Ipaddr

網守的IP點分類型的地址。

port

網守使用的端口(1-65535)。

缺省

命令模式

gateway配置模式。

使用說明

指定語音網關注冊到的網守的IP地址。

示例

router>enable

router#config

router_config#gateway-cfg

router_config_gw#gateway gkid gk1 ipaddr 192.2.2.152

router_config_gw#

6.1.4   gateway h323id

指定語音網關使用的H.323 ID。

gateway h323id H323ID

no gateway h323id H323ID

參數

參數

參數說明

H323ID

網關使用的H.323 ID(最大長度爲47)。

缺省

命令模式

gateway配置模式。

使用說明

指定語音網關使用的H.323 ID。

示例

router>enable

router#config

router_config#gateway-cfg

router_config_gw#gateway h323id [email protected]

router_config_gw#

6.1.5   gateway tech-prefix

指定語音網關注冊到網守使用的技術前綴。

gateway tech-prefix prefix

no gateway tech-prefix prefix

參數

參數

參數說明

prefix

網關使用的技術前綴(最大長度爲15)。

缺省

命令模式

gateway配置模式。

使用說明

指定語音網關注冊到網守使用的技術前綴。目前本公司的GK暫時不支持此註冊功能,此命令可以在註冊到CISCO的GK時使用。

示例

router>enable

router#config

router_config#gateway-cfg

router_config_gw#gateway tech-prefix 123

router_config_gw#

6.1.6   shutdown (gateway)

禁用語音網關。

shutdown

no shutdown

參數

缺省

no shutdown

命令模式

gateway配置模式。

使用說明

在shutdown時,將語音網關的功能禁止。若已註冊到某個網守,則同時向那個網守進行註銷。

示例

下面的例子是禁用語音網關:

router>enable

router#config

router_config#gateway-cfg

router_config_gw#shutdown

router_config_gw# 

第7章   網守配置命令

7.1  網守配置命令

7.1.1   gatekeeper-cfg

進入網守配置模式。

gatekeeper-cfg

參數

缺省

命令模式

全局配置模式

使用說明

進入網守配置模式。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#

7.1.2   zone local

設置語音網守本地區域。

zone local gkname domain {{ipaddr ipaddr}|{interface interface}}

no zone local gkname

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

domain

Domain名稱(最大長度爲31)。

ipaddr

點分IP地址。

interface

網絡接口,如以太網接口,串行接口,同步接口等。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守本地區域。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#zone local gk1 rnd.com ipaddr 192.2.2.155

router_config_gk#

7.1.3   zone remote

設置語音網守遠端區域。

zone remote gkname domainipaddr

no zone remote gkname

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

domain

Domain名稱(最大長度爲31)。

ipaddr

點分IP地址。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守遠端區域。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#zone remote gk2 rnd.com 192.2.2.156

router_config_gk#

7.1.4   zone prefix

設置語音網守的前綴。

zone prefix gkname prefix

no zone remote gkname prefix

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

prefix

前綴字符串(最大長度爲15)。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守的前綴。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#zone prefix gk1 123

router_config_gk#

7.1.5   zone subnet

設置語音網守的子網。

zone subnet gkname {default|ipaddr|{ipmask|/num}} enable

no zone subnetgkname {default|ipaddr|{ipmask|/num}} enable

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

paddr

子網的點分地址。

ipmask

子網的點分地址掩碼。

/num

子網掩碼中爲1的比特的個數(1~32)。

enable

允許此子網的設備註冊。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守的子網。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#zone subnet

router_config_gk#

7.1.6   alias

設置語音網守的靜態別名條目。

alias static ipaddr gkid gkname {[gateway][terminal][mcu][e164 e164num][h323id h323id][ras rasipaddr]}

alias static ipaddr gkid gkname

no alias static ipaddr

參數

參數

參數說明

static

配置靜態端點表項。

ipaddr

此靜態端點的信令的點分IP地址。

gkname

配置此靜態端點註冊的網守名字(最大長度爲16)。

gateway

靜態端點是一個網關。

terminal

靜態端點是一個終端。

mcu

靜態端點是一個多點控制單元。

e164num

配置E.164號碼(最大長度爲32),最多配置10個。

h323id

配置H.323 ID(最大長度爲47)。

rasipaddr

此終端的RAS地址。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守的配置靜態別名條目。可多項選擇。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#alias static

router_config_gk#

7.1.7   gw-type-prefix

設置語音網守的網關技術前綴。

gw-type-prefix e164num {default-technology|[gw ipaddr ipaddr]|[hopoff gkname]}

gw-type-prefix e164num

no gw-type-prefix e164num

參數

參數

參數說明

e164num

E.164前綴(可以以'*'或者多個'.'結束,最大長度爲15)。

default-technology

此前綴爲缺省技術前綴。

gw

指定與此前綴關聯的網關。

ipaddr

網關的RAS信令IP點分地址。

hopoff

此前綴指定在特定的網守解析。

gkname

網守名字(最大長度爲16)。

缺省

命令模式

gatekeeper配置模式。

使用說明

設置語音網守的網關技術前綴。此命令的是用於CISCO的定義有所不同。

示例

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#gw-type-prefix

router_config_gk#

7.1.8   shutdown (gatekeeper)

禁用語音網守。

shutdown

no shutdown

參數

缺省

no shutdown

命令模式

gatekeeper配置模式。

使用說明

在shutdown時,將語音網守的功能禁止。若已有網關注冊到網守,則同時向那些網關進行註銷。

示例

下面的例子是禁用語音網守:

router>enable

router#config

router_config#gatekeeper-cfg

router_config_gk#shutdown

router_config_gk#

第8章   語音管理命令

8.1  show命令

8.1.1   show voip

顯示語音模塊的版本信息。

show voip

參數

缺省

命令模式

enable及以上模式。

使用說明

示例

Router>enable

Router#show voip

VOIP software V2.0.0 build 20020828

Router#

8.1.2   show voip r2

顯示HDV語音模塊的R2信令狀態。

show voip r2 slot slot trunk subcardgroupgroup-num

參數

參數

參數說明

slot

卡槽號。

subcard

trunk號。

group-num

通道組號。

缺省

命令模式

enable及以上模式。

使用說明

顯示HDVcontroller的狀態。

示例

router#show voip r2 slot 2

=================================================================

************************  TRUNK 0 ***************************

trunk_service_mode=[TRUNK_IN_SERVICE],  trunk_status=[TRUNK_UP]

CHAN_GRP_BUSYOUT=0x0, CHAN_GRP_IN=0x1, CHAN_GRP_OUT=0x2

CHAN_GRP_BW=0x3, CHAN_GRP_DOWN=0x8, CHAN_GRP_NOT_CREATED=0x10

CHAN_GRP_DEF=0x3

channel group 0x00000001: mask=0x00000001, status=0x3

channel group 0x00000002: mask=0x00100000, status=0x3

channel group 0x00000003: mask=0x10000000, status=0x3

channel group 0x00000004: mask=0x00000000, status=0x10

channel group 0x00000005: mask=0x00000000, status=0x10

vchan_index=0x6000000 CRV ID=-1

      line_protocol=CH_R2_BOTHWAY_SIGNALLING

      Current_line_state=CH_BW_IDLE

      Current ABCD_in=ABCD_BITS_1010

      Current ABCD_out=ABCD_BITS_1010

      TonesSentCount=0

      channel_grp_id=0x6000001

      Flags=0xf0

      FinalTone=NO_TONE

      Current toneState=CHTI_IDLE

      CalledID=       CallingID=

      Msg2SendAtIdle=0x0

      readyForTones=0x0

      SubscriberCategory=FWD_TONE1

      IO_Index=(null)      CLID_Index=(null)

--------------------------------------------------

vchan_index=0x6040000 CRV ID=-1

      line_protocol=CH_R2_BOTHWAY_SIGNALLING

      Current_line_state=CH_BW_IDLE

      Current ABCD_in=ABCD_BITS_1010

      Current ABCD_out=ABCD_BITS_1010

      TonesSentCount=0

      channel_grp_id=0x6000002

      Flags=0xf0

      FinalTone=NO_TONE

      Current toneState=CHTI_IDLE

      CalledID=       CallingID=

      Msg2SendAtIdle=0x0

      readyForTones=0x0

      SubscriberCategory=FWD_TONE1

      IO_Index=(null)      CLID_Index=(null)

--------------------------------------------------

vchan_index=0x6050003 CRV ID=-1

      line_protocol=CH_R2_BOTHWAY_SIGNALLING

      Current_line_state=CH_BW_IDLE

      Current ABCD_in=ABCD_BITS_1010

      Current ABCD_out=ABCD_BITS_1010

      TonesSentCount=0

      channel_grp_id=0x6000003

      Flags=0xf0

      FinalTone=NO_TONE

      Current toneState=CHTI_IDLE

      CalledID=       CallingID=

      Msg2SendAtIdle=0x0

      readyForTones=0x0

      SubscriberCategory=FWD_TONE1

      IO_Index=(null)      CLID_Index=(null)

--------------------------------------------------

8.1.3   show voip dial-peer

顯示某個或全部dial-peer的當前參數設置。

show voip dial-peer [tag]

參數

參數

參數說明

tag

dial-peer索引(1~2147483647)。

缺省

命令模式

enable及以上模式。

使用說明

顯示某個或全部dial-peer的當前參數設置。若TAG未輸入則顯示所有dial-peer。

示例

Router>enable

Router#show voip dial-peer 1

Index: 1(Dialpeer ID)

  Type: POTS

  destination pattern: 11910

  no Answer Address

  Port List: 1/0

  Trim Prefix Length: 0, no Dial Prefix

  Codec Type: G711ar64, no require-qos, fax protocol:bypass

  FXO Dial Mode: ONCE

  no shutdown

Router#

8.1.4   show voip voice-port

顯示某個或所有語音端口的當前狀態。

show voip voice-port {slot-num/port-num | all}

參數

參數

參數說明

slot-num

顯示狀態的端口所在的槽號。

port-num

顯示狀態的端口號。

all

顯示所有語音端口。

缺省

命令模式

enable及以上模式。

使用說明

顯示某個或所有語音端口的當前狀態。

示例

Router>enable

Router#show voip voice-port 1/0

FXS mode voice port 1/0

  comfort noise: OFF

  connection plar: EMPTY

  description: EMPTY

  input gain: 0(dB), output gain: 2(dB), signal gain: -11(dB)

  timeouts initial: 10(S), timeouts interdigit: 10(S)

  timing dialout pause: 2000(MS), timing digit: 100(MS)

  timing interval digit: 100(MS)

  no shutdown

Router#

8.1.5   show voip voice-dsp

顯示系統內所有的語音DSP的狀態。

show voip voice-dsp

參數

缺省

命令模式

enable及以上模式。

使用說明

顯示系統內所有的語音DSP的狀態。

示例

Router>enable

Router#show voip voice-dsp

Router#

8.1.6   show voip voice-regs

顯示設備上所有語音插卡的CPLD寄存器值。

show voip voice-regs

參數

缺省

命令模式

enable及以上模式。

使用說明

顯示設備上所有語音插卡的CPLD寄存器值。

示例

Router>enable

Router#show voip voice-regs

============================================================

Slot 1: 2 FXS

  DSP0 Base Address: 0xF0830000

  Out_reg:      1 1 0 1 0 0 1 0

  Imask_reg:    1 1 1 1 1 0 0 0

  Ipend_reg:    1 1 1 1 1 1 1 1

Router#  

8.1.7   show voip cptone

顯示設備上指定語音插卡的信號音配置。

show voip cptone slot-num

參數

參數

參數說明

slot-num

顯示狀態的端口所在的槽號。

缺省

命令模式

enable及以上模式。

使用說明

顯示設備上指定語音插卡的信號音配置。

示例

此例爲cptone命令中示例所配置的單頻信號音的顯示。

Router>enable

Router#show voip cptone 1

If it is single frequency signal, it's high frequency would be 2001!

==========================================================================

Tone Type    Source  High Frequency  Low Frequency   On Time    Off Time

------------ ------- --------------- --------------- ---------- ----------

DIAL         PBX     2001            450

ALERT        PBX     2001            450             100        400

BUSY         PBX     2001            450             35         35

EMPTY        PBX     2001            450             12         12

DIAL         EXT     2001            450

ALERT        EXT     2001            450             100        400

BUSY         EXT     2001            455             35         35

==========================================================================

Router#

8.1.8   show voip ivr

顯示IVR的當前參數設置等IVR相關信息。

show ivr {configuration | call-instance | ivri-session}

參數

參數

參數說明

configuration

顯示IVR的命令配置。

call-instance

顯示IVR呼叫實例信息。

ivri-session

顯示IVR交互實例信息。

缺省

命令模式

enable及以上模式。

使用說明

顯示IVR的當前參數設置等內容。

示例

Router>enable

Router#show voip ivr configuration

=============================================================================

IVR disable

Authen info:

  Card name number length: 10, key length: 6, authen times: 3

  Timeout for waiting dialing: 30s, for dial ending: 60s

Dialing info:

  Dial number length: 10, times: 3

  Timeout for waiting dialing: 30s, for dial ending: 60s

File info:

  Play start   : default/6               Record start   : default/4

  Record again : default/5               Record failed  : default/10

  Authen start : default/1               Key start      : default/2

  Authen failed: default/9               Dial start     : default/3

  Dial failed  : default/7               Interrupt start: default/8

  Gather audio : user

Record info:

  All record period: 300s, one record period: 3000ms

  Start record key: '*', restart key: '1', stop key: '#'

Play info:

  Play times: 3

=============================================================================

Router#

8.1.9   show voip h323

顯示H.323所有或某次呼叫的信息。

show voip h323 session [h323_sess_id]

參數

參數

參數說明

session

顯示H.323 session的信息。

h323_sess_id

H.323呼叫的ID。

命令模式

enable模式。

使用說明

若無id參數時顯示當前類型所有session的信息;否則顯示當前類型的ID的呼叫的信息。

8.1.10   show voip data

顯示數據平臺所有或某次呼叫的信息。

show voip data session [data_sess_id]

參數

參數

參數說明

session

顯示數據session的信息。

data_sess_id

呼叫參考值ID。

命令模式

enable模式。

使用說明

若無id參數時顯示當前類型所有session的信息;否則顯示當前類型的ID的呼叫的信息。

8.1.11   show voip audio

顯示集成語音文件中所有子語音文件的信息。

show voip audio filename

參數

參數

參數說明

filename

語音文件名稱。

命令模式

enable模式。

使用說明

顯示集成語音文件中所有子語音文件的相關信息,包括子語音文件名稱、子語音文件在集成文件中的偏移量、子語音文件的長度。

注意用於顯示非語音類型的文件,即後綴名不是“.au”的文件時,不會得到類似上面的信息,會得到相關錯誤提示。

示例

下面的例子是執行show voip audio的輸出:

Router>enable

Router#show voip audio single.au

This is a single audio file, codec type is G723r53.

Router#show voip audio multi.au

================================

Sub audio name   Offset  Length

---------------- ------- -------

SubAudio1        200     200

SubAudio2        400     200

SubAudio3        600     200

================================

This is a single audio file, codec type is G723r53.

8.1.12   show gatekeeper endpoints

顯示註冊到設備上的語音網守的所有端點信息。

show gatekeeper endpoints {[gkid gkname][dynamic | static]}

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

static

顯示靜態別名條目。

dynamic

顯示動態別名條目。

缺省

命令模式

enable及以上模式。

使用說明

顯示註冊到設備上的語音網守的所有端點信息。

示例

Router>enable

Router#show gatekeeper endpoints

Router#show gatekeeper endpoint

                    GATEKEEPER ENDPOINT REGISTRATION

                    ================================

CallSig Address Port  RAS Address     Port  Zone Name        Type        Static

--------------- ----- --------------- ----- ---------------- ----------- ------

172.16.20.119   1720  172.16.20.119   20001 gk1              GW          N

    E164-ID: 11910

    E164-ID: 11911

    H323-ID: bd119

=============================================================================

Total number of this kind endpoints = 1

Total number of active registrations = 1

Router#

8.1.13   show gatekeeper gw-type-prefix

顯示網關技術前綴表信息。

show gatekeeper gw-type-prefix

參數

缺省

命令模式

enable及以上模式。

使用說明

顯示網關技術前綴表信息。

示例

Router>enable

Router#show gatekeeper gw-tech-prefix

GATEWAY TYPE PREFIX TABLE

=========================

Prefix: 123

=========================

Router#

8.1.14   show gatekeeper status

顯示本地網守的狀態信息。

show gatekeeper status

參數

缺省

命令模式

enable及以上模式。

使用說明

顯示本地網守的狀態信息。

示例

Router>enable

Router#show gatekeeper status

    Gatekeeper State: UP

    Zone Name:        gk1

     Zone Name:        gk2

Router#

8.1.15   show gatekeeper zone

顯示區域相關信息。

show gatekeeper zone {[gkid gkname][local|prefix|remote|subnet]}

參數

參數

參數說明

gkname

網守名稱(最大長度爲16)。

local

顯示本地區域。

prefix

顯示區域的前綴信息。

remote

顯示遠端區域。

subnet

顯示本地區域的子網信息。

缺省

命令模式

enable及以上模式。

使用說明

顯示區域相關信息。

示例

Router>enable

Router#show gatekeeper zone

                         GATEKEEPER ZONES

                         ================

GK name          Domain Name          RAS Address     PORT  Local MAX-BW CUR-BW

                                                                  (kbps) (kbps)

---------------- -------------------- --------------- ----- ----- ------ ------

gk1              rnd.com              172.16.20.115   1719  Y

  SUBNET ATTRIBUTES :

    subnet 172.16.20.0/255.255.255.0 : (Enabled)

    All Other Subnets : (Disabled)

gk2              rnd.com              172.16.20.115   1719  Y

  SUBNET ATTRIBUTES :

    All Other Subnets : (Enabled)

gk153            rnd.com              172.16.20.153   1719  N

=============================================================================

Router#

8.2  debug命令

8.2.1   debug vpm dsp

輸出DSP工作時的調試信息。

debug vpm dsp

no debug vpm dsp

參數

缺省

no debug vpm dsp

命令模式

enable模式。

使用說明

在檢查是否DSP模塊操作有問題時使用。

示例

router>enable

router#debug vpm dsp

VPM Dsp debugging is on

router#

8.2.2   debug vpm error

輸出語音模塊處理中遇到的出錯情況。

debug vpm error

no debug vpm error

參數

缺省

no debug vpm error

命令模式

enable模式。

使用說明

只輸出語音模塊處理中的錯誤信息。

示例

router>enable

router#debug vpm error

VPM Error debugging is on

router#

8.2.3   debug vpm port

輸出語音模塊處理中遇到的出錯情況。

debug vpm port [slot-num|port-num]

no debug vpm port [slot-num|port-num]

參數

參數

參數說明

slot-num

debug的端口所在的槽號。

port-num

debug的端口號。

缺省

命令模式

enable模式。

使用說明

這條命令可以避免多條語音端口的信息混在一起輸出,給查錯增加麻煩。

示例

router>enable

router#debug vpm port 1/0

VPM Port debugging is on

router#

8.2.4   debug vpm signal

輸出語音模塊運行時的的消息處理流程信息。

debug vpm signal

no debug vpm signal

參數

缺省

no debug vpm signal

命令模式

enable模式。

使用說明

使用這項功能可以跟蹤語音模塊的消息及狀態機處理的流程。

示例

router>enable

router#debug vpm signal

VPM Signal debugging is on

router#

8.2.5   debug voip error

輸出VoIP錯誤內容消息。

debug voip error { h323 | dialsig | ras | gw | gk | asn1 | dp | vdata | ivrm |ivrp | ivri | ivrc | ct | r2 | others }

no debug voip error  { h323 | dialsig | ras | gw | gk | asn1 | dp | vdata | ivrm |ivrp | ivri | ivrc | ct | r2 | others

參數

參數

參數說明

h323

調試VoIP H323錯誤。

dialsig

調試VoIP Dialsig錯誤。

ras

調試VoIP RAS錯誤。

gw

調試VoIP gateway錯誤。

gk

調試VoIP Gatekeeper錯誤。

asn1

調試VoIP ASN.1錯誤。

dp

調試VoIP data plane錯誤。

vdata

調試VoIP vdata錯誤。

ivrm

調試VoIP IVR main錯誤。

ivrp

調試VoIP IVR play錯誤。

ivri

調試VoIP IVRI錯誤。

ivrc

調試VoIP IVRC錯誤。

ct

調試VoIP呼叫控制錯誤。

R2

調試VoIP R2錯誤。

others

調試VoIP call 其他錯誤。

缺省

no debug all

命令模式

enable模式。

使用說明

使用這項功能可以檢查關於VoIP各子模塊的錯誤信息。

示例

Router>enable

Router#debug voip error h323

Router#

8.2.6   debug voip event

輸出VoIP事件內容消息。

debug voip error { h323 | dialsig | ras |gw | gk | asn1 | dp | vdata | ivrm | ivrp | ivri | ivrc | ct | R2 | others } [detail]

debug voip error { h323 | dialsig | ras |gw | gk | asn1 | dp | vdata | ivrm | ivrp | ivri | ivrc | ct | R2 | others } [detail]

參數

參數

參數說明

h323

調試VoIP H323事件。

dialsig

調試VoIP Dialsig事件。

ras

調試VoIP RAS事件。

gw

調試VoIP gateway事件。

gk

調試VoIP Gatekeeper事件。

asn1

調試VoIP ASN.1事件。

dp

調試VoIP data plane事件。

vdata

調試VoIP vdata事件。

ivrm

調試VoIP IVR main事件。

ivrp

調試VoIP IVR play事件。

ivri

調試VoIP IVRI事件。

ivrc

調試VoIP IVRC事件。

ct

調試VoIP呼叫控制事件。

R2

調試VoIP R2事件。

others

調試VoIP call 其他事件。

detail

調試VoIP事件的詳細內容。

缺省

no debug all

命令模式

enable模式。

使用說明

使用這項功能可以檢查關於VoIP各子模塊的事件信息。

示例

Router>enable

Router#debug voip event ras

2002-5-17 01:51:12 VOIP(RAS):

RasSendData: send msg length 85 to 172.16.20.115:1719

RASSendData: RRQ (seq# 356)

2002-5-17 01:51:12 VOIP(RAS):

RASRecvData: rcvd msg length 62 from 172.16.20.115:1719

2002-5-17 01:51:12 VOIP(RAS):

RASRecvData: RCF (seq# 356)  

8.2.7   debug voip packet

輸出VoIP事件內容消息。

debug voip error { q931 | h225 | h245 | rtp | rtcp | fax }

no debug voip error { q931 | h225 | h245 | rtp | rtcp | fax }

參數

參數

參數說明

q931

顯示VoIP Q.931報文內容。

h225

顯示VoIP H.225報文內容。

h245

顯示VoIP h245報文內容。

rtp

顯示VoIP RTP報文內容。

rtcp

顯示VoIP RTCP報文內容。

fax

顯示VoIP FAX報文內容。

缺省

no debug all

命令模式

enable模式。

使用說明

使用這項功能可以檢查關於VoIP各子模塊的事件信息。

示例

Router>enable

Router#debug voip packet q931

Router# 

8.3  語音管理其他命令

8.3.1   aline-dialpeer

按照dialpeer ID對配置過的dialpeer重新進行排序。

aline-dialpeer

參數

缺省

命令模式

全局配置模式。

使用說明

一般dialpeer是按照配置時間的順序排序的。爲了便於用戶管理,在dialpeer配置完畢後,可以使用此命令對dialpeer進行排序。此命令的操作不可回覆,在使用前必須確認可行。(撥號時,配置相同號碼的不同的dialpeer總是排列在前的被使用)

示例

router>enable

router#config

router_config#aline-dialpeer

This operation can't be restore, continue?[y/n]y

router_config#

8.3.2   clear h323-session

清除某次呼叫。

clear h323-session session_id

參數

參數

參數說明

session_id

呼叫的id。

缺省

在某次通話出現狀態混亂等錯誤而沒有響應或無法結束時,使用此命令強制結束一個呼叫。

命令模式

enable模式。

使用說明

示例

下面的例子是清除一個session ID爲0的通話:

router>enable

router#clear h323-session 0

router#

8.3.3   dial-peer terminator

配置撥號串結束匹配符。

dial-peer terminator char

no dail-peer terminator

參數

參數

參數說明

char

撥號串結束匹配符(0~9 # * a b c d)。

缺省

no dail-peer terminator

命令模式

全局配置模式

使用說明

用戶輸入配置命令後,結束匹配符存入,撥號採用結束符匹配方式。用戶撥號完畢輸入此終結符提示進行匹配。

用戶輸入no命令後,存儲的結束匹配符無效,撥號採用每次撥號匹配方式。

示例

下面的例子將’*’配置爲結束匹配符:

router>enable

router#config

router_config#dial-peer terminator *

router_config#

8.3.4   gw-accounting-h323

配置所有呼叫用戶的RADIUS計費。

gw-accounting-h323

no gw-accounting-h323

參數

缺省

no gw-accounting-h323

命令模式

全局配置模式

使用說明

控制所有的h323語音的計費開關,包括tel和voip計費的開啓需要配置這條命令。

示例

8.3.5   gw-authen-h323

配置所有一次撥號用戶的RADIUS認證。

gw-authen-h323

no gw-authen-h323

參數

缺省

命令模式

全局配置模式

使用說明

一次撥號認證開關,使用ivr一次認證需要配置這條命令。

示例

8.3.6   sense cptone

用來檢測跟FXO端口slot/port相連的PBX和外線的忙音、空號音、擁塞音、撥號音和回鈴音等10種信號音的頻率和通斷時間(單位爲10ms)。

sense cptone port [slot-num|port-num ]dial str tone_type { single | dual }

參數

參數

參數說明

port

需檢測的端口。

slot-num

需檢測的端口所在的槽號。

port-num

需檢測的端口號。

dial

用來觸發PBX或與PBX相連的局端交換機播放指定類型的信號音的號碼。

str

撥號串。

tone_type

檢測的信號音類型。 dial-tone-pbx dial-tone-ext alert-tone-pbx alert-tone-ext busy-tone-pbx busy-tone-ext empty-tone-pbx empty-tone-ext congestion-tone-pbx congestion-tone-ext

single

檢測單頻。

dual

檢測雙頻。

缺省

命令模式

全局配置模式

使用說明

輸出的兩個參數分別是本端口連接的交換機發送的信號音的頻率下限和上限以及第一週期的通時間和第一週期的斷時間。在使用完這條命令以後,可以使用cptone命令在該端口上給DSP配置檢測信號音的頻率和通斷時間,保證端口的正常工作。

示例

下面的例子是進行一次檢測:

router>enable

router#config

router_config#sense cptone port 1/0 dial 12345 dial-tone-pbx dual

High:450  Low:420

High:460  Low:430

High:460  Low:420

router_config#

8.3.7   voip asn-opt

使用優化的asn編碼。

voip asn-opt

no voip asn-opt

參數

缺省

no voip asn-opt

命令模式

全局配置模式

使用說明

作用是使用優化後的asn編碼函數,以縮短呼叫建立時間,提高H225報文和H245報文的編碼效率。no voip asn-opt命令取消設置。

示例

下面的例子是配置使用優化的asn編碼

router>enable

router#config

router_config#voip asn-opt

router_config#

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章