23 voip-voip

Upload: alvaro-auza-barrios

Post on 03-Jun-2018

287 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/11/2019 23 VOIP-VOIP

    1/40

    Version: 10.A

    VOIP

  • 8/11/2019 23 VOIP-VOIP

    2/40

  • 8/11/2019 23 VOIP-VOIP

    3/40

    What is the VOIP?

    How to configure the H.323 of VOIP?

    How to configure the SIP of VOIP?

    How to troubleshoot the VOIP?

    This course will explain following questions.

  • 8/11/2019 23 VOIP-VOIP

    4/40

    FXS/FXO PortContents

    Dial-peer Configurations

    H.323 Client Configurations

    SIP Client Configurations

  • 8/11/2019 23 VOIP-VOIP

    5/40

    Introduction to Gateway Voice Interface

    Digital relay interface, supporting 30-port digital

    channel; the interface physical form is G.703.

    Single-port analog relay interface

    A few are applied on old PBX.

    Analog relay interface, used to connect PBX

    internal interface or PSTN; does not provide

    power for lines, also called VOS

    Analog access interface, used to connect common

    telephones or PBX external interface; provide power

    for phones, also called VOP

    FXS

    FXO

    E&M

    RE1

  • 8/11/2019 23 VOIP-VOIP

    6/40

    Application Diagram of Voice Interface

    PSTN

    FXO

    FXS

    RE1

    PBX

    Phone

  • 8/11/2019 23 VOIP-VOIP

    7/40

    Configuring FXS/FXO (1)

    MyPower VG series gateway supports FXS configuration, but theres some

    difference in FXS configuration mode. The configuration command of MyPower

    VG M6000 entering FXS card:

    gateway(config)#cardcardNum

    Entering to FXS card configuration mode:

    Command Description

    CardNum cardNumis the slot number, entering card configuration mode.

    The configuration command of MyPower VG2000, VG800 and A600

    entering FXS card:gateway(config)#fxs-card cardNum

    Command Description

    CardNum cardNum is slot number, entering card configuration mode.

  • 8/11/2019 23 VOIP-VOIP

    8/40

    Configuring FXS/FXO (2)

    NOTE:

    You can know the channel number by using the command show voice port

    Configuring FXS/FXO parameters

    Command Description

    channel [0-31] [0-31] enable|

    disable

    Configure channel status

    The first [0-31] is the start channel number

    The second [0-31] is the end channel number

    enableenable channel, disabledisable channel

    channel callid

    enable|disable

    Configure call id

    The first is starting channel number

    The second is the ending channel number

    enableenable called number, disabledisable

    called number

  • 8/11/2019 23 VOIP-VOIP

    9/40

    FXS/FXO Port

    Dial-peer Configurations

    H.323 Client Configurations

    SIP Client Configurations

    Contents

  • 8/11/2019 23 VOIP-VOIP

    10/40

    Configuration of Dial-Peer (1)

    In VoIP configuration, dial-peer uses for differentiate different types of voice channel.

    There are three types of dial-peer:1.Dial-Peer POTS

    (dial-peer POTS)FXS interface of analog of the gateway and FXO interface

    connecting PSTN.

    (dial-peer pots slot ): FXS interface of analog of the gateway and FXO

    interface connecting PSTN.

    2.Dial-Peer VOIP

    IP network end (dial-peer

    VOIP): Correspond with remote IP

    phone or gateway via IP network.

    3.Dial-Peer VOE1Relay line end (dial-peer

    VOE1): Correspond with PBX access to E1.

    BeiJ Chen

    D

    IP

    2M 2M

    PST

    N

    PST

    N

    NOTE:

    Use following command to enter Call route configure mode.

    gateway(config)#callrouting-conf

  • 8/11/2019 23 VOIP-VOIP

    11/40

    Configuration of Dial-Peer (2)VOIP dial-peer configuration command

    For MyPower VG M6000, MyPower VG2000, the dial-peer range is from 1 to 1024:

    gateway (config-callroute)#dial-peer voip

    For MyPower VG800, MyPower VG600, the dial-peer range is from 1 to 255.

    gateway(config-callroute)#dial-peer voip

    Command Description

    codecg711a/g711u/g723/g729/g729

    a/g729wb

    Configure H323 voice coding type as g711a, g711u, g723,g729, g729a and g729wb. When calling from ip, the

    configuration is effective.

    Default value is g729

    destination-pattern Configure E.164 telephone number

    fax-protocol t38 Configure fax protocol T38fax-protocol disable Configure disabled fax protocol.

    session-target Configure IP address or RAS

    preference Configure priority (1-20), and it reduces when number is

    increasing. Default: Routing 10 and 20 can not be used

  • 8/11/2019 23 VOIP-VOIP

    12/40

  • 8/11/2019 23 VOIP-VOIP

    13/40

  • 8/11/2019 23 VOIP-VOIP

    14/40

    Configuration of Dial-Peer (5)

    VOE1 Dial-peer

    VOE1 dial-peer supports two kinds of routing: physical E1 and E1 logicalgrouping.

    Calling number means some special numbers aggregation. E1 logical

    grouping can use many called number groupings. when not using calling number

    binding of E1 logical group, any calling number can work via E1 logical multicast if

    the number is matching but when using E1 logical group calling binding function,

    only permits calls in group when it is matching.

    Calling number group configuration command:

    enter special calling number group:

    gateway(config-callroute) calling-number-group

    gateway(config-e1-caller-group)#

    Command Description

    calling-number Configure calling number to group

    calling number string, permit number and

    X or x.

  • 8/11/2019 23 VOIP-VOIP

    15/40

    Configuration of Dial-Peer (6)

    E1 logical group command:

    enter special E1 logical group:

    gateway(config-callroute)e1-trunk-group

    gateway(config-e1-trunk-group)#

    Command Description

    Time-slot Version 6000 configure E1 time slot to E1

    logical group E1 card number, inner E1

    number, E1 time slot number,

    stopped E1 time slot

    Time-slot Version 2000 configure E1 time slot to E1

    logical group

    Bind calling-number-group Binding special calling number to E1 logical

    group

    calling number group

    Restrict calling-number enable

    |disable

    Use | disable E1 logical group calling number

    binding function

  • 8/11/2019 23 VOIP-VOIP

    16/40

    Configuration of Dial-Peer (7)

    VOE1 Dial Peer Configuration Commands:

    gateway(config-callroute)#dial-peervoe1gateway(config-dial-peer)#?

    Command Description

    destination-pattern Routing number matching rule

    E1 Configure E1 portSuitable for MyPower VG M6000

    E1 Configure E1 port

    Suitable for MyPower VG2000

    E1 trunk-group Configure E1logical group number

    E1 logical group number ofrouting E1

    preference Configure priority

    codec g711a/g723/g729/g729a/g729wb Configure H323 voice coding type

  • 8/11/2019 23 VOIP-VOIP

    17/40

    Gateway Configuration Example (1)

    PBX VG1 VG2

    111 211

    PSTN

    RE1

    1.1.1.1 1.1.1.231X 85148XXX

    Situation:

    VG1 connects VG2 by Ethernet interface.

    VG1 connects PBX by RE1.

    VG2 connects PSTN by FXO.

  • 8/11/2019 23 VOIP-VOIP

    18/40

    Gateway Configuration Example (2)

    Configuration of VG1 (1)

    Command Description

    gateway(config)#fxs-card1 entering FXS card 1

    channel 0 0 enable enable channel 0

    channel 0 0 callid enable enable called number

    exit

    gateway(config)#re11 entering RE1 card 1

    gateway(config-e1-port)#bind pri Bind PRI on e1

    gateway(config-e1-port)#isdnsideset user Configure PRI direction as USER side

    gateway(config-e1-port)#pri-grouptimeslots16

    Configure signal timeslot as 16 on e1.

    exit

    gateway(config)#callrouting-conf entering Call route configure mode

  • 8/11/2019 23 VOIP-VOIP

    19/40

    Gateway Configuration Example (3)

    Command Descriptiongateway(config-callroute)# dial-peer 1 voip Configure dial-peer VOIP 1

    gateway(config-callroute)#destination-pattern 211 Configure E.164 telephone number

    gateway(config-callroute)# session-target 1.1.1.2 Configure peer IP address

    gateway(config-callroute)# dial-peer 2 voip Configure dial-peer VOIP 2

    gateway(config-callroute)#destination-pattern

    85148XXXConfigure E.164 telephone number

    gateway(config-callroute)# session-target 1.1.1.2 Configure peer IP address

    gateway(config-callroute)# dial-peer 3 pots Configure dial-peer POTS 3

    gateway(config-callroute)#port 1/0 Configure POTS voice port

    gateway(config-callroute)# destination-pattern 111 Configure E.164 telephone number

    gateway(config-callroute)# dial-peer 4 voe1 Configure dial-peer VOE1 4

    gateway(config-callroute)#destination-pattern 31X Configure E.164 telephone number

    gateway(config-callroute)# e1 1 Configure VOE1 re1 port

    Configuration of VG1 (2)

  • 8/11/2019 23 VOIP-VOIP

    20/40

  • 8/11/2019 23 VOIP-VOIP

    21/40

    Gateway Configuration Example (5)

    Command Description

    gateway(config-callroute)#dial-peer 1 voip Configure dial-peer VOIP 1

    gateway(config-callroute)#destination-pattern 111 Configure E.164 telephone number

    gateway(config-callroute)#session-target 1.1.1.1 Configure peer IP address

    gateway(config-callroute)#dial-peer 2 voip Configure dial-peer VOIP 2

    gateway(config-callroute)#destination-pattern 31X Configure E.164 telephone number

    gateway(config-callroute)#session-target 1.1.1.1 Configure peer IP address

    gateway(config-callroute)#dial-peer 3 pots Configure dial-peer POTS 3

    gateway(config-callroute)#port 1/0 Configure POTS voice portgateway(config-callroute)#destination-pattern 211 Configure E.164 telephone number

    gateway(config-callroute)#dial-peer 4 pots Configure dial-peer POTS 4

    gateway(config-callroute)#port 2/0 Configure POTS voice port

    gateway(config-callroute)#destination-pattern 85148XXX Configure E.164 telephone number

    Configuration of VG2 (2)

  • 8/11/2019 23 VOIP-VOIP

    22/40

    FXS/FXO Port

    Dial-peer Configurations

    H.323 Client Configurations

    SIP Client Configurations

    Contents

  • 8/11/2019 23 VOIP-VOIP

    23/40

    Configuration of H.323 Client (1)Configure interface to gatekeeper:

    Configure network interface as VOIP gateway RAS protocol interface, and only

    configure one network interface as VoIP interface.gateway(config)#interface fastethernet 1

    Command Description

    h323-gateway voip interface Designate the interface as VoIP gateway RAS

    protocol interface.

    h323-gateway voip h323-id

    Configure gateway interface identification.

    h323-gateway voip id

    Register gatekeeper via IP address. the first

    string is gatekeeper identification, the second

    string is gatekeeper IP address, and the third

    string is gatekeeper port. the default is 1718

    without gkid segment.

    h323-gateway voip supported-prefix

    Configure gateway prefix for dealing with the

    coming routing. It can configure at most 2

    prefixes.

  • 8/11/2019 23 VOIP-VOIP

    24/40

    Configuration of H.323 Client (2)

    Configure voip dial-peer gatekeeper

    gateway(config-callroute)#dial-peer 1voip

    Enable gateway client-end

    gateway(config)#

    Command Description

    destination-pattern Configure destination-pattern phone number

    session-target ras Use RAS protocol to get destination gateway IP address

    Command Description

    Gateway Enable voip gateway registers to gatekeeperno gateway Cancel voip gateway registering to gatekeeper

  • 8/11/2019 23 VOIP-VOIP

    25/40

    H.323 Configuration Example (1)

    Situation:

    VG1 connects PBX by RE1 interface;

    VG2 connects PSTN by FXO interface;

    PBX VG1 VG2

    111 211

    PSTN

    RE1

    1.1.1.1 1.1.1.231X 85148XXX

    1.1.1.254

  • 8/11/2019 23 VOIP-VOIP

    26/40

    H.323 Configuration Example (2)

    Command Description

    gateway(config)#fxs-card1 entering FXS card 1

    channel 0 0 enable enable channel 0

    channel 0 0 callid enable enable called number

    exit

    gateway(config)#re11 entering RE1 card 1

    gateway(config-e1-port)#bind pri Bind PRI on e1

    gateway(config-e1-port)#isdnsideset user Configure PRI direction as USER side

    gateway(config-e1-port)#pri-grouptimeslots16

    Configure signal timeslot as 16 on e1.

    exit

    gateway(config)#callrouting-conf

    Configuration of VG1 (1)

  • 8/11/2019 23 VOIP-VOIP

    27/40

  • 8/11/2019 23 VOIP-VOIP

    28/40

  • 8/11/2019 23 VOIP-VOIP

    29/40

    H.323 Configuration Example (5)

    Command Description

    gateway(config)#fxs-card1 entering FXS card 1

    channel 0 0 enable enable channel 0

    channel 0 0 callid enable enable called number

    exit

    gateway(config)#fxo-card2 entering FXO card 2

    channel 0 0 enable enable channel 0

    exit

    gateway(config)#callrouting-conf

    Configuration of VG2 (1)

  • 8/11/2019 23 VOIP-VOIP

    30/40

    H.323 Configuration Example (6)

    Command Description

    gateway(config)#interface fastethernet 1 entering fastethernet interface 1

    h323-gateway voip interfaceDesignate the interface as VoIP

    gateway RAS protocol interface.

    h323-gateway voip h323-id VG2Configure gateway interface

    identification.

    h323-gateway voip id MP ipaddr 1.1.1.254 Register gatekeeper via IP address.

    h323-gateway voip supported-prefix

    85148

    Configure gateway prefix as 85148

    Ip address 1.1.1.2 255.255.255.0 Configure IP address of the interface

    exit

    gateway(config)#gatewayEnable voip gateway registers to

    gatekeeper

    Configuration of VG2 (2)

  • 8/11/2019 23 VOIP-VOIP

    31/40

    H.323 Configuration Example (7)

    Command Description

    gateway(config-callroute)# dial-peer 1 voip Configure dial-peer VOIP 1

    gateway(config-callroute)#destination-pattern XX. Configure E.164 telephone number

    gateway(config-callroute)# session-target ras Use RAS protocol to get destinationgateway IP address

    gateway(config-callroute)# dial-peer 2 pots Configure dial-peer POTS 2

    gateway(config-callroute)#port 1/0 Configure POTS voice port

    gateway(config-callroute)# destination-pattern 211 Configure E.164 telephone number

    gateway(config-callroute)# dial-peer 3 pots Configure dial-peer POTS 2

    gateway(config-callroute)#port 2/0 Configure POTS voice port

    gateway(config-callroute)# destination-pattern

    85148XXXConfigure E.164 telephone number

    Configuration of VG2 (3)

  • 8/11/2019 23 VOIP-VOIP

    32/40

  • 8/11/2019 23 VOIP-VOIP

    33/40

    Dial-peer Configurations

    H.323 Client Configurations

    SIP Client Configurations

    FXS/FXO PortContents

    SIP Cli C d

  • 8/11/2019 23 VOIP-VOIP

    34/40

    SIP Client Commands

    Command Description

    sip-gateway voip localPort

    SIP interface of the gateway. The default value is 5060.

    sip-gateway voip interface Specify an interface as the SIP protocol interface of the gateway.

    sip-gateway voip proxy A.B.C.D Specify the IP address of the SIP proxy server used by the gateway and A.B.C.D

    is IP address of agent server.

    sip-gateway voip proxy domain-name

    Specify the domain name of the SIP proxy server used by the gateway, and

    string is the domain name.

    sip-gateway voip proxyPort Specify the port of remote proxy server. The default value is 5060.

    sip-gateway voip registrarA.B.C.D Specify the IP address of the SIP register server used by the gateway. A.B.C.D is

    the IP address of the SIP register server.

    sip-gateway voip registrar domain-

    name

    Specify the domain name of the SIP register server used by the gateway. String

    is the domain name of the SIP register server.

    sip-gateway voip registrarPort

    Specify the port of the register server. The default value is 5060.

    sip-gateway voip registrar expires

    SIP terminal registering over time, 3600 seconds by default.

    sip-gateway voip username If register server needs id authentication, configure a user name of the number.

    sip-gateway voip password If register server needs id authentication, configure password of the number.

    sip-gateway voip retry-invite Specify the retransmission times of INVITE when the peer end that initiates the

    call is unavailable and does not receive the response. The default value is 5.

    sip-gateway voip local-areaA.B.C.D

    A.B.C.D

    The local domain of the SIP.

    The former IP is the segment number and the later IP is the mask.

    When using STUN traversing NAT, the configuration needs to realize the intranetcommunication.

    Configure interface

    gateway (config)#int f1

  • 8/11/2019 23 VOIP-VOIP

    35/40

    SIP Client Example (1)

  • 8/11/2019 23 VOIP-VOIP

    36/40

    SIP Client Example (2)

    interface fastethernet0

    ip address 10.0.13.249 255.255.255.0

    exit

    dial-peer 1 pots

    destination-pattern 200

    port 0/0

    username 200 password 200

    exit

    dial-peer 100 voip

    destination-pattern xxx

    session-target sip-serverexit

    dial-peer 2 pots

    destination-pattern xx.

    port 2/0

    exit

    dial-peer 3 pots

    destination-pattern 9x.

    num-trans-index 2 calledport 2/0

    exit

    fxs-card 0

    channel 0 3 callid enable

    channel 0 3 enableexit

    fxo-card 2

    channel 0 3 callid enable

    channel 0 3 enable

    exit

    interface fastethernet0

    sip-gateway voip interface

    sip-gateway voip proxy 10.0.13.201

    sip-gateway voip registrar 10.0.13.201

    sip-gateway

    key configuration on VG1

  • 8/11/2019 23 VOIP-VOIP

    37/40

    SIP Client Example (3)

    interface fastethernet0

    ip address 10.0.13.248 255.255.255.0

    exit

    dial-peer 1 potsdestination-pattern 300

    port 1/0

    username 300 password 300

    exit

    dial-peer 100 voip

    destination-pattern xx.

    session-target sip-server

    exit

    fxs-card 1channel 0 3 callid enable

    channel 0 3 enable

    exit

    interface fastethernet0

    sip-gateway voip interfacesip-gateway voip proxy 10.0.13.201

    sip-gateway voip registrar 10.0.13.201

    exit

    sip-gateway

    key configuration on VG2

  • 8/11/2019 23 VOIP-VOIP

    38/40

    Dial-peer Configurations

    H.323 Client Configurations

    SIP Client Configurations

    FXS/FXO Port

  • 8/11/2019 23 VOIP-VOIP

    39/40

    Exercise

    111 can call 211 by H.323 protocol.

    111 can call 211 by SIP protocol.

  • 8/11/2019 23 VOIP-VOIP

    40/40