# ppxSetDefaultPattern

Sets the default pattern for a connection.

#### Prototype

DWORD ppxSetDefaultPattern ( PPXHD ppxhd, BYTE pattern )

Argument | Description
ppxhd | Handle returned by ppxCreateConnection or by ppxOpenConnection.
pattern | Default pattern (for example, 0x7F for mu-law or 0xD5 for A-law).

#### Return values

Return value | Description
SUCCESS |
CTAERR_DRIVER_ERROR | Underlying driver retrieved an unrecognized error. Call swiGetLastError to retrieve the MVIP device error code.
CTAERR_INVALID_HANDLE | ppxhd is not a valid connection handle.
CTAERR_OUT_OF_MEMORY | Unable to allocate memory.
CTAERR_SVR_COMM | Natural Access server communication error.
PPXERR_COMM_FAILURE | Problems were encountered when communicating with the PPX server.
PPXERR_DRIVER_OPEN_FAILED | Driver open failed, or the driver DLL or device was not found.
SWIERR_INVALID_STREAM | One or more of the specified streams is invalid.
SWIERR_INVALID_TIMESLOT | One or more of the specified timeslots is invalid.

#### Details

ppxSetDefaultPattern sets the default pattern (8-bit fixed pattern) for a connection. If listeners are attached to the connection but no talkers, the default pattern is sent to the listeners. If listeners are connected to a connection and the talker is removed, the default pattern is sent to the listeners.

Refer to Setting the silence pattern for a connection for more information.

#### See also

ppxAddListeners