---
name: "pstngw"
section: "1"
platform: "linux"
package: "pstngw"
version: "1.3.1-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/pstngw"
---

# pstngw(1)

H.323 to PSTN gateway

## NAME

pstngw - H.323 to PSTN gateway

## SYNOPSIS

**pstngw** \[*options*\] \[ *line1addr* ... \]

## DESCRIPTION

**pstngw** is a very simple PSTN to H.323 gateway program using the OpenH323 library. It allows H.323 clients to make outgoing calls, and incoming calls to be routed to a specific H.323 client.

To make an outgoing call, you must have a client that supports PSTN gateways. If a H.323 client calls the gateway with no gateway information, and the -d option was used then that number is automatically called.

## OPTIONS

All of the command line options to **pstngw**

can be specified in long form, and the most commonly used options also have single character equivalents. The long forms can also be used in the **pstngw** configuration file.

- **--aec**, *level*

  Set the AEC (audio echo cancellation) level when using a Quicknet card. *level* must be in the range 0 through 3. The default value is 2 (medium).

- **-c**, **--calling-tone**

  Enable PSTN calling tones translation.

- **-C**, **--country** *code*

  Set the country settings for PSTN card.

- **-d**, **--dial** *phone*

  Default number to call.

- **-D**, **--disable** *codec*

  Disable the specified codec (may be used multiple times).

- **-f**, **--force-dial**

  Force dial number in call.

- **-h**, **--help**

  Show help message.

- **-i**, **--interface** *interface*

  Only bind to the specified network interface address. By default,  **pstngw** automatically listens for incoming calls on all TCP/IP network interfaces available on the host machine.

- **-j**, **--jitter** *delay*

  Set jitter buffer to *delay* ms. By default, the jitter buffer is set to 50 ms.

- **-n**, **--numframes** *n*

  Number of audio frames per ethernet packet.

- **-o**, **--output** *filename*

  Write trace output (enabled with the **-t** option) to the specified file rather than to stderr.

- **-P**, **--prefer** *codec*

  Prefer the specified codec (may be used multiple times).

- **-q**, **--quicknet** *num*

  Use the specified Linux telephony device (/dev/phone*num*).

- **--save**

  Save arguments in configuration file.

- **--tos** *value*

  Set the Type Of Service in outgoing RTP packets to the specified value.

- **-t**, **--trace**

  Enable debug tracing, which displays messages at run-time to assist in debugging or problem identification. Specifying this option multiple time increases the amount of information displayed.  **pstngw** has trace statements up to level 5. Use the **-o** option to write the trace information to a file rather than to stderr.

- **-u**, **--user** *name*

  Set local endpoint alias name. Can be used multiple times to add multiple aliases. By default, the alias list contains a single entry with the current user's login name.

- **-v**, **--vpb** *dev*

  Use Voicetronics VPB4.

## SEE ALSO

None
