(voip configuration command)1

Upload: wankhama

Post on 02-Apr-2018

235 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 (VOIP Configuration Command)1

    1/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform Table of Contents

    i

    Table of Contents

    Chapter 1 VoIP Configuration Commands......... ........ ......... ........ ......... ......... ........ ......... ...... 1-1

    1.1 area.........................................................................................................................1-2

    1.2 cancel-truncate......................................................................................................... 1-2

    1.3 codec.......................................................................................................................1-3

    1.4 comfort-noise............................................................................................................ 1-4

    1.5 connection................................................................................................................1-5

    1.6 description................................................................................................................ 1-6

    1.7 destination-pattern ....................................................................................................1-6

    1.8 dial-peer terminator................................................................................................... 1-7

    1.9 dial-peer voice.......................................................................................................... 1-8

    1.10 download................................................................................................................ 1-9

    1.11 echo-cancel.......................................................................................................... 1-10

    1.12 input gain..............................................................................................................1-11

    1.13 ip precedence....................................................................................................... 1-11

    1.14 num-exp............................................................................................................... 1-12

    1.15 operation .............................................................................................................. 1-13

    1.16 output attenuation .................................................................................................1-14

    1.17 port ......................................................................................................................1-14

    1.18 prefix.................................................................................................................... 1-15

    1.19 pre-dial-delay........................................................................................................ 1-16

    1.20 session target ....................................................................................................... 1-17

    1.21 shutdown dial-peer ..........................................................................................1-17

    1.22 shutdown voice-port ........................................................................................ 1-18

    1.23 signal ................................................................................................................... 1-18

    1.24 tech-prefix ............................................................................................................ 1-19

    1.25 timeouts ............................................................................................................... 1-20

    1.26 timing...................................................................................................................1-21

    1.27 type...................................................................................................................... 1-22

    1.28 vad.......................................................................................................................1-23

    1.29 voice-port ............................................................................................................. 1-24

    1.30 voip disable-watchdog...........................................................................................1-24

    1.31 voip enable-watchdog........... ........ ......... ........ ......... ........ ......... ......... ........ ......... .... 1-25

    1.32 voip match-policy ..................................................................................................1-25

    1.33 voip reset.............................................................................................................. 1-26

    1.34 show call-history voice-port..... ......... ......... ........ ......... ........ ......... ........ ......... ........ .. 1-27

    1.35 show kht statistics................................................................................................. 1-28

    1.36 show rcv ccb......................................................................................................... 1-28

  • 7/27/2019 (VOIP Configuration Command)1

    2/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform Table of Contents

    ii

    1.37 show rcv statistic ..................................................................................................1-30

    1.38 show voice-port... ........ ......... ........ ......... ........ ......... ........ ......... ......... ........ ......... .... 1-31

    1.39 show vpp.............................................................................................................. 1-31

    1.40 debug h225 .......................................................................................................... 1-32

    1.41 debug h245 .......................................................................................................... 1-33

    1.42 debug kht ............................................................................................................. 1-33

    1.43 debug rcv............................................................................................................. 1-33

    1.44 debug vpm............................................................................................................ 1-34

    1.45 debug vpp ............................................................................................................ 1-34

    Chapter 2 IP Fax Configuration Commands...... ........ ......... ........ ......... ......... ........ ......... ...... 2-1

    2.1 fax level.................................................................................................................... 2-1

    2.2 fax local-train ............................................................................................................ 2-2

    2.3 fax protocol............................................................................................................... 2-2

    2.4 fax rate..................................................................................................................... 2-3

    2.5 fax support-mode...................................................................................................... 2-4

    2.6 fax train-mode........................................................................................................... 2-5

    2.7 fax-relay ................................................................................................................... 2-5

    2.8 debug ipfax............................................................................................................... 2-6

    2.9 debug vpm fax .......................................................................................................... 2-7

    Chapter 3 E1 Voice Configuration Commands....... ......... ......... ........ ......... ........ ......... ........ . 3-1

    3.1 caller-digits............................................................................................................... 3-1

    3.2 cas-custom............................................................................................................... 3-2

    3.3 channel-group timeslots ............................................................................................ 3-3

    3.4 clock........................................................................................................................ 3-4

    3.5 debounce-time..........................................................................................................3-5

    3.6 ds0-group timeslots type ........................................................................................... 3-5

    3.7 incoming called-number............................................................................................ 3-7

    3.8 interface serial .......................................................................................................... 3-8

    3.9 invert-abcd............................................................................................................... 3-9

    3.10 ka ........................................................................................................................ 3-10

    3.11 kd ........................................................................................................................ 3-11

    3.12 mfc....................................................................................................................... 3-11

    3.13 non-linear............................................................................................................. 3-12

    3.14 port ......................................................................................................................3-13

    3.15 pri-group............................................................................................................... 3-14

    3.16 seizure-ack-time.................................................................................................... 3-14

    3.17 select-mode.......................................................................................................... 3-15

    3.18 timeouts ............................................................................................................... 3-16

    3.19 trunk-direction....................................................................................................... 3-17

    3.20 ts ......................................................................................................................... 3-19

    3.21 unused-abcd......................................................................................................... 3-20

    3.22 voice-port ............................................................................................................. 3-20

  • 7/27/2019 (VOIP Configuration Command)1

    3/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform Table of Contents

    iii

    3.23 show controller...................................................................................................... 3-21

    3.24 show isdn status ...................................................................................................3-22

    3.25 show r2 call-statistics............................................................................................ 3-22

    3.26 show rcv statistic r2............................................................................................... 3-23

    3.27 show voice-port... ........ ......... ........ ......... ........ ......... ........ ......... ......... ........ ......... .... 3-24

    3.28 show voip.............................................................................................................3-25

    3.29 debug r2............................................................................................................... 3-26

    3.30 debug rcv r2 ......................................................................................................... 3-26

    3.31 debug vpp r2......................................................................................................... 3-27

    Chapter 4 GK Client Configuration Commands............... ......... ........ ......... ........ ......... ........ . 4-1

    4.1 gateway ................................................................................................................... 4-1

    4.2 h323-gateway voip h323-id......... ........ ......... ......... ........ ......... ........ ......... ........ ......... .. 4-2

    4.3 h323-gateway voip id ................................................................................................ 4-2

    4.4 h323-gateway voip interface.......... ........ ......... ........ ......... ......... ........ ......... ........ ........ 4-3

    4.5 h323-gateway voip support-mode ......... ........ ......... ......... ........ ......... ........ ......... ........ . 4-4

    4.6 h323-gateway voip tech-prefix ........ ......... ........ ......... ........ ......... ......... ........ ......... ...... 4-5

    Chapter 5 IPHC Configuration Commands...... ......... ........ ......... ......... ........ ......... ........ ........ 5-1

    5.1 clear ip rtp header-compression.......... ......... ......... ........ ......... ........ ......... ........ ......... .. 5-1

    5.2 clear ip tcp header-compression ................................................................................5-2

    5.3 ip rtp compression-connections....... ......... ........ ......... ........ ......... ......... ........ ......... ...... 5-2

    5.4 ip rtp header-compression......................................................................................... 5-3

    5.5 ip rtp header-compression cisco-format ........ ......... ........ ......... ........ ......... ........ ......... .. 5-4

    5.6 ip rtp header-compression delete-udpchk ........ ........ ......... ......... ........ ......... ........ ........ 5-4

    5.7 ip tcp compression-connections ......... ......... ........ ......... ........ ......... ........ ......... ........ .... 5-5

    5.8 show ip rtp header-compression..............................................................................5-5

    5.9 show ip tcp header-compression........ ......... ........ ......... ........ ......... ........ ......... ........ .... 5-6

    5.10 debug ip rtp header-compression........................................................................... 5-7

    5.11 debug ip tcp header-compression .......................................................................... 5-7

  • 7/27/2019 (VOIP Configuration Command)1

    4/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-1

    Chapter 1 VoIP Configuration Commands

    VoIP Configuration Commands include:

    l area

    l cancel-truncatel codecl comfort-noise

    l connectionl descriptionl destination-pattern

    l dial-peer terminatorl dial-peer voicel download

    l echo-cancell input gainl ip precedence

    l num-expl operationl output attenuation

    l portl prefixl pre-dial-delay

    l session target

    l shutdown dial-peer

    l shutdown voice-port

    l signall tech-prefixl timeouts

    l timingl typel vad

    l voice-portl voip disable-watchdogl voip enable-watchdog

    l voip match-policyl voip resetl show call-history voice-port

    l show kht statisticsl show rcv ccbl show rcv statistic

    l show voice-portl show vppl debug h225

    l debug h245l debug khtl debug rcv

    l debug vpml debug vpp

  • 7/27/2019 (VOIP Configuration Command)1

    5/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-2

    1.1 area

    To set busy tone type detection for ports, use the area command. To return to the

    default, use the no form of this command.

    area { north-america | custom | europe }

    no area

    Syntax Description

    north-america The busy tone type of the switch connected to this interface is of North

    America standard.

    custom The busy tone type of the switch connected to this interface is defined by the

    users.

    europe The busy tone type of the switch connected to this interface is of Europestandard.

    Default

    By default, europe busy tone type standard is set.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    This command is used only for 2-wire loop trunk interface FXO, and it can only performconfiguration to the first port on the voice interface card. If successful, the configurationwill be effective for all the ports of the voice interface card.

    When this interface is connected to a common user line of a program-controlled switch,

    if the user on the switch side hooks on first, only by detecting the busy tone can the

    router know the user on-hooking operation. Since different switches execute differentprompt tone schemes, there exist different frequency spectrum characteristics. Thiscommand is used to set the frequency spectrum characteristic used by the router todetect the existence of the busy tone.

    Example

    ! The following example uses north-america standard to detect the existence of thebusy tone on port 0.

    Quidway(config-voice-port0)# area north-america

    1.2 cancel-truncate

    To cancel the truncating of a called number, use the cancel-truncate command. To

    return to the default, so as to truncate a called number, use the no form of thiscommand.

    cancel-truncate

    no cancel-truncate

  • 7/27/2019 (VOIP Configuration Command)1

    6/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-3

    Default

    By default, truncate a called number.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    In common cases, if the structure of POTS dial-peer type is defined on the FXO, E&M

    or E1VI interfaces, and the destination-pattern is configured with a wild-card .,then

    when the router receives an incoming call, it will truncate and delete the fixed numberbefore the wild-card by default, and only transmit the number to which the wild-cardcorresponds from this interface.

    Whereas if the function of cancel-truncate is configured, a called number will not be

    truncated, and all the numbers received will be transmitted from the trunk interface. Forinstance, a POTS dial-peer structure is configured on the FXO interface, thedestination-pattern is configured as 9 . (the four dots as the wild-card), then when

    the router receives an incoming call whose number is 91234, the router will delete the 9on the FXO interface by default, and transmit only the 1234 through the FXO interface;ifcancel-truncate is configured, the router will transmit the whole number (91234),

    without deleting the 9. This function enables routers to flexibly process numbersaccording to different switches at the remote end.

    Example

    ! The following example configures POTS dial-peer, the number before the wild-card is

    9, and transmits all the received numbers from the FXO interface.

    Quidway(config-peer-pots1)# destination-pattern 9....

    Quidway(config-peer-pots1)# cancel-truncate

    Related Command

    destination-pattern

    1.3 codec

    To set the voice codec mode according to priority level, use the codec demand. Toreturn to the default, use the no form of this command.

    codec { 1st-priority-level | 2nd-priority-level | 3rd-priority-level | 4th-priority-level }

    { g711alaw | g711ulaw | g723r53 | g723r63 | g729r8 }

    no codec { 1st-priority-level | 2nd-priority-level | 3rd-priority-level | 4th-priority-

    level }

    Syntax Description

    1st-priority-level Indicate the first selected voice codec method.

    2nd-priority-level Indicate the second selected voice codec method.

    3rd-priority-level Indicate the third selected voice codec method.

    4th-priority-level Indicate the fourth selected voice codec method.

  • 7/27/2019 (VOIP Configuration Command)1

    7/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-4

    g711alaw Indicate the A-law coding mode of G.711 (defining the pulse code

    modulation technology), the bandwidth is 64kbit/s, usually adopted by Europe.

    g711ulaw Indicate the -law coding mode of G.711, the bandwidth is 64kbit/s, usually

    adopted by countries of the North America and Japan, etc.g723r53 Indicate G.723.1 Annex A (dual-speed voice coding of multi-media

    communication, based on multi-pulse, multi-level quantization and code excited linearprediction technology) coding mode, the bandwidth is 5.3kbit/s.

    g723r63 Indicate G.723.1 Annex A coding mode, the bandwidth is 6.3kbit/s.

    g729r8 Indicate G.729 (the voice coding technology using conjugate algebraic code

    excited linear prediction) coding mode, the bandwidth is 8kbit/s.

    Default

    By default, g729r8 coding mode is set.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Use codec command to specify voice codec modes of different priority levels.

    g711alaw and g711ulaw coding provide high-quality voice transmission, but occupy

    greater bandwidth.

    g723r53 and g723r63 coding provide silence suppression technology and comfort

    noise, the relatively higher speed output is based on multi-pulse multi-quantitative leveltechnology and provides relatively higher voice quality to certain extent, and therelatively lower speed output is based on the code excited linear prediction technologyand provides greater flexibility for application.

    The voice quality provided by the g729r8 coding is similar to the ADPCM of 32kbit/s,

    having the quality of a toll, and also featuring low bandwidth, lesser event delay andmedium processing complexity, hence it has a wide field of application.

    Only when there is an intersection (a codec mode recognized by both parties) in the

    voice codec modes owned by the two communication parties can the two partiesestablish normal communication with each other. If there is no consistency in the codecmodes set for the equipment at the two ends connected to each other, or there is nocommon codec method, the calling will fail.

    Example

    ! Then following example configures to select g723r53 codec method first, then to

    select the g729r8 codec method.

    Quidway(config-peer-voip2)# codec 1st-priority-level g723r53Quidway(config-peer-voip2)# codec 2nd-priority-level g729r8

    1.4 comfort-noise

    To enable comfort noise setting, use the comfort-noise command. To disable the

    comfort noise function, use the no form of this command.

  • 7/27/2019 (VOIP Configuration Command)1

    8/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-5

    comfort-noise

    no comfort-noise

    Default

    By default, comfort noise setting is enabled.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    The command comfort-noise is used to enable comfort noise setting. When the

    silence detecting function on a corresponding voice dial-peer is enabled, somebackground noise can be generated by using the command to fill the toneless intervals

    during a conversation. If no comfort noise is generated, the toneless intervals during aconversation will cause the interlocutors uncomfortable.

    Example

    ! The following example disables comfort noise function on voice port 1.

    Quidway(config-voice-port1)# no comfort-noise

    Related Command

    voice-port vad

    1.5 connection

    To specify a connection mode for the voice port and the E.164 telephone number of the

    destination end, use the connection command. To disable the specified connectionmode, use the no form of this command.

    connectionplarstring

    no connectionplar

    Syntax Description

    plar Indicate to select PLAR (Private Line Auto Ringdown) connection mode.

    string The E.164 telephone number of the destination end, and it may include thewild-card ..

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    The connection command is used to specify aconnection mode for interface. When

    parameterplaris used, the stringconfigured will serve as the called number of all the

    calls incoming to this voice port, i.e., after off-hook, the user need not perform anyoperation and the system will dial out the string as the called number automatically.

  • 7/27/2019 (VOIP Configuration Command)1

    9/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-6

    If the connection command is not configured, when the interface enters an off-hook

    status, the standard session application program will generate a dial tone until enoughnumbers are collected and the call process is completed.

    Example

    ! The following example sets an automatic dialing to 5559262 after off-hook on the

    voice port 1.

    Quidway(config-voice-port1)# connection plar 5559262

    1.6 description

    To configure an interface description character string, use the description command.To delete the interface description of character string, use the no form of this command.

    descriptionstring

    no description

    Syntax Description

    string Interface description character string, and its value range is 1 to 255 characters.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    With the description command, make a description of the voice-port connection. Thisoperation will not have any influence on the interface running, only when the showcommand is being executed will the configuration information be seen.

    Example

    ! The following example identifies voice port 1 as connected to laboratory lab_1.

    Quidway(config-voice-port1)# description lab_1

    1.7 destination-pattern

    To configure the destination mode of a dial-peer, namely, to use a prefix or a wholeE.164 number, use the destination-pattern command. To cancel this setting, use theno form of this command.

    destination-pattern [ + ] string[ T ]

    no destination-pattern

    Syntax Description

    + Used as the first character to indicate that this is a standard E.164 number.

    T Control character, indicating that the dial string is a string whose length is variable(used in Europe).

  • 7/27/2019 (VOIP Configuration Command)1

    10/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-7

    string Indicate E.164 or digits of a private telephone number. The effective input is:

    l 0 - 9, # , * .l , , indicating a pause between digits.l . , used as a wild-card, indicating that it can match any input digit.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Use destination-pattern command to define an E.164 number for a dial peer, so as to

    match the dial to this dial-peer. If successful, the call will be completed by the dial-peer.When the command is used to set the E.164 telephone number, and when the router

    receives a call request, it will strip off the mode string according to the telephonenumber carried in the message. If a prefix is configured, the prefix will be added to thetelephone number carried. If all the modes are successfully matched, the user will hear

    a ring back tone.

    & Note:

    VRP software does not verify the validity of an E.164 number.

    Example

    ! The following example sets 5557922 as the telephone number of dial-peer 10.

    Quidway(config-peer-pots10)# destination-pattern +5557922

    ! The following example sets 66 . as the destination mode of dial-peer 20.

    Quidway(config-peer-pots20)# destination-pattern 66....

    Related Command

    prefix port session target timeouts

    1.8 dial-peer terminator

    To set a special character string as the terminator of a telephone number whose length

    is variable, use the dial-peer terminatorcommand. To cancel the existing setting, usethe no form of this command.

    dial-peerterminatorcharacter

    no dial-peer terminator

    Syntax Description

    character Telephone number terminator. The valid characters are: 0 9, # , * .

    Command Mode

    Global configuration mode

  • 7/27/2019 (VOIP Configuration Command)1

    11/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-8

    Usage Guideline

    In areas where telephone numbers with variable are used, a character can be specified

    as a terminator in order to avoid that the system cannot dial until the dial is timeout.

    Example

    ! The following example configures using # as a terminator.

    Quidway(config)# dial-peer terminator #

    Related Command

    destination-pattern timeouts

    1.9 dial-peer voice

    To set a voice dial-peer and enter its configuration mode (at the same time specify the

    working mode related to voice), use the dial-peer voice command. To delete anexisting voice dial-peer, use the no form of this command.

    dial-peer voicenumber{ voip | pots }

    no dial-peer voice number

    Syntax Description

    number Identify a voice dial-peer, The value range is from 1 to 2147483647.

    voip Key character, indicating that this interface is a network interface.

    pots Key character, indicating that this interface is an often used telephone interface.

    Command Mode

    Global configuration mode

    Usage Guideline

    In a global configuration mode, use the dial-peer voice command to entera dial-peer

    configuration mode, and use exit to return to the global configuration mode.

    & Note:

    When configuring VoIP and POTS dial-peers, different numbers should be used to identify.

    Example

    ! The following example enters the dial-peer configuration mode to configure a POTS

    dial-peer whose identification is 10.

    Quidway(config)# dial-peer voice 10 pots

  • 7/27/2019 (VOIP Configuration Command)1

    12/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-9

    Related Command

    voice-port

    1.10 download

    To download the codec program of specified protocol to the voice processing unit, use

    the download command.

    download { g723 | g729 } board-num

    Syntax Description

    g723 Download the G.723.1 codec protocol program to the voice interface card.

    g729 Download the G.729.1 codec protocol program to the voice interface card.

    board-num Serial numbers of the voice interface cards to which the program isdownloaded. The value range is from 0 to 17318.

    Default

    By default, select to download g729 codec protocol.

    Command Mode

    Global configuration mode

    Usage Guideline

    In the application note that the program running on the same voice interface card can

    only simultaneously support G.711 and G.723.1, or G.711 and G.729, but cannotsimultaneously support G.729 and G.723.1 protocols.

    As a called party, the codec protocol supported on the voice card should be in

    consistency with the codec type set in the dial-peer of the POTS type that had been

    established relation with the card port; and as a caller, the codec protocol on the cardshould be in consistency with codec type set in the dial-peer of the VolP type usedduring the outgoing calling from the POTS port on the card. Otherwise it will lead to

    unidirectional conversation or even no conversation. When changing the codecprotocol program on the voice card, be sure to check the codec protocol setting of thedial-peer related to the port on the voice card.

    Board 0

    Board 2

    Board 1

    Board 3

    Figure VC-1-1 Count of voice interface card serial number

    Figure VC-1-1 is a back view of a router, on which 4 voice interface cards are installed.

    The count of the card position serial number is performed from zero, from the right tothe left, from down to up, 1 is added in order.

  • 7/27/2019 (VOIP Configuration Command)1

    13/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-10

    Example

    ! The following example downloads the G.723.1 codec protocol program to the No.1

    voice processing unit.

    Quidway(config)# download g723 1

    1.11 echo-cancel

    To configure echo-cancel function parameters, use the echo-cancel command. Tocancel the echo-cancel function parameters setting, use the no form of this command.

    echo-cancel { enable | coverage coverage-time }

    no echo-cancel { enable | coverage }

    Syntax Description

    enable Indicate to enable an echo-cancel function.

    coverage coverage-time Adjust the length of an echo-cancel sampling time. The

    values for the coverage-time are 16, 24 and 32 in millisecond (ms).

    Default

    By default, the echo-cancel function is enabled and the coverage-time is 16 ms.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    Use the echo-cancel coverage command, if the voice originated from a certain

    interface is fed back within a specified time, this part of voice (echo) will be cancelled.

    If a too large time value is set, the converge time of the echo canceling on the network

    will become longer, so when the connection has just been established, the user mayhear the echo; and if the time value is set as too small, the user may also hear part ofthe echo, because the relatively longer echo has not been completely cancelled.

    There are no echo and echo-cancel on the IP side.

    & Note:

    Only when being used in combination with the echo-cancel coverage command will

    effect the echo-cancel enable command.

    Example

    ! The following example sets the echo-cancel sampling time as 24 ms on voice port 1.

    Quidway(config-voice-port1)# echo-cancel enable

    Quidway(config-voice-port1)# echo-cancel coverage 24

  • 7/27/2019 (VOIP Configuration Command)1

    14/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-11

    Related Command

    voice-port non-linear

    1.12 input gain

    To configure the gain value at the voice interface input end, use the input gain

    command. To return to the default, use the no form of this command.

    input gain value

    no input gain

    Syntax Description

    value Voice input gain ranging from -14.0 to 14.0 in dB with one digit after the decimal

    point.

    Default

    By default, the value is 0 dB.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    When the voice signal on the line attenuates to a relatively great extent, this command

    can be used to appropriately enhance the voice input gain.

    Example

    ! The following example configures the voice input gain as 3dB on voice port 1.

    Quidway(config-voice-port1)# input gain 3

    Related Command

    output attenuation non-linear voice-port

    1.13 ip precedenceTo configure the IP data package priority level, use the ip precedence command. To

    return to the default, use the no form of this command.

    ip precedencepriority-number

    no ip precedence

    Syntax Description

    priority-number Indicate the IP data package priority level, whose value is the integerbetween 0 and 7.

  • 7/27/2019 (VOIP Configuration Command)1

    15/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-12

    Default

    By default, priority-numberis 0.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Specify the voice flow IP data package priority level related to this dial-peer. In the

    command, when the value ofpriority-number is between 1 and 5, it indicates that the

    configuration is set for the IP data flow, and values 6 and 7 are used for the update ofthe network and backbone routers. For instance, in order to ensure the voice flowrelated to the dial-peer 103 which is of the VolP type, the IP data package priority level

    is defined as 5, then when an IP call is related to this dial-peer 103, the TOS field of theIP header of all the data packages transmitted to the IP network through this dial-peer

    are set as 5. When the network receives these packages that have been set with arecognized priority levels, these packages will be processed before those packageswith relatively lower priority levels..

    Example

    ! The following example configures the IP data package priority level as 5 for the VoIP

    dial-peer 103.

    Quidway(config-peer-voip103)# ip precedence 5

    Related Command

    dial-peer voice

    1.14 num-exp

    To define how to expand an abbreviated number into a whole number or a destination

    mode, use the num-exp command. To delete the existing definition, use the no form ofthis command.

    num-expextension-numberexpanded-number

    no num-expextension-number

    Syntax Description

    extension-number Abbreviated number of the dial-peer definition, a character string

    consisting of 32 digits from 0 to 9.

    expanded-number Corresponding telephone number or destination mode after an

    abbreviated number is expanded.

    Command Mode

    Global configuration mode

  • 7/27/2019 (VOIP Configuration Command)1

    16/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-13

    Usage Guideline

    Use a dot . as the wild-card representing a digit. Every digit to be represented needs a

    wild-card, so if three digits are required to be replaced with wild-cards in an abbreviated

    number, three dots will be used.

    Example

    ! The following example expands 2118 to 8008302118.

    Quidway(config)# num-exp 2118 8008302118

    ! The following example expands with wild-cards.

    Quidway(config)# num-exp 2... 8008302...

    1.15 operation

    To select a wire scheme for the E&M interface, use the operation command. To deletean existing wire selection scheme, use the no form of this command.

    operation { 2-wire | 4-wire }

    no operation { 2-wire | 4-wire }

    Syntax Description

    2-wire Indicate to select a 2-wire E&M wire scheme.

    4-wire Indicate to select a 4-wire E&M wire scheme.

    Default

    By default, select a 4-wire E&M wire scheme.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    When E&M is used in PBX communication, its voice uses two or four wires, plus two orfour signaling wires. So, a 4-wire E&M actually has at least six wires.

    This command is used for the wire match between the voice router and remote end

    equipment connected with it. It has influence on voice transmission only and has

    nothing to do with signaling. If a wrong wire scheme is configured, the user will get aunidirectional voice service only.

    This command is not used to the FXS and FXO interfaces, because these both are 2-

    wire interfaces.

    Example

    ! The following example sets that the E&M interface selects a 4-wire wire scheme.

    Quidway(config-voice-port1)# operation 4-wire

  • 7/27/2019 (VOIP Configuration Command)1

    17/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-14

    1.16 output attenuation

    To configure the voice interface output end attenuation value, use the output

    attenuation command. To return to the default, use the no form of this command.

    output attenuation value

    no output attenuation

    Syntax Description

    value Voice output attenuation ranging -14.0 to 14.0 in dB with one digit after the

    decimal point.

    Default

    By default, the value is 0 dB.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    When a relatively small voice signal power is needed on the output line, this command

    can be used to properly increase the voice output attenuation value to adapt to theoutput line signal requirement.

    Example

    ! The following example configures the voice output attenuation value as 3dB on voiceport 1

    Quidway(config-voice-port1)# output attenuation 3

    Related Command

    input gain non-linear voice-port

    1.17 port

    To associate the dial-peer with a specified voice interface, use the port command. Todelete this association, use the no form of this command.

    portport-number

    no port

    Syntax Description

    port-number The number of a voice port.

    Command Mode

    Dial-peer configuration mode

  • 7/27/2019 (VOIP Configuration Command)1

    18/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-15

    Usage Guideline

    Used only for POTS dial-peers.

    Board 1

    Board 3

    Board

    Board

    Port0 Port1Port2 Port3 Port4 Port5Figure VC-1-2 Count of voice interface card port number

    Figure VC-1-2 shows the back view of a router, on which four voice interface cards are

    installed. On No.0 card there are two voice ports, while there are four voice ports on the

    other three cards. The port numbers are set according to the card sequence from theleft to the right, and add 1 in order starting from 0.

    Example

    ! The following example associates dial-peer 10 and port 1.

    Quidway(config-peer-pots10)# port 1

    1.18 prefix

    To set the prefix of the telephone number dialed by the dial-peer, use the prefix

    command. To delete the prefix of the telephone number dialed by the dial-peer, use theno form of this command.

    prefixstring

    no prefix

    Syntax Description

    string Prefix code. For it, digits from 0 to 9 and the comma , serving as a time delay,

    and a character string within 32 characters can be selected. A comma indicates a timedelay of 500 ms, and it is up to the configuration of private branch exchange (PBX)connected by the router whether to transmit a second dial tone.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    When a router with which a voice function is configured receives a voice call, it makes a

    comparison between the number configured in the destination pattern of its own POTS

    dial-peer and the number received, and selects one POTS dial-peer to continue the callprocessing.

    The router will remove the string of the called number that matches the destination

    pattern starting from the left. If a prefix is configured, the prefix will beadded before the

  • 7/27/2019 (VOIP Configuration Command)1

    19/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-16

    remaining number string, and the router will make a call according to the new stringgenerated.

    Suppose the called number is 0102222, the 010 on the left will be deleted because of

    matching with the destination-pattern. The remaining 2222 will be added with a prefix0 and will be dialed out again, that is, the number called by the router is 02222, andbetween the 0 and the first 2 there is a time delay of 500 ms.

    This command is used only for the POTS dial-peer configuration.

    Example

    ! The following example uses 0 as a prefix, and pauses for 500 ms after dialing 0 .

    Quidway(config-peer-pots10)# prefix 0,

    Related Command

    destination-pattern

    1.19 pre-dial-delay

    To configure dial delay time, use the pre-dial-delay command. To return to the default,

    use the no form of this command.

    pre-dial-delayseconds

    no pre-dial-delay

    Syntax Description

    seconds Dial delay time. The value range is 1-10 seconds.

    Default

    By default the dial delay time is 1 second.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    This command is used to set the time interval between the off-hook of a switch and the

    transmission of DTMF (dual-tone multifrequency) number to the switch.

    Example

    ! The following example sets the dial delay time as 2 seconds.

    Quidway(config-voice-port1)# pre-dial-delay 2

  • 7/27/2019 (VOIP Configuration Command)1

    20/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-17

    1.20 session target

    To configure a VolP dial-peer session destination (the called IP address), use the

    session target command. To delete the dial-peer session destination that has beenconfigured, use the no form of this command.

    session target { ipv4: ip-address | ras }

    no session target

    Syntax Description

    ipv4:ip-address Indicate a VoIP dial-peer session destination, i.e. the called IP

    address.

    ras Use RAS protocol to complete the mapping operation between the telephone

    number and the IP address. It is used only in the networking configuration that uses GK

    (gatekeeper) to provide voice IP services.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    This command is used to configure the network address for the VolP dial-peer.

    Example

    ! The following example configures the destination IP address corresponding to thecalled 12345 as 10.1.1.2.

    Quidway(config-peer-voip10)# destination-pattern 12345

    Quidway(config-peer-voip10)# session target ipv4:10.1.1.2

    Related Command

    destination-pattern

    1.21 shutdown dial-peer

    To set to change the management status of specified dial-peer from UP to DOWN, use

    the shutdown command. To change the dial-peer management status from DOWN toUP, use the no form of this command.

    shutdown

    no shutdown

    Default

    By default the dial-peer management status is DOWN.

  • 7/27/2019 (VOIP Configuration Command)1

    21/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-18

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Running command shutdown will cause the dial-peer unable to make calls.

    Example

    ! The following example changes the interface status of dial-peer 10 to DOWN.

    Quidway(config-peer-pots10)# shutdown

    1.22 shutdown voice-port

    To enable a voice interface off-line, use the shutdown command. To make the voiceinterface restore its services, use the no form of this command.

    shutdown

    no shutdown

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    If command shutdown is entered, all the POTS ports on the voice interface card will bedisabled, and no voice can be heard from the telephone connected, whereas usingcommand no shutdown will enable all the ports on the voice interface card.

    Example

    ! The following example enables voice-port 1 of the voice interface off-line.

    Quidway(config-voice-port1)# shutdown

    1.23 signal

    To set a voice interface start mode, use the signal command. To delete the set voice

    interface start mode, use the no form of this command.

    signal { loopstart | groundstart | wink-start | immediate | delay-dial }

    no signal { loopstart | groundstart | wink-start | immediate | delay-dial }

    Syntax Description

    loopstart Loop start, used for FXS and FXO interfaces. If loop start is set, only one of

    the two connected parties can hang up.

    groundstart Ground start, used for FXS and FXO interfaces. If ground start is set, then

    both the connected parties can initiate calls and hang up.

  • 7/27/2019 (VOIP Configuration Command)1

    22/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-19

    wink-start Wink start mode. The caller end hooks off to seize the line through line E,

    and it has to wait for a wink signal from the remote end before sending out the callednumber.

    immediate Immediate start mode. The caller end hooks off to seize the line through

    line E and sends the called number. The prerequisite for using the immediate startmode is: The equipment at the remote end should surveil the dial signal immediatelyafter identifying the off-hook signal.

    delay-dial Delay start mode. The caller end sends an off-hook signal and, after a while,

    detects the called end status. If the called is in an on-hook status, the caller end willsend the called number; but if the called is in an off-hook status, then the caller will keepon waiting until the called hooks on, and the caller end will send the called number.

    The last three key words are used to E&M interfaces.

    Default

    By default, FXS and FXO interfaces select the loopstart start mode, and E&Minterfaces select the immediate start mode.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    The start mode used for an E&M interface should be in consistency with the PBX

    connected with it.

    If the E&M interface is configured with the immediate start mode, some PBXs may lose

    initial digital signals. In this case, please turn to use the delay-dial start mode.

    Example

    ! The following example configures the groundstart mode

    Quidway(config-voice-port1)# signal groundstart

    Related Command

    timing

    1.24 tech-prefix

    To configure the H.323 gateway technical prefix, use the tech-prefix command. Todelete a specified technical prefix, use the no form of this command.

    tech-prefix string

    no tech-prefix

    Syntax Description

    string Indicate the technical prefix. The value range is the integer between 0 and 9,

    which can be separated by , and # .

  • 7/27/2019 (VOIP Configuration Command)1

    23/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-20

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    To set the H.323 technical prefix in the VolP dial-peer configuration mode is mainly to

    facilitate the GK Server to identify the types of dial-peers. An agreement on the relatedtypes is reached beforehand between the VolP dial-peer and the GK Server, e.g.technical prefix 1# represents a voice dial-peer, prefix 2# represents a video dial-peer,

    etc. When a normal communication is going on between the VolP dial-peer and the GKServer, the GK judges the dial-peer type according to the technical prefix informationreceived.

    Example

    ! The following example configures VoIP dial-peer 101 with a technical prefix 6#.

    Quidway(config-peer-voip101)# tech-prefix 6#

    Related Command

    destination-pattern dial-peer voice

    1.25 timeouts

    To configure dial time interval corresponding to various voice ports, use the timeouts

    command. To return to the default, use the no form of this command.

    timeouts { call-disconnect | initial | interdigit } seconds

    no timeouts { call-disconnect | initial | interdigit }

    Syntax Description

    call-disconnect seconds The timeout of the howling tone sent to the caller after the

    called hangs up. The value range is 0 to 120 seconds.

    initial seconds The timeout from off-hook to dialing of the first number. The value

    range is 0 to 120 seconds.

    interdigitseconds The timeout between dials of two digit numbers. The value range is0 to 120 seconds.

    Default

    By default timeouts are all 10 seconds.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    Command timeouts call-disconnect seconds is used to configure the timer that

    sends a howling tone to the caller. When the called hangs up, the timer is activated. If

  • 7/27/2019 (VOIP Configuration Command)1

    24/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-21

    there is a timeout in the timer but the caller has not hung up, it will send a howling toneto the caller, urging the caller to hang up.

    Command timeouts initialseconds is used to configure the timer for the system to

    wait for a user to dial the first digit number. When the user starts to dial, the timer isactivated. If there is a timeout in the timer, the user will be prompted to hook on and thecall is terminated.

    Command timeouts interdigitseconds is used to configure the timer for the system to

    wait for a user to dial the next digit number. Every time the user dials a digit number, thetimer restarts till required digits are dialed. If there is a timeout in the timer before thedialing is finished, the user will be prompted to hang up and the call will be terminated.

    Set the timeout parameterseconds as 0, and the corresponding timer will be disabled.

    Example

    ! The following example configures the dial timeout timer on voice port 1 as 10 seconds.

    Quidway(config-voice-port1)# timeouts initial 10

    1.26 timing

    To configure the related time parameters on the E&M interface, use the timingcommand. To return to the default, use the no form of this command.

    timing { delay-duration| delay-start | digit | interdigit | wink-duration | wink-wait }

    milliseconds

    no timing { delay-duration | delay-start | digit | interdigit | wink-duration | wink-

    wait }

    Syntax Description

    delay-duration milliseconds The maximum wait time the caller end waits for the called

    party to hook on so as to send the DTMF number in the E&M interface delay start mode.

    The value range is 100 5000 ms.

    delay-startmilliseconds The wait time from the caller end issuing an off-hook signal to

    detecting the called end status in the E&M interface delay start mode. The value range

    is 20 2000 ms.

    digitmilliseconds DTMF signal duration. The value range is 50 500 ms.

    interdigitmilliseconds Time interval between DTMF signals. The value range is 50

    500 ms.

    wink-duration milliseconds The maximum duration of the wink signal the caller

    receives in the E&M interface wink start mode. The value range is 100 3000 ms.

    wink-waitmilliseconds The maximum time the caller end waits for the receiver end to

    send a wink signal in the E&M interface wink start mode. The value range is 100 5000

    ms.

    Default

    By default delay-duration milliseconds is 400 ms.

  • 7/27/2019 (VOIP Configuration Command)1

    25/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-22

    By default delay-startmilliseconds is 300 ms.

    By default digitmilliseconds is 120 ms.

    By default interdigitmilliseconds is 120 ms.

    By default wink-durationmilliseconds is 500 ms.

    By default wink-waitmilliseconds is 500 ms.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    Command timing delay-duration milliseconds is used to set that in the E&M interface

    delay start mode, when the caller end detects that the called party is still in an off-hook

    status, it will not keep waiting. If the called party is still unprepared for receiving anumber when the wait time is longer than the set milliseconds , the caller end will giveup the connection request and will not wait any longer.

    Command timing delay-start milliseconds is used to set that in the E&M interface

    delay start mode, after sending an off-hook signal, the caller will wait for a while andthen test the called equipment status.

    Command timing digit milliseconds is used to set the duration of a DTMF signal.

    Command timing interdigit milliseconds is used to set the time interval betweenDTMF signals.

    Command timing wink-wait milliseconds is used to set the maximum time duration the

    caller end waits for a wink signal from the receiving end in the E&M interface wink startmode.

    The above commands are all for the setting of the caller end equipment, so they areeffective to the caller end only.

    Example

    ! The following example sets the maximum delay duration on port 1 as 3000 ms.

    Quidway(config-voice-port1)# timing delay-duration 3000

    Related Command

    timeouts signal

    1.27 type

    To set the E&M interface signal type, use the type command. To cancel the existing

    setting, use the no form of this command.

    type { 1 | 2 | 3 | 5 }

    no type { 1 | 2 | 3 | 5 }

  • 7/27/2019 (VOIP Configuration Command)1

    26/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-23

    Syntax Description

    1, 2, 3 and 5 Correspond respectively to the four signal types of E&M interfaces, i.e.

    type 1, 2, 3 and 5.

    Default

    By default the E&M interface signal type is type 5.

    Command Mode

    Voice-port configuration mode

    Usage Guideline

    Of the E&M signaling types, a PBX transmits signals on the M line (M means Mouth,

    indicating it is transmitted from a PBX), and receives signals from E line (E means Ear,indicating it is received by the PBX). So, as to a router that has voice function, the routerreceives the M signal of the PBX, and transmits E signal to the PBX.

    E&M interface has four data transmission (signal) lines, and two or all the four lines areused according to different types:

    E (Ear or Earth ): the signal line from the router side to the PBX side.

    M ( Mouth or Magnet ): the signal line from the PBX side to the router side.

    SG (Signal Ground): used for some types of E&M only.

    SB (Signal Battery): used for some types of E&M only.

    Example

    ! The following example configures voice port 1 E&M interface type as type 3.

    Quidway(config-voice-port1)# type 3

    1.28 vad

    To enable silence detection function, use the vad command. To return to the default,

    use the no form of this command.

    vad

    no vad

    Default

    By default the silence detection function is disabled.

    Command Mode

    Dial-peer configuration mode

  • 7/27/2019 (VOIP Configuration Command)1

    27/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-24

    Usage Guideline

    VAD is an abbreviation of Voice Activity Detection, generally termed as silence

    detection. Its basic idea is to detect and delete any silence on the basis of the difference

    of energy between the voice signals of people s conversation and their silence signals,so that no signals are produced; and only when an abrupt activity tone is detected will avoice signal be generated and transmitted. It is shown by research that no less than50% transmission bandwidth can be attained by the use of VAD technology.

    Example

    ! The following example enables the VAD function of POTS dial-peer 10.

    Quidway(config-peer-pots10)# vad

    Related Command

    dial-peer voice

    1.29 voice-port

    To enter the voice-port configuration mode, use the voice-port command.

    voice-portport-number

    Syntax Description

    port-number Voice port number.

    Command Mode

    Global configuration mode

    Usage Guideline

    In the global configuration mode, use voice-port command to enter the voice-portconfiguration mode.

    Example

    ! The following example enters voice port 1 configuration in the global configuration

    mode.

    Quidway(config-voice-port1)#

    Related Command

    dial-peer voice

    1.30 voip disable-watchdog

    To disable the monitoring function of WATCHDOG, use the voip disable-watchdog

    command.

  • 7/27/2019 (VOIP Configuration Command)1

    28/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-25

    Command Mode

    Global configuration mode

    Usage Guideline

    After the monitoring function of WATCHDOG is disabled, if the card is in abnormal state

    and can not restore itself automatically, manual reset is needed.

    Example

    ! The following example disables the monitoring function of WATCHDOG.

    Quidway(config)# voip disable-watchdog

    Related Command

    voip enable-watchdog

    1.31 voip enable-watchdog

    To enable the monitoring function of WATCHDOG, use the voip enable-watchdogcommand.

    Command Mode

    Global configuration mode

    Usage Guideline

    After the monitoring function of WATCHDOG is enabled, the function allows monitoring

    the state of the card every 5 seconds. If abnormality is found, the card will reset itselfwithout manual interference.

    Example

    ! The following example enables the monitoring function of WATCHDOG.

    Quidway(config)# voip enable-watchdog

    Related Command

    voip disable-watchdog

    1.32 voip match-policy

    To configure a global number match-policy, use the voip match-policy command.

    voip match-policy { longest | shortest }

    Syntax Description

    longest Indicate to perform the match according to the longest number.

  • 7/27/2019 (VOIP Configuration Command)1

    29/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-26

    shortest Indicate to perform the match according to the shortest number.

    Command Mode

    Global configuration mode

    Usage Guideline

    Command voip match-policy is used todecide if the match is performed according to

    the longest or the shortest number for the number match. For instance, destination-pattern 0106688 and destination-pattern 01066880011 are respectively configured in

    two dial-peers. when the user dials 01066880011, if the router is configured with theshortest number match-policy, then the router originates a connection to 0106688 atthe remote end, and the four numbers 0011 will not be processed; if the router is

    configured with the longest number match-policy, and the user only dials 0106688, therouter will wait for the user to dial. After timeout, the number match-policy configuredwith the system is neglected, and the shortest number match-policy will be

    automatically followed to make a call; if the user dials 0106688# (here the "#represents the dial terminator configured by the system), the router will likewise neglectthe number match-policy configured by the system and use the shortest number

    match-policy, thus providing a greater flexibility for the configuration of user dialscheme.

    Example

    ! The following example configures that the number match is performed according tothe longest number.

    Quidway(config)# voip match-policy longest

    Related Command

    destination-pattern

    1.33 voip reset

    To reset a voice card, use the voip reset command.

    voip reset slot-number

    Syntax Description

    slot-number Indicate the slot number where the voice card is located. The value is theinteger between 0 and 7.

    Command Mode

    Global configuration mode

    Usage Guideline

    To reset a voice card will interrupt all the service on the voice card, and re-initialize the

    card status. Generally, if the voice card works abnormally (e.g. the configuration is

    correct but normal connection is not possible), this operation can be used. You can

  • 7/27/2019 (VOIP Configuration Command)1

    30/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-27

    view the card indicator status when resetting the voice card to judge whether to performthe reset operation.

    First use command show version to display the distributed slots of the voice cards in

    the router. If fixed Ethernet interfaces and serial slots are provided on the router, thenthe correct slot of the voice card should be slot where the voice card is actuallyinserted + number of fixed slots . For instance, the voice card is inserted on slot 1, and

    Ethernet and two slots of serial interface are fixed on the router, then the correct slot ofthe voice card should be slot 3.

    Example

    ! The following example resets the voice card of slot 3.

    Quidway(config)# voip reset 3

    Related Command

    show version

    1.34 show call-history voice-port

    To display the call information of a voice port, use the show call-history voice-portcommand.

    show call-history voice-portport-number

    Syntax Description

    port-number Voice port number.

    Default

    By default, save the called numbers of the last 10 calls, without time limit.

    Command Mode

    Privileged user mode

    Usage Guideline

    Used to display the interface type, line status and the latest incoming/outgoing calls of a

    specified voice port. Display the called numbers of the last 10 calls originated by thelocal end. If the calls are not as many as 10, display the actual number of times of calls.

    Example

    Quidway# show call-history voice-port 0

    Voice-port 0 type FXS POTS , Line state is openedstart outgoing call 13 times, 7 successreceive incoming call 4 times, 3 successthe latest 10 calling number is:

    %1% called number 2001%2% called number 2001%3% called number 2001%4% called number 2001%5% called number 2001

  • 7/27/2019 (VOIP Configuration Command)1

    31/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-28

    %6% called number 2001%7% called number 2001%8% called number 2001%9% called number 2001%10% called number 2001

    1.35 show kht statistics

    To display the KHT module calling statistics information, use the show kht statistics

    command.

    show kht statistics

    Command Mode

    Privileged user mode

    Usage Guideline

    This command can be used to display all the call information statistics in the KHT

    module, including information received from the IPP module, dial success andmatching the POTS dial-peer, dial success and matching VolP dial-peer, dial success

    but not matching dial-peer, information between the KHT module and other modules,information about the timer, etc.

    Example

    Quidway# show kht statistics

    KHT: Receive IPP message,begin KHT flow: 0KHT: Dial successfully,match POTS dial-peer: 0

    KHT: Dial successfully,match VoIP dial-peer: 0KHT: Dial successfully,NOT match dial-peer: 0KHT: Send IPAlerting message to RCV: 0KHT: Send IPConnect message to RCV: 0KHT: Send PlayDialTone message to VPP: 0KHT: Send RecvNum message to VPP: 0KHT: Timer malloc failed: 0KHT: Invalid timer error: 0KHT: Invalid timeout message error: 0KHT: Receive invalid message from IPP: 0KHT: Receive invalid message from VPP: 0KHT: Receive invalid phone number from IPP: 0KHT: CCB NOT found: 0KHT: CCB status error: 0

    1.36 show rcv ccb

    To display the information related to the call control block in the RCV module, use theshow rcv ccb command.

    show rcv ccb

    Command Mode

    Privileged user mode

  • 7/27/2019 (VOIP Configuration Command)1

    32/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-29

    Usage Guideline

    This command is used to display the information related to the incoming and outgoing

    call control block, the connection status of modules, the calling status, the caller

    numbers and the called numbers, etc.

    Example

    Quidway# show rcv ccb

    RCV : CCB [ 1 ]{

    CallID : 0x0043CallState : TALKIppID : 0x004fIppState : IPPS_CONNECTEDCcID : 0xffffCcState : CCS_CONNECTEDVpmID : 0xffff

    CallType : OUTGOINGCallAttribute : 0x00000000CallSignaling : 0x00000002EncodeType : 0x0000001f

    E1Slot : 0xffffffff E1Port :0xffffffff

    TimeSlot : 0xffffffffChannelID : 0x00000003 VpuState :

    VS_CONNECTEDIppTimer : 0x00000000

    CcTimer : 0x00000000 VpuTimer :0x00000000

    CcChanMsg : 0x00000000E1ChanMsg : 0x00000000CallerNumber : 111CalledNumber : 660010prev : 0x00000000next : 0x01409500

    }RCV : CCB [ 2 ]

    { CallID : 0x0042

    CallState : TALKIppID : 0x004eIppState : IPPS_CONNECTEDCcID : 0xffffCcState : CCS_CONNECTEDVpmID : 0x0039CallType : INCOMINGCallAttribute : 0x00000000CallSignaling : 0x00000004

    EncodeType : 0x00000009E1Slot : 0xffffffffE1Port : 0xffffffffTimeSlot : 0xffffffffChannelID : 0x00000000VpuState : VS_CONNECTEDIppTimer : 0x00000000CcTimer : 0x00000000VpuTimer : 0x00000000CcChanMsg : 0x00000000E1ChanMsg : 0x00000000CallerNumber : 111CalledNumber : 660010prev : 0x01409000next : 0x00000000

    }

  • 7/27/2019 (VOIP Configuration Command)1

    33/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-30

    1.37 show rcv statistic

    To display the statistics information of calling between the RCV module and other

    modules, use the show rcv statistic command.

    show rcv statistic { all | call | cc | error | ipp | proc | timer | vpm | vpp }

    Syntax Description

    all Display all the statistics information of the RCV module.

    call Display the calling statistics information in the RCV module.

    cc Display all the statistic information between the RCV module and the bottom layer

    CC module.

    error Display all the statistic information on the failure of connection caused by the

    RCV module.

    ipp Display all the statistic information between the RCV module and the upper layerIPP module.

    proc Display the statistic information on the number of times of the execution of

    various functions in the RCV module.

    timer Display all the statistic information on the timer operation in the RCV module.

    vpm Display all the statistic information between the RCV module and the bottom

    layer VPM module.

    vpp Display all the statistic information between the RCV module and the bottom layerVPP module.

    Command Mode

    Privileged user mode

    Usage Guideline

    This command is used to display the statistics of various messages between the RCV

    module and the CC module, IPP module VPM module, etc.

    Example

    Quidway# show rcv statistic callStatistic about RCV calls :{RCV_CC_ACTIVE_CALL : 0RCV_CC_ACTIVE_CALL_SUCCEEDED : 0RCV_CC_ACTIVE_CALL_FAILED : 0RCV_CC_PASSIVE_CALL : 0RCV_CC_PASSIVE_CALL_SUCCEEDED : 0RCV_CC_PASSIVE_CALL_FAILED : 0RCV_R2_ACTIVE_CALL : 5RCV_R2_ACTIVE_CALL_SUCCEEDED : 2

    RCV_R2_ACTIVE_CALL_FAILED : 3RCV_R2_PASSIVE_CALL : 4RCV_R2_PASSIVE_CALL_SUCCEEDED : 1RCV_R2_PASSIVE_CALL_FAILED : 3

    RCV_VPM_ACTIVE_CALL : 39RCV_VPM_ACTIVE_CALL_SUCCEEDED : 11

  • 7/27/2019 (VOIP Configuration Command)1

    34/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-31

    RCV_VPM_ACTIVE_CALL_FAILED : 28RCV_VPM_PASSIVE_CALL : 18RCV_VPM_PASSIVE_CALL_SUCCEEDED : 15RCV_VPM_PASSIVE_CALL_FAILED : 3

    }

    1.38 show voice-port

    To display the configuration information of the voice port, use the show voice-port

    command.

    show voice-port port_number

    Syntax Description

    port_number The voice port number.

    Command Mode

    Privileged user mode

    Usage Guideline

    This command can be used to display the information on the type, status, codec mode,

    input gain and output attenuation of a voice port.

    Example

    Quidway# show voice-port 0

    Voice-port 0 type FXS POTS , Line state is opened

    channel status is CH_TALKINGcoding protocol 729, decoding protocol 729calling number 1001 called number 2001, direction outgoingCall-ID is 2 Call-reference is 12comfort-voice is enabled, reset 0 timesAdministrative State is UPIn Gain is Set to 0 dBOut Attenuation is Set to 0 dBEcho Cancellation is enableInitial Time Out is set to 10 sInterdigit Time Out is set to 10 s

    Related Command

    port

    1.39 show vpp

    To display all the statistic information in the VPP module, use the show vpp command.

    show vpp [ channel channel-number]

    Syntax Description

    channel-number The voice channel number.

  • 7/27/2019 (VOIP Configuration Command)1

    35/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-32

    Command Mode

    Privileged user mode

    Usage Guideline

    This command is used to display the number of times of correct and incorrect

    connection, the number of times of correct and incorrect disconnection, the number oftimes of correct and incorrect code data receiving, the number of times of correct andincorrect code data transmission, the number of times of correct and incorrect IPP data

    receiving, the number of times of correct and incorrect IPP data transmission, the totalnumber of bytes of code data received, and the total number of bytes of IPP datareceived in various voice channels.

    Example

    Quidway# show vpp

    Channel = 0 Status = CH_TRANSFRAMEConnectRightTimes = 53 ConnectWrongTimes = 0DisConnectRightTimes = 52 DisConnectWrongTimes = 0RecvCodecmDataRightTimes = 577898 RecvCodecmDataWrongTimes = 0SendCodecmDataRightTimes = 78272 SendCodecmDataWrongTimes = 0RecvIppDataRightTimes = 78275 RecvIppDataWrongTimes = 0SendIppDataRightTimes = 577906 SendIppDataWrongTimes = 0RecvCodecmDataBytes = 17337270 RecvIppDataBytes = 1845370

    Channel = 1 Status = CH_IDLEConnectRightTimes = 4 ConnectWrongTimes = 0DisConnectRightTimes = 4 DisConnectWrongTimes = 0RecvCodecmDataRightTimes = 207 RecvCodecmDataWrongTimes = 0SendCodecmDataRightTimes = 181 SendCodecmDataWrongTimes = 0RecvIppDataRightTimes = 181 RecvIppDataWrongTimes = 0SendIppDataRightTimes = 207 SendIppDataWrongTimes = 0

    RecvCodecmDataBytes = 6210 RecvIppDataBytes = 5430

    TotalConnectRightTimes = 66 ConnectWrongTimes = 0DisConnectRightTimes = 64 DisConnectWrongTimes = 0RecvCodecmDataRightTimes = 607188 RecvCodecmDataWrongTimes = 2SendCodecmDataRightTimes = 107473 SendCodecmDataWrongTimes = 0RecvIppDataRightTimes = 107473 RecvIppDataWrongTimes = 0SendIppDataRightTimes = 607188 SendIppDataWrongTimes = 0RecvCodecmDataBytes = 18215640 RecvIppDataBytes = 2721160

    1.40 debug h225

    To enable the H.225.0 debugging of negotiation message or event, use the debugh225 command. To disable the debugging, use the no form of this command.

    debug h225 { asn1 | event }

    Syntax Description

    asn1 The output information is the information related to negotiation messages.

    event The output information is the information related to negotiation events.

    Command Mode

    Privileged user mode

  • 7/27/2019 (VOIP Configuration Command)1

    36/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-33

    1.41 debug h245

    To enable the H.245 debugging of negotiation message or event, use the debug h245

    command. To disable the debugging, use the no form of this command.

    debug h245 { asn1 | event }

    Syntax Description

    asn1 The output information is the information related to negotiation messages.

    event The output information is the information related to negotiation events.

    Command Mode

    Privileged user mode

    1.42 debug kht

    To enable the KHT module debugging, use the debug kht command. The no form of

    this command is used to disable the debugging.

    debug kht { all | error | ipp | rcv | timer | vpp }

    Syntax Description

    all Enable all the KHT module debugging.

    error Enable the debugging of connection failure caused by the KHT module.

    ipp Enable the debugging between the KHT module and the upper layer IPP module.

    rcv Enable the debugging between the KHT module and the bottom layer RCV

    module.

    timer Enable the debugging of the KHT module on the timer operation.

    vpp Enable the debugging between the KHT module and the bottom layer VPPmodule.

    Command Mode

    Privileged user mode

    1.43 debug rcv

    To enable the debugging of the RCV module, use the debug rcv command. To disable

    the debugging, use the no form of this command.

    debug rcv { all | cc | error | ipp | timer | vpm | vpp }

    Syntax Description

    all Enable all the debugging of the RCV module.

    cc Enable the debugging between the RCV module and the bottom layer CC module.

  • 7/27/2019 (VOIP Configuration Command)1

    37/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-34

    error Enable the debugging of connection failure caused by the RCV module.

    ipp Enable the debugging between the RCV module and the upper layer IPP module.

    timer Enable the debugging on the timer operation of the RCV module.

    vpm Enable the debugging between the RCV module and the bottom layer VPM

    module.

    vpp Enable the debugging between the RCV module and the bottom layer VPP

    module.

    Command Mode

    Privileged user mode

    1.44 debug vpm

    To enable the VPM module debugging, use the debug vpm command. To disable the

    debugging, use the no form of this command.

    debug vpm { all | buffer | command | dsp | em | error | ipp | port | receive | send }

    Syntax Description

    all Enable all the output debugging of the VPM module.

    buffer Enable the debugging of the buffer area for the VPM module to transmitcommands to the DSP module.

    command Enable the debugging between the VPM module and the command buffer

    area.

    dsp Enable the debugging between the VPM module and the bottom layer DSP

    module.

    em Enable the debugging of the EM interface operation of the VPM module.

    error Enable the output debugging of the connection failure caused by the VPMmodule.

    ipp Enable the output debugging between the VPM module and the upper layer IPP

    module.

    port Enable the debugging for the VPM module to log on to a specified port.

    receive Enable the debugging for the VPM module to receive data.

    send Enable the debugging for the VPM module to transmit data.

    Command Mode

    Privileged user mode

    1.45 debug vpp

    To enable the debugging of the VPP module, use the debug vpp command. To disable

    the debugging, use the no form of this command.

  • 7/27/2019 (VOIP Configuration Command)1

    38/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1VoIP Configuration Commands

    1-35

    debug vpp { all | codecm | error | ipp | kht | rcv | timer | vpm }

    Syntax Description

    all Enable all the output debugging of the VPP module.

    codecm Enable the debugging between the VPP module and the bottom layer

    CODECM module.

    error Enable the output debugging of the connection failure of the VPP module.

    ipp Enable the debugging between the VPP module and the upper layer IPP module.

    kht Enable the debugging between the VPP module and the KHT module

    rcv Enable the debugging between the VPP module and the RCV module

    timer Enable the output information debugging on the timer operation of the VPPmodule.

    vpm Enable the debugging between the VPP module and the VPM module.

    Command Mode

    Privileged user mode

  • 7/27/2019 (VOIP Configuration Command)1

    39/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2IP Fax Configuration Commands

    2-1

    Chapter 2 IP Fax Configuration Commands

    IP Fax configuration commands include:

    l fax level

    l fax local-train

    l fax protocol

    l fax rate

    l fax support

    l fax train-mode

    l fax-relay

    l debug ipfax

    l debug vpm

    2.1 fax level

    To configure the gateway carrier transmitting energy level, use the fax level command.

    To return to the default, use the no form of this command.

    fax level level

    no fax level

    Syntax Description

    level Gateway carrier transmitting energy level, ranging 3 to 60.

    Default

    15

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Usually the default of the gateway carrier transmitting energy level is acceptable. If fax

    still can t be sent when other configurations are correct, you can try to adjust thegateway carrier transmitting energy level.

    Example

    ! The following example configures the gateway carrier transmitting energy level as 20.

    Quidway(config-peer-pots1)# fax level 20

  • 7/27/2019 (VOIP Configuration Command)1

    40/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2IP Fax Configuration Commands

    2-2

    2.2 fax local-train

    To configure the fax local training threshold value, use the fax local-train command. To

    return to the default, use the no form of this command.

    fax local - t rain thresh oldthreshold

    no fax local-train threshold

    Syntax Description

    threshold Local training threshold value, ranging 0 to 100.

    Default

    15

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    When rate training is being carried on between FAXes, the transmitting FAX transmits

    the 0 TCF data at 1.5s10% to the receiving FAX, and the receiving FAX decideswhether or not the rate is acceptable according to the TCF data received.

    The command is used to configure the local training threshold value if the local training

    mode is configured. Error happens during the TCF transmission if 1 appears in theTCF data received. If the number of 1 received is less than the threshold valueconfigured, the transmission is successful, otherwise, it is unsuccessful.

    Example

    ! The following example configures the fax local training threshold to 20.

    Quidway(config-peer-pots1)# fax local-train threshold 20

    2.3 fax protocol

    To configure the number of transmitting redundant packets of T38 fax protocol, use thefax protocol command. To return to the default, use the no form of this command.

    fax protocol { t38 [ ls-redundancyt38number| hs-redundancynumber] | cisco }

    no fax protocol { t38 [ ls-redundancy | hs-redundancy ] | cisco }

    Syntax Description

    t38 Using the T38 fax protocol.

    Isredundancy Configuring the number of redundant packets of low rate data,

    ranging 0 to 5.

  • 7/27/2019 (VOIP Configuration Command)1

    41/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2IP Fax Configuration Commands

    2-3

    hs-redundancy Configuring the number of redundant packets of high rate data,

    ranging 0 to 2.

    cisco Using the fax protocol which is compatible with CISCO.

    Default

    The two kind of redundant packets are 0.

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    The low rate indicates the V21 command data, and the high rate indicates the TCF data

    and figure data.

    When connected with CISCO fax terminal, you need to choose CISCO fax protocol.

    When connected with other fax terminals that support T.38 protocol, you need to

    choose T.38 protocol. Because CISCO devices do not support the mode of local faxtraining, you have to adopt the mode of point-to-point training for the connection withCISCO devices.

    Example

    ! The following example configures the number of the transmitting redundant packets of

    T38 fax protocol to 20.

    Quidway(config-peer-pots1)# fax protocol t38 hs-redundancy 2

    2.4 fax rate

    To set the highest speed enabled by the gateway, use the fax rate command.

    fax rate{ 12000 | 14400 | 2400 | 4800 | 7200 | 9600 | disable | voice }

    Syntax Description

    If the setting is the values except disable and voice , then set the fax rates to the

    corresponding values. The set rate is the highest rate enabled, instead of the only rate

    specified.

    If the setting is the voice mode, the highest rate enabled by the fax will be finallydecided according to the voice codec protocols.

    l If the voice codec protocol uses G.711, the fax rate is 14,400bit/s.

    l If the voice codec protocol uses G.723.1 Annex A, the fax rate is 4,800bit/s.

    l If the voice codec protocol uses G.729, the fax rate is 7,200bit/s.

    If the setting is disable , the fax function will be disabled.

    Default

    voice

  • 7/27/2019 (VOIP Configuration Command)1

    42/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2IP Fax Configuration Commands

    2-4

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    The user can set the fax rate according to the voice codec protocols adopted.

    Example

    ! The following example sets the highest fax rate enabled by the gateway to 9,600bit/s.

    Quidway(config-peer-pots1)# fax rate 9600

    2.5 fax support-mode

    To configure the fax interworking mode with other equipment, use the fax support-

    mode, command.

    fax suppor t -mode{ standard | rtp | vt }

    Syntax Description

    standard Standard mode.

    rtp RTP mode.

    vt The mode when interworking with the VocalTec gateway.

    Default

    rtp

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    Under common conditions, use the RTP mode. When interworking with the VocalTec

    gateway, the vt mode is adopted. At present, standard mode does not supportinterworking with the VocalTec gateway.

    Example

    ! The following example configures the mode when interworking with VocalTec deviceto vt.

    Quidway(config-peer-pots1)# fax support-mode vt

  • 7/27/2019 (VOIP Configuration Command)1

    43/84

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2IP Fax Configuration Commands

    2-5

    2.6 fax train-mode

    To set the training mode used by the gateway, use the fax train-mode command.

    fax t ra in -mod e{ local | ppp }

    Syntax Description

    local Using the local training mode.

    ppp Using the point-to-point training mode.

    Default

    local

    Command Mode

    Dial-peer configuration mode

    Usage Guideline

    The local training mode means that the gateway participates in the rate training

    between the FAXes at both ends. In this mode, first carry on the training between theFAXes and between the gateways respectively, then the receiving gateway will transmit

    the training result of the receiving end to the gateway at the transmitting end. Thetransmitting gateway will decide the final packet transmission rate according to thetraining results of both ends.

    The point-to-point training mode means that the gateway does not participates in the

    rate training between the FAXes at both ends. In this mode, the rate training is carriedon between the FAXes at both ends, and it is transparent to the gateway.

    Example

    ! The following exampl