Voice entity configuration example for establishing a VoIP call

Network requirements

As shown in Figure 6, two voice gateways (Router A and Router B) communicate with each other through WAN.

For example, the user of tel. 1 (010-1001) attached to Router A dials 0755-2001, the number of tel. 3 attached to Router B. After the called party picks up the phone, a conversation is established between two parties.

Figure 6: Network diagram

Configuration procedure

Routing-related configurations are beyond the scope of this example. This example assumes that Router A and Router B are reachable to each other.

  1. Configure Router A:

    # Configure the VoIP voice entity to Router B.

    <RouterA> system-view
    [RouterA] voice-setup
    [RouterA-voice] dial-program
    [RouterA-voice-dial] entity 0755 voip
    [RouterA-voice-dial-entity755] match-template 0755....
    [RouterA-voice-dial-entity755] address sip ip 2.2.2.2
    [RouterA-voice-dial-entity755] quit
    

    # Configure the POTS voice entity corresponding to the local interface Line 1/0.

    [RouterA-voice-dial] entity 1001 pots
    [RouterA-voice-dial-entity1001] match-template 0101001
    [RouterA-voice-dial-entity1001] line 1/0 
    [RouterA-voice-dial-entity1001] quit
    

    # Configure the POTS voice entity corresponding to the local interface Line 1/1.

    [RouterA-voice-dial] entity 1002 pots
    [RouterA-voice-dial-entity1002] match-template 0101002
    [RouterA-voice-dial-entity1002] line 1/1
    
  2. Configure Router B:

    # Configure the VoIP voice entity to Router A.

    <RouterB> system-view
    [RouterB] voice-setup
    [RouterB-voice] dial-program
    [RouterB-voice-dial] entity 010 voip
    [RouterB-voice-dial-entity10] match-template 010....
    [RouterB-voice-dial-entity10] address sip ip 1.1.1.1
    [RouterB-voice-dial-entity10] quit
    

    # Configure the POTS voice entity corresponding to the local interface Line 2/0.

    [RouterB-voice-dial] entity 2001 pots
    [RouterB-voice-dial-entity1001] match-template 07552001
    [RouterB-voice-dial-entity1001] line 2/0 
    [RouterB-voice-dial-entity1001] quit
    

    # Configure the POTS voice entity corresponding to the local interface Line 2/1.

    [RouterB-voice-dial] entity 2002 pots
    [RouterB-voice-dial-entity1002] match-template 07552002
    [RouterB-voice-dial-entity1002] line 2/1