PBX demonstration program: cdipbx

Name

cdipbx

Purpose

Demonstrates a PBX (private branch exchange) application using the CDI service.

Usage

cdipbx [options]

where options are:

Option

Description

-B [sw:]dev

T1 board [PPX switch number:] and board device number (oamsys.cfg board number). Default = 0:0.

-b [sw:]dev

CX 2000 or CX 2000C board [PPX switch number:] and board device number (oamsys.cfg board number). Default = 1:0.

-T n

T1 trunk or span number. Default = 1. The values are one based.

-C n

T1 channel or slot number on trunk or span. Default = 0. Value is zero based.

-c n

CX 2000 or CX 2000C board channel or slot number. Default = 0. Value is zero based.

-N n

Number of T1 channels. Default = 1.

-n n

Number of phone channels (CX 2000 or CX 2000C ports). Default = 1.

-x n

Base extension number (3 or 4 digits). Default = 100.


For example:

cdipbx -B0:0 -b1:1 -T1 -C0 -c0 -N1 -n5 -x101

Featured functions

cdiDisableBattery, cdiEnableBattery, cdiStartSignalDetector, cdiStartTimer, cdiStartTones, cdiStopSignalDetector, cdiStopTimer, cdiStopTones

Description

cdipbx simulates the functions of a PBX. It can be used in standalone mode with a single CX 2000 or CX 2000C board or with the call center demonstration program. In the CX 2000-only mode, calls can be made to local telephone extensions only. The local telephone extensions are governed by the -x option.

When used with the call center program, the PBX program provides local and off-premises calls.

Procedure

Standalone mode

Standalone mode uses only the CX 2000 or CX 2000C board.

To run cdipbx in standalone mode:

  1. Configure the boards as described in Preparing to run the demonstration programs.

  2. Boot the boards as described in Booting the system.

  3. Connect a 24-port cable to the top 24-port connector on the rear I/O connector of the CX 2000 or CX 2000C board and to a 24-port telephone jack breakout box.

  4. Plug a telephone into port 1 of the breakout box and another telephone into port 5 of the breakout box.

    Note: The configuration specified for the cdipbx is different from that used in the cdicc demonstration.

  5. Navigate to the following directory:

\nms\ctaccess\demos\cdipbx (Windows)

opt/nms/ctaccess/demos/cdipbx (UNIX)

  1. At a prompt, enter the following command:

  2. cdipbx -b1:1 -c0 -n5 -x101

    This command sets up the PBX demonstration program to use the first 5 ports of the CX 2000 or CX 2000C board. The -c0 option starts the demonstration program with CX2000 port 0. The -n5 option causes the demonstration program to use 5 consecutive ports. The first port's extension number is 101 (-x101). This instance of the PBX demonstration supports extensions 101 through 105. If you plug phones into ports 1 through 5 of the breakout box, you can dial any of the extensions in the range 101 through 105.

  3. Pick up the handset attached to port 1 of the breakout box and dial the three digit extension 105.

The telephone plugged into port 5 of the breakout box begins to ring.

  1. Pick up the handset and begin to converse.

  2. Hang up each handset.

Running cdipbx with cdicc

The PBX demonstration can be run with the call center demonstration. Expanding on the standalone mode example, you can run the demonstration to place calls both locally and off-premises.

Note: The command line setup for the PBX demonstration is similar to the outbound mode of the call center demonstration.

To run cdipbx:

  1. Configure the boards as described in Preparing to run the demonstration programs.

  2. Boot the boards as described in Booting the system.

  3. Connect a 24-port cable to the top 24-port connector on the rear I/O connector of the CX 2000 or CX 2000C board and to a 24-port telephone jack breakout box.

  4. Plug a telephone into port 1 of the breakout box and another telephone into port 11 of the breakout box.

  5. Place a T1 loopback cable into the T1 and T2 ports of the AG board.

  6. Navigate to the following directory:

\nms\ctaccess\demos\cdipbx (Windows)

opt/nms/ctaccess/demos/cdipbx (UNIX)

  1. At a prompt, enter the following command:

  2. cdipbx -B0:0 -b1:1 -T1 -C0 -c0 -N1 -n5 -x101

    This command sets up the PBX demonstration to use the first 5 ports of the CX 2000 or CX 2000C board as well as enabling trunk 1 (-B0:0 -T1). The -c0 option starts the demonstration with CX 2000 port 0. The -n5 option causes the demonstration to use 5 consecutive ports. The first port's extension number is 101 (-x101). This instance of the PBX demonstration supports extensions 101 through 105. If you plug telephones into ports 1 through 5 of the breakout box, you can dial any of the extensions in the range 101 through 105.

The -N1 option indicates you are using only one of the T1 channels.

  1. Start the call center demonstration in another command prompt window in either inbound or outbound mode and follow the steps in CX 2000 call center demonstration program: cdicc.