Example: Configuring an Integrated Convergence Services Basic Media Gateway

This example shows how to create a basic configuration for an Integrated Convergence Services SRX Series MGW. You can take this approach to get started with your deployment to ensure that you can place and receive calls.

Requirements

This example uses the following components

Overview

This example shows how to configure a basic SRX Series MGW that allows you to make calls from SIP and analog phones configured for it and receive calls for these phones. It presumes that the peer call server is accessible to provide call handling and routing services for phones at the branch office.

In this example, you configure the following components:

Note: By default, users can make only intrabranch office and emergency calls.

Figure 3 shows how the SRX Series MGW, on behalf of analog phones and faxes, communicates with the peer call server when the peer call server is reachable. It also shows how SIP phones communicate with the peer call server.

In addition, the figure shows:

Figure 3: SRX Series Media Gateway Call Flow When the Peer Call Server Is Reachable

Image g031161.gif

Configuration

Configuring the Peer Call Server

CLI Quick Configuration

To quickly configure the peer call server, copy the following command and paste it into the CLI.

[edit]set services convergence-services peer-call-server peer-call-server-new-yorkHQ address ipv4-addr 13.14.16.14

J-Web Quick Configuration

Step-by-Step Procedure

To configure the peer call server with the minimum required information:

  1. Define the peer call server.
    1. Select Configure > Convergence Services > Call Server, and click Add.
    2. In the Name box, type peer-call-server-new-yorkHQ.
    3. In the IPv4 box of the Address pane, type 13.14.16.14.
  2. Click OK to check your configuration and save it as a candidate configuration.
  3. If you are done configuring the device, click Commit Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To configure the peer call server with minimum required information:

  1. Specify the peer call server name and its IPv4 address.
    [edit services convergence-services]user@host# set peer-call-server peer-call-server-new-yorkHQ address ipv4-addr 13.14.16.14

Results

From configuration mode, confirm your configuration by entering the show services convergence-services peer-call-server command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host# show services convergence-services peer-call-server peer-call-server-new-yorkHQaddress {ipv4-addr 13.14.16.14;}

If you are done configuring the device, enter commit from configuration mode.

Configuring a Class of Restriction Policy for an Analog Station

CLI Quick Configuration

To quickly configure the COR policy for the analog station, copy the following commands and paste them into the CLI.

[edit]set services convergence-service class-of-restriction cor-for-admins policy allow-inter-branch-calls permission allow call-type inter-branch-callset services convergence-service class-of-restriction cor-for-admins policy allow-local-calls permission allow call-type local-call

J-Web Quick Configuration

Step-by-Step Procedure

To create the COR policy for the analog station:

  1. Select Convergence Services > Station > Class of Restriction, and click Add to add the new class of restriction configuration.
  2. In the Class of restriction box, type cor-for-admins.
  3. Click Add to add a policy that allows a user to make inter-branch office calls.
  4. In the Policy name box, type allow-inter-branch-calls.
  5. Select Allow from the Permission list.
  6. Select inter-branch-call from the Calltype list.
  7. Click Add to add a policy that allows the user to make local calls.
  8. In the Policy name box, type allow-local-calls.
  9. Select Allow from the Permission list.
  10. Select local-call from the Calltype list.
  11. Click OK to check your configuration and save it as a candidate configuration.
  12. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To create the COR policy for the analog station:

  1. Configure a policy for interbranch office calls.
    [edit services convergence-services]user@host# set class-of-restriction cor-for-admins policy allow-inter-branch-calls permission allow call-type inter-branch-call
  2. Configure a policy for local calls.
    [edit services convergence-services]user@host# set class-of-restriction cor-for-admins policy allow–local–calls permission allow call-type local-call

Results

From configuration mode, confirm your configuration by entering the show class-of-restriction command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host show services convergence-services class-of-restriction cor-for-adminspolicy allow-inter-branch-calls {call-type {inter-branch-call;}permission allow;}policy allow-local-calls {call-type {local-call;}permission allow;}

If you are done configuring the device, enter commit from configuration mode.

Configuring an Analog Station for a User

CLI Quick Configuration

To quickly configure the analog station for a user, copy the following commands and paste them into the CLI.

[edit]set services convergence-services station alices-telephone extension 65555 set services convergence-services station alices-telephone class-of-restriction-for-admins set services convergence-services station alices-telephone caller-id "Alice Marshall, 333 936-5555" set services convergence-services station alices-telephone direct-inward-dialing 3339365555 set services convergence-services station alices-telephone station-type analog tdm-interface fxs-0/0/10

J-Web Quick Configuration

Step-by-Step Procedure

To configure the analog station for a user:

  1. Select Configure > Convergence Services > Station, and click Add.
  2. Define a new analog station.
    1. In the Name box, type alices-telephone.
    2. In the Extension box, type 65555.
    3. In the Caller ID box, type “Alice Marshall, 333 936-5555”.
    4. In the Direct Inward Dialing box, type “3339365555”.
  3. Specify the station type.
    1. Click the Enable Analog check box.
    2. In the TDM Interface box in the Enable Analog pane, type fxs-0/0/10.
  4. Click OK to check your configuration and save it as a candidate configuration.
  5. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To configure the COR policy for the analog station:

  1. Specify the name for the station.
    [edit services convergence-services]user@host# set station alices-telephone
  2. Specify the extension number of the station.
    [edit services convergence-services]user@host# set station alices-telephone extension 65555
  3. Specify the name of a preconfigured class-of-restriction configuration.
    [edit services convergence-services]user@host# set station alices-telephone class-of-restriction cor-for-admins
  4. Specify caller ID information displayed to called parties.
    [edit services convergence-services]user@host# set station alices-telephone caller-id “Alice Marshall, 333 936-5555”
  5. Specify the station type and the interface to be used for it.
    [edit services convergence-services]user@host# set station alices-telephone station-type analog tdm-interface fxs-0/0/10
  6. Configure DID capability for the station.
    [edit services convergence-services]user@host# set station alices-telephone direct-inward-dialing “3339365555”

Results

From configuration mode, confirm your configuration by entering the show station command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host show services convergence-services station alices-telephoneextension 65555; class-of-restriction cor-for-admins; caller-id "Alice Marshall, 333 936-5555"; direct-inward-dialing 3339365555; station-type {analog {tdm-interface fxs-0/0/10;}}}

If you are done configuring the device, enter commit from configuration mode.

Configuring an Analog Station for a Lobby Phone

CLI Quick Configuration

To quickly configure the analog station for the lobby phone, copy the following commands and paste them into the CLI.

[edit]set services convergence-services station lobby-Bldg2 extension 65655 set services convergence-services station lobby-Bldg2 caller-id “lobby building 2”set services convergence-services station lobby-Bldg2 station-type analog tdm-interface fxs-0/0/11

J-Web Quick Configuration

Step-by-Step Procedure

To configure the analog station for the lobby phone:

  1. Select Configure>Convergence Services >Station, and click Add.
    1. In the Name box, type lobby-Bldg2.
    2. In the Extension box, type 65655.
    3. In the Caller ID box, type “lobby building 2”.
  2. Specify the station type and its interface.
    1. Click the Enable Analog check box.
    2. In the TDM Interface box on the Enable Analog pane, type fxs-0/0/11.
  3. Click OK to check your configuration and save it as a candidate configuration.
  4. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To configure the analog station for the lobby phone:

  1. Specify the name for the station.
    [edit services convergence-services]user@host# set station lobby-Bldg2
  2. Specify the extension number of the station.
    [edit services convergence-services]user@host# set station lobby-Bldg2 extension 65655
  3. Specify caller ID information to display to called parties.
    [edit services convergence-services]user@host# set station lobby-Bldg2 caller-id “lobby building 2”
  4. Specify the station type and the interface to be used for the station.
    [edit services convergence-services]user@host# set station lobby-Bldg2 station-type analog tdm-interface fxs-0/0/11

Results

From configuration mode, confirm your configuration by entering the show station command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host show services convergence-services station lobby-Bldg2 extension 65655; caller-id “lobby building 2”; station-type {analog {tdm-interface fxs-0/0/11;}}}

If you are done configuring the device, enter commit from configuration mode.

Creating a Class-of-Restriction Configuration for SIP Stations

CLI Quick Configuration

To quickly configure the COR configuration for SIP stations, copy the following commands and paste them into the CLI.

[edit]set services convergence-services class-of-restriction cor-for-managers policy allow-inter-branch-calls call-type inter-branch-call set services convergence-services class-of-restriction cor-for-managers policy allow-inter-branch-calls permission allow set services convergence-services class-of-restriction cor-for-managers policy allow-local-calls call-type local-call set services convergence-services class-of-restriction cor-for-managers policy allow-local-calls permission allow set services convergence-services class-of-restriction cor-for-managers policy allow-long-distance-calls call-type long-distance-call set services convergence-services class-of-restriction cor-for-managers policy allow-long-distance-calls permission allow set services convergence-services class-of-restriction cor-for-managers policy allow-international-calls call-type international-call set services convergence-services class-of-restriction cor-for-managers policy allow-international-calls permission allow

J-Web Quick Configuration

Step-by-Step Procedure

To create the COR configuration for SIP stations:

  1. Create the first COR policy.
    1. select Convergence Services>Station>Class of Restriction, and click Add.
    2. In the Class of restriction box, type cor-for-managers.
    3. Click Add.
    4. In the Policy name box, type allow-inter-branch-calls.
    5. Select Allow from the Permission list.
    6. Select inter-branch-call from the Calltype list.
  2. Create the second policy.
    1. Click Add.
    2. In the Policy name box, type allow-local-calls.
    3. Select Allow from the Permission list.
    4. Select local-call from the Calltype list.
  3. Create the third policy.
    1. Click Add.
    2. In the Policy name box, type allow-long-distance-call.
    3. Select Allow from the Permission list.
    4. Select long-distance-call from the Calltype list.
  4. Create the fourth policy.
    1. Click Add.
    2. In the Policy name box, type allow-international-calls.
    3. Select Allow from the Permission list.
    4. Select international-call from the Calltype list.
  5. Click OK to check your configuration and save it as a candidate configuration.
  6. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To create the COR configuration for SIP stations:

  1. Configure the first COR policy.
    [edit services convergence services]user@host#set class-of-restriction cor-for-managers policy allow-inter-branch-calls permission allow call-type inter-branch-call
  2. Configure the second COR policy.
    [edit services convergence services]user@host#set class-of-restriction cor-for-managers policy allow–local–calls permission allow call-type local-call
  3. Configure the third COR policy.
    [edit services convergence services]user@host#set class-of-restriction cor-for-managers policy allow–long-distance–calls permission allow call-type long-distance-call
  4. Configure the fourth COR policy.
    [edit services convergence services]user@host#set class-of-restriction cor-for-managers policy allow-international-calls permission allow call-type international-call

Results

From configuration mode, confirm your configuration by entering the show class-of-restriction command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host show services convergence-services class-of-restriction cor-for-managerspolicy allow-inter-branch-calls {call-type {inter-branch-call;}permission allow;}policy allow-local-calls {call-type {local-call;}permission allow;}policy allow-long-distance-calls {call-type {long-distance-call;}permission allow;}policy allow-international-calls {call-type {international-call;}permission allow;}

If you are done configuring the device, enter commit from configuration mode.

Configuring a SIP Template

CLI Quick Configuration

To quickly configure a SIP template, copy the following commands and paste them into the CLI.

[edit]set services convergence-services station-template sip-template sip-template-for-managers class-of-restriction cor-for-managers

J-Web Quick Configuration

Step-by-Step Procedure

To configure the SIP template:

  1. Select Convergence Services>Station>Station Template, and click Add.
    1. In the Template Name box, type sip-template-for-managers.
    2. Select the SIP button.
    3. From the Class of restriction list, select cor-for-managers.
  2. Click OK to check your configuration and save it as a candidate configuration.
  3. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To configure the SIP template:

  1. Configure the COR.
    [edit services convergence-services]user@host# set station-template sip-template sip-template-for-managers class-of-restriction cor-for-managers

Results

From configuration mode, confirm your configuration by entering the show station-template sip-template command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

user@host show services convergence-services station-template sip-template sip-template-for-managersclass-of-restriction cor-for-managers;

If you are done configuring the device, enter commit from configuration mode.

Configuring a SIP Station

CLI Quick Configuration

To quickly configure the SIP station, copy the following commands and paste them into the CLI.

[edit]set services convergence-services station sip-station-1 extension 861111 set services convergence-services station sip-station-1 class-of-restriction cor-for-managers set services convergence-services station sip-station-1 caller-id "Martin, 333 555-5555" set services convergence-services station sip-station-1 station-type sip

J-Web Quick Configuration

Step-by-Step Procedure

To configure the SIP station.

  1. Select Configure>Convergence Services> Station, and click Add.
    1. Type sip-station-1 in the Name box.
    2. Type the 861111 in the Extension box.
    3. Type cor-for-managers in the Class of Restriction box.
    4. Type Martin, 333 586–1111 in Caller ID box.
    5. Type sip-template-for-managers in the Template name box.
  2. Click OK to check your configuration and save it as a candidate configuration.
  3. If you are done configuring the device, click Commit>Options>Commit.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see “Using the CLI Editor in Configuration Mode”.

To configure the SIP station:

  1. Configure the station.
    user@host#set services convergence-services station sip-station-1 station-type sip user@host#set services convergence-services station sip-station-1 extension 861111 class-of-restriction cor-for-managers caller-id “Martin, 333 555-5555”

Results

From configuration mode, confirm your configuration by entering the show station command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host show services convergence-services station sip-station-1extension 861111;class-of-restriction cor-for-managers;caller-id "Martin, 333 555-5555";station-type {sip;}

If you are done configuring the device, enter commit from configuration mode.

Verification

To confirm that the configuration is working properly, perform these tasks:

Verifying That the Peer Call Server Is Reachable

Purpose

Verify that the SRX Series MGW and the peer call server are communicating.

Action

From operational mode, enter the show services convergence-services sip peers command.

Verifying That the SRX Series MGW Is Active

Purpose

Verify that the SRX Series MGW is active. Display the length of time that the Integrated Convergence Services media gateway call routing engine has been executing.

Action

From operational mode, enter the show services convergence-services media-gateway uptime command.

Related Topics