zoukankan      html  css  js  c++  java
  • 烽火2640路由器命令行手册-11-IP语音配置命令

    IP语音配置命令

    目  录

    第1章 配置拨号对命令... 1

    1.1 配置拨号对命令... 1

    1.1.1 dial-peer voice. 1

    1.1.2 application. 2

    1.1.3 codec. 3

    1.1.4 destination-pattern. 4

    1.1.5 dial-prefix. 5

    1.1.6 dtmf-relay. 6

    1.1.7 fax-protocol 7

    1.1.8 fxo-dial-mode. 7

    1.1.9 port 8

    1.1.10 req-qos. 9

    1.1.11 session target 10

    1.1.12 trim-prefix. 11

    1.1.13 alternative. 12

    1.1.14 shutdown(dial-peer) 13

    第2章 语音端口配置命令... 15

    2.1 语音端口配置命令... 15

    2.1.1 voice-port 15

    2.1.2 comfort-noise. 16

    2.1.3 connection-plar 16

    2.1.4 description. 17

    2.1.5 emsignal-in. 18

    2.1.6 emsignal-out 19

    2.1.7 input-gain. 20

    2.1.8 operation. 21

    2.1.9 output-gain. 22

    2.1.10 sig-gain. 22

    2.1.11 timing delay-start 23

    2.1.12 timing dialout-delay. 24

    2.1.13 timing dialout-pause. 25

    2.1.14 timing digit 26

    2.1.15 timing interdigit 26

    2.1.16 timing offhook-delay. 27

    2.1.17 timing wink-duration. 28

    2.1.18 timing wink-wait 29

    2.1.19 timeouts initial 30

    2.1.20 timeouts interdigit 31

    2.1.21 type. 31

    2.1.22 shutdown (voice-port) 32

    2.1.23 restrict 33

    2.1.24 KA. 34

    2.1.25 KD.. 34

    2.1.26 default-abcd. 35

    第3章 HDV控制器配置命令... 37

    3.1 HDV控制器配置命令... 37

    3.1.1 framing. 37

    3.1.2 clock. 37

    3.1.3 linecode. 38

    3.1.4 cable. 39

    3.1.5 ds0-group. 40

    3.1.6 HDV-controller 40

    3.1.7 companding-type. 41

    第4章 IVR配置命令... 43

    4.1 IVR 配置命令... 43

    4.1.1 ivr-cfg. 43

    4.1.2 account-rate. 43

    4.1.3 authen card. 44

    4.1.4 authen timeout 45

    4.1.5 dial dialing. 46

    4.1.6 dial timeout 47

    4.1.7 file play-start 47

    4.1.8 file record-start 48

    4.1.9 file record-again. 49

    4.1.10 file record-failed. 50

    4.1.11 file authen-user-start 50

    4.1.12 file authen-key-start 51

    4.1.13 file authen-failed. 52

    4.1.14 file dial-start 53

    4.1.15 file dial-failed. 53

    4.1.16 file interrupt-start 54

    4.1.17 file record-gather-name. 55

    4.1.18 ivr 56

    4.1.19 record key. 56

    4.1.20 record time. 57

    4.1.21 stop-key. 58

    第5章 cptone配置命令... 60

    5.1 cptone 配置命令... 60

    5.1.1 cptone. 60

    5.1.2 cptone-vty-cfg. 61

    5.1.3 dial-tone-pbx. 61

    5.1.4 alert-tone-pbx. 62

    5.1.5 busy-tone-pbx. 63

    5.1.6 empty-tone-pbx. 64

    5.1.7 dial-tone-ext 65

    5.1.8 alert-tone-ext 66

    5.1.9 busy-tone-ext 66

    5.1.10 empty-tone-ext 67

    第6章 网关配置命令... 69

    6.1 网关配置命令... 69

    6.1.1 gateway-cfg. 69

    6.1.2 gateway ipaddr 69

    6.1.3 gateway gkid. 70

    6.1.4 gateway h323id. 71

    6.1.5 gateway tech-prefix. 72

    6.1.6 shutdown (gateway) 72

    第7章 网守配置命令... 74

    7.1 网守配置命令... 74

    7.1.1 gatekeeper-cfg. 74

    7.1.2 zone local 74

    7.1.3 zone remote. 75

    7.1.4 zone prefix. 76

    7.1.5 zone subnet 77

    7.1.6 alias. 78

    7.1.7 gw-type-prefix. 79

    7.1.8 shutdown (gatekeeper) 80

    第8章 语音管理命令... 81

    8.1 show命令... 81

    8.1.1 show voip. 81

    8.1.2 show voip r2. 81

    8.1.3 show voip dial-peer 83

    8.1.4 show voip voice-port 84

    8.1.5 show voip voice-dsp. 85

    8.1.6 show voip voice-regs. 86

    8.1.7 show voip cptone. 87

    8.1.8 show voip ivr 88

    8.1.9 show voip h323. 89

    8.1.10 show voip data. 89

    8.1.11 show voip audio. 90

    8.1.12 show gatekeeper endpoints. 91

    8.1.13 show gatekeeper gw-type-prefix. 92

    8.1.14 show gatekeeper status. 92

    8.1.15 show gatekeeper zone. 93

    8.2 debug命令... 94

    8.2.1 debug vpm dsp. 94

    8.2.2 debug vpm error 95

    8.2.3 debug vpm port 96

    8.2.4 debug vpm signal 97

    8.2.5 debug voip error 97

    8.2.6 debug voip event 98

    8.2.7 debug voip packet 100

    8.3 语音管理其他命令... 101

    8.3.1 aline-dialpeer 101

    8.3.2 clear h323-session. 101

    8.3.3 dial-peer terminator 102

    8.3.4 gw-accounting-h323. 103

    8.3.5 gw-authen-h323. 104

    8.3.6 sense cptone. 104

    8.3.7 voip asn-opt 106

     

    第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 152@rnd.com

    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#

  • 相关阅读:
    Java之IO流
    Servlet中Session的用法
    Servlet中Cookie的用法
    HTML的表单元素和input元素
    Servlet第一个实例之用户登录网址
    Servlet的生命周期和三种实现方式
    写一下近期的计划(工作)
    RxJava的基础知识
    actionbar、toolbar、menu之间的关系
    ButterKnife的基础知识
  • 原文地址:https://www.cnblogs.com/landv/p/10015862.html
Copyright © 2011-2022 走看看