sl_query_trunk_id subroutine

Purpose

Query the signaling line identifiers for a specified trunk.

Library

The signaling interface library (libsl.a).

C syntax

#include <slsigpr.h>
...
SL_RET_CODE 	            sl_query_trunk_id (
    int 	                iVpackNo,
    SL_TRUNK_ID_ST *    	pslTrunkIdSt
);

Description

This subroutine returns the trunk id and all the channel ids for the specified pack. Each trunk has an associated string to identify it. Each channel has an associated string to identify it. These parameters are used to hold the exchange data link identifiers (see Exchange data link line identifiers). The organization of SL_TRUNK_ID_ST is shown in Figure 1.

Parameters

iVpackNo
The required pack, in the range SL_MIN_TRUNK_ID to SL_MAX_TRUNK_ID (see Pack and channel numbers).
pslTrunkIdSt
A pointer to the trunk id information structure, which is filled in on return from this subroutine.

Return values

SLRC_OK
Successful.
SLRC_INVALID_CHAN
Invalid value specified for iVpackNo.
SLRC_ERRNO
An AIX error has occurred. Check the value of errno for more information.

Related information