Builds a swiGetLocalStreamInfo message to return information about the specified local stream.
U32 txswiGetLocalStreamInfo ( CPIPKT *pkt, SWI_LOCALSTREAM_ARGS *args, void *buffer, unsigned size)
Argument |
Description |
pkt |
Pointer to the CPI packet to be formatted into a TX SWI request message. NULL = Return the byte length of the CPI packet required to send the request. |
args |
Pointer to local stream arguments. Refer to Details for more information. |
buffer |
Pointer to stream-specific information. |
size |
Size of buffer (in bytes). |
Return value |
Description |
SUCCESS |
If pkt is NULL, the size of the required CPI packet is returned. If pkt is not NULL, 0 is returned to indicate a successful request, or an error code is returned if the request failed. |
MVIP95_ERR_INVALID_PARAMETER |
Invalid count. |
The following table lists the settings for the args parameter used to trigger the commands:
deviceid |
Parameterid (TX_X_…) |
Buffer |
Description |
X_FRAMER_DEVICE |
CARRIER_STATUS |
TxT1E1_CarrierStatus |
Get status of the T1/E1 trunk. |
X_FRAMER_DEVICE |
PERF_REPORT |
TxT1E1_PerfReport |
Get a performance report. |
X_FRAMER_DEVICE |
CHANNEL_STATUS |
TxT1E1_ChannelStatus |
Get channel status. |
X_COMMPROC_DEVICE |
PORT_COMM_CONFIG |
SWIX_COMM_PORT_ALL |
Get the configuration of all ports. |
For more information, refer to swiGetLocalStreamInfo in the Switching Service Developer's Reference Manual.