Example: Configuring Integrated Convergence Services to Provide VoIP Support for a Branch Using a PBX Device

This example shows how to configure the SRX210 device as a front end to a PBX device to provide users at a customer site branch whose systems are directly connected to the PBX device, or connected on a LAN, with VoIP capability and additional PSTN trunks.

Requirements

This example uses the following hardware and software components:

Be sure that you have:

Before you begin, read the following topics:

Overview

This example uses a fictitious company called YourPlace to illustrate configuration of the SRX210 with Integrated Convergence Services for a branch office as a front-end to a PBX system. YourPlace, a nationwide kitchenware, appliances, and furniture company with their headquarters in Boston, uses PBX systems for their telephony requirements at their branch offices. PBX devices offer cost savings on internal phone calls and local calls and provide fax machine and modem support.

Because the PBX system serves their needs and supports their requirements, the company is reluctant to replace it with other technology or services. However, the company wants to reduce their cost of long-distance and international calls by using VoIP instead of the local PSTN. Also, recently their call routing usage to the PSTN has increased, and they have outgrown their current capacity.

The company wants to enhance their use of PBX devices with new technology that provides their branch offices with VoIP support. To this end, the company will deploy either SRX210 or SRX240 devices with Integrated Convergence Services at their branch offices. The San Francisco branch office will use the SRX210 with the 2 Port Foreign Exchange Subscriber (FXS)/2-Port Foreign Exchange Office (FXO) Mini Physical Interface Module (Mini-PIM as a front end to their PBX system.

Table 15 identifies the interfaces on the SRX210 base system and the 2 Port Foreign Exchange Subscriber (FXS)/2-Port Foreign Exchange Office (FXO) Mini Physical Interface Module (Mini-PIM).

Table 15: SRX210 Base System Using 2 Port FXS/2 Port FX0 Mini-PIM

Onboard Interfaces

2 Port FXS + 2 Port FX0 Mini-PIM

fxs-0/0/10

fxs-0/0/11

fxo-0/0/12

fxo-0/0/13

fxs-1/0/0

fxs-1/0/1

fxo-1/0/2

fxo-1/0/3

This example shows how to configure the following components to deploy the SRX Series SCS as a front-end to a PBX device:

Topology to Be Provided

Configuration

Configuring Trunks

CLI Quick Configuration

To quickly configure trunks for routing calls, copy the following commands and paste them into the CLI.

[edit]set services convergence-services trunk sip1 trunk-type sip peer-proxy-server description sfbr-to-hq-axises set services convergence-services trunk sip1 trunk-type sip peer-proxy-server address fqdn sip.axises.com set services convergence-services trunk sip1 trunk-type sip peer-proxy-server codec G711-MU set services convergence-services trunk sip1 trunk-type sip peer-proxy-server dtmf-method rfc-2833 set services convergence-services trunk sip1 trunk-type sip peer-proxy-server auth-id 14155556676set services convergence-services sip peer-proxy-server auth-password "$9$AFW.tBIKM8N-wO1b24oGU"set services convergence-services trunk fxo1 trunk-type fxo tdm-interface fxo-0/0/12 set services convergence-services trunk fxo2 trunk-type fxo tdm-interface fxo-0/0/13set services convergence-services trunk fxo3 trunk-type fxo tdm-interface fxo-1/0/2 set services convergence-services trunk fxo4 trunk-type fxo tdm-interface fxo-1/0/3set services convergence-services trunk fxs1 trunk-type fxs tdm-interface fxs-0/0/10set services convergence-services trunk fxs2 trunk-type fxs tdm-interface fxs-0/0/11set services convergence-services trunk fxs3 trunk-type fxs tdm-interface fxs-1/0/0set services convergence-services trunk fxs4 trunk-type fxs tdm-interface fxs-1/0/1

J-Web Quick Configuration

Step-by-Step Procedure

To configure trunks:

  1. Configure a SIP trunk.
    1. Select Convergence Services > Media Gateway > Trunks, and click Add to add a new trunk.
    2. In the New Trunk Configuration pane, type sip1 in the Trunk name box.
    3. Select sip from the Trunk type list.
    4. From the codec list, select G711–MU.
    5. From the tone generation list, select, rfc-2833.
    6. In the Description box, type sfbr-to-hq-axises.
    7. In the Authentication box, type 14155556676.
    8. In the Authentication password box, type 09dew1.
    9. In the Port number box, type 5060.
    10. From the Transport list, select udp.
  2. Configure FXO interfaces for PSTN trunks.
    1. Select Convergence Services > Media Gateway > Trunks, and click Add.
    2. In the New Trunk Configuration pane, type fxo1 in the Trunk name box.
    3. Select fxo from the Trunk type list.
    4. In the TDM interface box, type fxo-0/0/12.
    5. Click OK.
    6. Click Add to add a second FXO trunk.
    7. In the New Trunk Configuration pane, type fxo2 in the Trunk name box.
    8. Select fxo from the Trunk type list.
    9. In the TDM interface box, type fxo-0/0/13.
    10. Click OK.
    11. Click Add to add a third FXO trunk.
    12. In the New Trunk Configuration pane, type fxo3 in the Trunk name box.
    13. Select fxo from the Trunk type list.
    14. In the TDM interface box, type fxs-1/0/0.
    15. Click OK.
    16. Click Add to add a fourth FXO trunk.
    17. In the New Trunk Configuration pane, type fxo4 in the Trunk name box.
    18. Select fxo from the Trunk type list.
    19. In the TDM interface box, type fxo-1/0/3.
  3. Configure FXS interfaces to be used for communication between the SRX210 device and the PBX device.
    1. Click Add to add the first FXS trunk.
    2. In the New Trunk Configuration pane, type fxs1 in the Trunk name box.
    3. Select fxs from the Trunk type list.
    4. In the TDM interface box, type fxs-0/0/10.
    5. Click OK.
    6. Click Add to add the second FXS trunk.
    7. In the New Trunk Configuration pane, type fxs2 in the Trunk name box.
    8. Select fxs from the Trunk type list.
    9. In the TDM interface box, type fxs-0/0/11.
    10. Click OK.
    11. Click Add to add the third FXS trunk.
    12. In the New Trunk Configuration pane, type fxs3 in the Trunk name box.
    13. Select fxs from the Trunk type list.
    14. In the TDM interface box, type fxs-1/0/0.
    15. Click OK.
    16. Click Add to add the fourth FXS trunk.
    17. In the New Trunk Configuration pane, type fxs4 in the Trunk name box.
    18. Select fxs from the Trunk type list.
    19. In the TDM interface box, type fxs-1/0/1
  4. Click OK to check your configuration and save it as a candidate configuration.
  5. Click OK to check your configuration and save it as a candidate configuration.
  6. If you are done configuring the device, click 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”.

  1. Specify the SIP trunk name and type.
    [edit services convergence-services]user@host# edit trunk sip1 trunk-type sip peer-proxy-server
  2. Specify the FQDN address of the SIP trunk service provider peer proxy server.
    [edit services convergence-services trunk sip1 trunk-type sip peer-proxy-server]user@host# set address fqdn sip.axises.com
  3. Configure the authentication ID and password used to register to the peer-proxy-server.

    Note:

    The SIP trunk service provider provides you with the authentication ID and password.

    [edit services convergence-services trunk sip1 trunk-type sip peer-proxy-server]user@host# set auth-id 14155556676user@host# set auth-password 09dew1
  4. Configure the codec and the DTMF method for the SIP trunk.
    [edit services convergence-services trunk sip1 trunk-type sip peer-proxy-server]user@host# set codec G711–MU dtmf-method rfc-2833
  5. Provide a description of the SIP trunk configuration, such as something that identifies the branch location or the peer-proxy-server.
    [edit services convergence-services trunk sip1 trunk-type sip peer-proxy-server]user@host# set description sfbr-to-hq-axises
  6. Configure FXO interfaces for PSTN trunks.
    [edit services convergence-services]user@host# set trunk fxo1 trunk-type fxo tdm-interface fxo-0/0/12user@host# set trunk fxo2 trunk-type fxo tdm-interface fxo-0/0/13user@host# set trunk fxo3 trunk-type fxo tdm-interface fxo-1/0/2user@host# set trunk fxo4 trunk-type fxo tdm-interface fxo-1/0/3
  7. Configure FXS interfaces for communication between the SRX210 and the PBX device.
    [edit services convergence-services]user@host# set trunk fxs1 trunk-type fxs tdm-interface fxs-0/0/10user@host# set trunk fxs2 trunk-type fxs tdm-interface fxs-0/0/11user@host# set trunk fxs3 trunk-type fxs tdm-interface fxs-1/0/0user@host# set trunk fxs4 trunk-type fxs tdm-interface fxs-1/0/1

Results

From configuration mode, confirm your SIP trunk configuration by entering the show services convergence-services trunk sip1 command.

For each FXO and FXS trunk configuration, type the show services convergence-services trunk trunk-name command. This example shows how to confirm the fxo1 trunk configuration.

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 trunk sip1trunk-type {sip {peer-proxy-server {description sfbr-to-hq-axises;address {fqdn sip.axises.com;}codec G711-MU;dtmf-method rfc-2833;auth-id 14155556676;auth-password "$9$AFW.tBIKM8N-wO1b24oGU"; ## SECRET-DATA}}user@host show services convergence-services trunk fxo1trunk-type {fxo {tdm-interface fxo-1/0/2;}}

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

Configuring Trunk Groups

CLI Quick Configuration

To quickly configure trunk-groups, copy the following commands and paste them into the CLI.

[edit ] set services convergence-services trunk-group sip-trnk-grp trunk sip1 set services convergence-services trunk-group fxs-pstn-grp-911 trunk fxo2 set services convergence-services trunk-group fxo-pstn-trnk-grp trunk fxo1 trunk fxo3 trunk fxo4 set services convergence-services trunk-group fxs-mgw-pbx-grp trunk fxs1 trunk fxs2 trunk fxs3 trunk fxs4

J-Web Quick Configuration

Step-by-Step Procedure

To configure trunk groups containing the preconfigured trunks:

  1. Select Convergence Services > Media Gateway > Trunk groups, and click Add to add a new trunk group..
    1. In the New Trunk Group Configuration pane, type sip-trnk-grp in the Trunk group name box.
    2. From the Available trunks section, move sip1 to the Selected trunks section.
    3. Click OK.
    4. Click Add to add a second trunk group.
    5. In the New Trunk Group Configuration pane, type fxo-pstn-grp-911 in the Trunk group name box.
    6. From the Available trunks section, move fxo2 to the Selected trunks section.
    7. Click OK.
    8. Click Add to add a third trunk group.
    9. In the New Trunk Group Configuration box, type fxo-pstn-trnk-grp in the Trunk group name box.
    10. From the Available Trunks section, move fxo1, fxo3, and fxo4 to the Selected trunks section.
    11. Click OK.
    12. Click Add to add a fourth trunk group.
    13. In the New Trunk Group Configuration pane, type fxs-mgw-pbx-grp in the Trunk group name box.
    14. From the Available Trunks section, move fxo1, fxo2, fxo3, and fxo4 to the Selected trunks section.
    15. Click OK.
  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”.

  1. Create trunk groups for the SIP trunk, emergency 9-1-1 trunk, FXO trunks, and FXS trunks.
    [edit services convergence-services]user@host# set trunk-group sip-trnk-grp trunk sip1user@host# set trunk-group fxo-pstn-grp-911 trunk fxo2 user@host# set trunk-group fxo-pstn-trnk-grp trunk fxo1 trunk fxo3 trunk fxo4user@host# set trunk-group fxs-mgw-pbx-grp trunk fxs1 trunk fxs2 trunk fxs3 trunk

Results

From configuration mode, confirm your configuration by entering the show services convergence-services trunk-group trunk-group-name command for each trunk group. 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 trunk-group sip-trnk-grptrunk sip1;user@host show services convergence-services trunk-group fxo-pstn-grp-911 trunk fxo2;user@host show services convergence-services trunk-group fxo-pstn-trnk-grptrunk [ fxo1 fxo3 fxo4 exit ];user@host show services convergence-services trunk-group fxs-mgw-pbx-grptrunk [ fxs1 fxs2 fxs3 fxs4 ];

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

Configuring Digit Transform Rules

CLI Quick Configuration

To quickly configure digit transform rules, copy the following commands and paste them into the CLI.

[edit]set services convergence-services digit-manipulation digit-transform stripleading7 regular-expression "s/^7//"set services convergence-services digit-manipulation digit-transform stripleading8 regular-expression "/^8//"set services convergence-services digit-manipulation digit-transform stripleading9 regular-expression "s/^9//"

J-Web Quick Configuration

Step-by-Step Procedure

Create three digit transform rules.

  1. Select Configure>Convergence-Services>Dial Plan>Digit Manipulation and click Add.
    1. In the New digit manipulation configuration pane, type stripleading7 in the Digit Transform box.
    2. In the Regular Expression box, type s/^7//.
    3. Click OK.
    4. Click Add to add the second digit transform rule.
    5. In the New digit manipulation configuration pane, type stripleading8 in the Digit Transform box.
    6. In the Regular Expression box, type s/^8//.
    7. Click OK.
    8. Click Add to add the third digit transform rule.
    9. In the New digit manipulation configuration pane, type stripleading9 in the Digit Transform box.
    10. In the Regular Expression box, type s/^9//.
    11. Click OK.
  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”.

  1. Configure three digit transform rules.
    [edit services convergence-services digit-manipulation]user@host set digit-transform stripleading7 regular-expression s/^7//user@host# set digit-transform stripleading8 regular-expression s/^8//user@host# set digit-transform stripleading9 regular-expression s/^9//

Results

From configuration mode, confirm your configuration by entering the show services convergence-services digit-manipulation digit-transform digit-transform-rule-name command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it. This example shows use of the command for the stripleading9 digit transform rule.

user@host show services convergence-services digit-manipulation digit-transform digit-transform-ruledigit-transform stripleading9 {regular-expression "s/^9//";}

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

Configuring the SRX Series SCS Dial Plan

CLI Quick Configuration

To quickly configure the SCS dial plan, copy the following commands and paste them into the CLI.

[edit]set services convergence-services dial-plan SF-dialplan route-pattern 9911 call-type emergency-call set services convergence-services dial-plan SF-dialplan route-pattern 9911 trunk-group fxo-pstn-grp-911 digit-transform stripleading9 set services convergence-services dial-plan SF-dialplan route-pattern 71xxxxxxxxxx call-type long-distance-call set services convergence-services dial-plan SF-dialplan route-pattern 71xxxxxxxxxx trunk-group sip-trnk-grp digit-transform stripleading7 set services convergence-services dial-plan SF-dialplan route-pattern 71xxxxxxxxxxxxxx call-type international-call set services convergence-services dial-plan SF-dialplan route-pattern 71xxxxxxxxxxxxxx trunk-group sip -trnk-grp digit-transform stripleading7 set services convergence-services dial-plan SF-dialplan route-pattern 8xxxxxxx call-type local-call set services convergence-services dial-plan SF-dialplan route-pattern 8xxxxxxx trunk-group fxo-pstn-tr nk-grp digit-transform stripleading8 set services convergence-services dial-plan SF-dialplan route-policy from-pstn-to-pbx1 term next-hop-pbx1 from trunk-group fxo-pstn-trnk-grp set services convergence-services dial-plan SF-dialplan route-policy from-pstn-to-pbx1 term next-hop-pbx1 then route next-hop trunk-group fxs-mgw-pbx-grp set services convergence-services dial-plan SF-dialplan route-policy sip-trunk-service-provider term next-hop-pbx1-from-SIP from trunk-group sip-trnk-grp set services convergence-services dial-plan SF-dialplan route-policy sip-trunk-service-provider term next-hop-pbx1-from-SIP then route next-hop trunk-group fxs-mgw-pbx-grp

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”.

  1. Specify the dial plan name.
    [edit services convergence-services]user@host edit dial-plan SF-dialplan
  2. Create a route pattern for emergency calls.
    [edit services convergence-services dial-plan SF-dialplan]user@host# set route-pattern 9911 trunk-group fxo-pstn-grp-911 digit-transform stripleading9user@host# set route-pattern 9911 call-type emergency-call
  3. Create route patterns for routing long-distance and international calls from the PBX to the SIP trunk.
    [edit services convergence-services dial-plan SF-dialplan]user@host# set route-pattern 71xxxxxxxxxx trunk-group sip-trnk-grp digit-transform stripleading7user@host# set route-pattern 71xxxxxxxxxx call-type long-distance-calluser@host set route-pattern 71xxxxxxxxxxxxxx trunk-group sip-trnk-grp digit-transform stripleading7user@host# set route-pattern 71xxxxxxxxxxxxxx call-type international-call
  4. Create a route pattern for routing some local calls to the PSTN.
    [edit services convergence-services dial-plan SF-dialplan] user@host set route-pattern 8xxxxxxx trunk-group fxo-pstn-trnk-grp digit-transform stripleading8user@host set route-pattern 8xxxxxxx call-type local-call
  5. Configure a route policy to route calls from the PSTN to the PBX
    [edit services convergence-services dial-plan SF-dialplan] user@host set route-policy from-pstn-to-pbx1 term next-hop-pbx1 from trunk-group fxo-pstn-trnk-grpuser@host set route-policy from-pstn-to-pbx1 term next-hop-pbx1 then route next-hop trunk-group fxs-mgw-pbx-grp
  6. Configure a route policy to route calls from the SIP trunk to the PBX.
    [edit services convergence-services dial-plan SF-dialplan] user@host set route-policy sip-trunk-service-provider term next-hop-pbx1-from-SIP from trunk-group sip-trnk-grpuser@host set route-policy sip-trunk-service-provider term next-hop-pbx1-from-SIP then route next-hop trunk-group fxs-mgw-pbx-grp

Results

From configuration mode, confirm your configuration by entering the show services convergence-services dial-plan SF-dialplan 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 dial-plan SF-dialplanroute-pattern 9911 {call-type {emergency-call;}trunk-group fxo-pstn-grp-911 {digit-transform stripleading9;}route-pattern 9911 {call-type {emergency-call;}}route-pattern 71xxxxxxxxxx {call-type {long-distance-call;}trunk-group sip-trnk-grp {digit-transform stripleading7;}}route-pattern 71xxxxxxxxxxxxxx {call-type {international-call;}trunk-group sip-trnk-grp {digit-transform stripleading7;}}route-pattern 8xxxxxxx {call-type {local-call;}trunk-group fxo-pstn-trnk-grp {digit-transform stripleading8;}}route-policy from-pstn-to-pbx1 {term next-hop-pbx1 {from {trunk-group fxo-pstn-trnk-grp;}then {route {next-hop {trunk-group fxs-mgw-pbx-grp;}}}}}route-policy sip-trunk-service-provider {term next-hop-pbx1-from-SIP {from {trunk-group sip-trnk-grp;}then {route {next-hop {trunk-group fxs-mgw-pbx-grp;}}}}}

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

Verification

To confirm that the configuration is working properly, this task:

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