# NMS ISDN Management service errors

The IMGT service error codes are presented in two tables:

- Alphabetically, by error code name, including a description of the problem and a possible solution.

- Numerically, by hexadecimal value, decimal value, and error name.

All Natural Access functions return a status code. If the return code is not SUCCESS (0), it is an error code indicating that the function has failed and the reason for the failure.

IMGT service error codes are defined in the include file imgtdef.h. The error codes are prefixed with IMGT. Error codes can also appear in the value field of a DONE event. Use the CTA_IS_ERROR macro to determine if a value is an error.

Because the IMGT service is a Natural Access service, IMGT functions can also receive Natural Access errors and reasons. Refer to the Natural Access Developer's Reference Manual for listings and descriptions of the Natural Access errors and reasons.

## Alphabetical error summary

The following table alphabetically lists the IMGT service errors. All errors are 32 bit.

Error name | Hexadecimal | Decimal | Description
--- | --- | --- | ---
IMGTERR_BAD_NAI | 0x00181001 | 1576961 | Invalid NAI specification.
IMGTERR_BUFFER_TOO_BIG | 0x00181004 | 1576964 | Buffer is too big.
IMGTERR_DRIVER_ERROR | 0x00181007 | 1576967 | Driver error.
IMGTERR_IMGT_NOT_STARTED | 0x00181016 | 1576982 | Management session has not been initialized.
IMGTERR_INVALID_BUFFER | 0x00181008 | 1576968 | Invalid buffer.
IMGTERR_INVALID_CONFIG | 0x00181002 | 1576962 | Invalid IMGT_CONFIG field.
IMGTERR_ISDN_NOT_STARTED | 0x00181015 | 1576981 | ISDN stack is not started.
IMGTERR_NAI_IN_USE | 0x00181006 | 1576966 | NAI is already configured.
IMGTERR_NO_UP_BUFFER | 0x00181003 | 1576963 | No incoming buffer.
IMGTERR_RCV_BUFFER_TOO_BIG | 0x00181005 | 1576965 | Incoming buffer is too big.

## Numerical error summary

The following table numerically lists the IMGT service errors:

Hexadecimal | Decimal | Error Name
--- | --- | ---
0x00181001 | 1576961 | IMGTERR_BAD_NAI
0x00181002 | 1576962 | IMGTERR_INVALID_CONFIG
0x00181003 | 1576963 | IMGTERR_NO_UP_BUFFER
0x00181004 | 1576964 | IMGTERR_BUFFER_TOO_BIG
0x00181005 | 1576965 | IMGTERR_RCV_BUFFER_TOO_BIG
0x00181006 | 1576966 | IMGTERR_NAI_IN_USE
0x00181007 | 1576967 | IMGTERR_DRIVER_ERROR
0x00181008 | 1576968 | IMGTERR_INVALID_BUFFER
0x00181015 | 1576981 | IMGTERR_ISDN_NOT_STARTED
0x00181016 | 1576982 | IMGTERR_IMGT_NOT_STARTED