(Page 24 of 32 in this chapter) Version
typedef union _NMS_V5_E1_LOCATION_T
{
struct {
DWORD boardNb;
DWORD trunkNb;
} CG;
}NMS_V5_E1_LOCATION_T
typedef void( *NMS_V5_E1_STATUS_CALLBACK_T )
(NMS_V5_INTERFACE_ID_T interfaceId, NMS_V5_E1_LOCATION_T channel_loc, NMS_V5_E1_STATUSMASK_T e1_status) ;
typedef union _NMS_V5_CHANNEL_LOCATION_T
{
struct {
DWORD boardNb;
DWORD trunkNb;
DWORD timeslotNb;
} CG;
}NMS_V5_CHANNEL_LOCATION_T
typedef void( *NMS_V5_CHANNEL_CALLBACK_T )
( NMS_V5_INTERFACE_ID_T interfaceId,
NMS_V5_CHANNEL_LOCATION_T channel_loc,
NMS_V5_CHANNEL_EVENT_T channel_event,
void *databuffer,
DWORD datasize);
|
Parameter
|
Description
|
|---|---|
|
boardNb
|
Logical board number where an E1 like is located.
|
|
trunkNb
|
Physical trunk number associated with the E1 link.
|
|
Argument
|
Description
|
|---|---|
|
interfaceId
|
The interface ID where the E1 link is provisioned.
|
|
e1_loc
|
E1 link location structure.
|
|
status_event
|
E1 link event bit mask.
|
void ProvisionInterface( void )
{
NMS_V5_INTERFACE NewInterface = {0};
NMS_V5_RESULT_T NmsResult;
BYTE szMessage[NMS_V5_MIN_TRACE_BUF_SIZE] = {0};
char Selection;
printf("NMS_V5ProvisionInterface:\n");
/* Set parameters */
promptdw_nodft("Enter InterfaceId", &NewInterface.InterfaceId);
NewInterface.ChannelRxBufferSize = NMS_V5_RX_BUFFER_SIZE;
NewInterface.ChannelRxBuffer = calloc(
NewInterface.ChannelRxBufferSize, 1 );
/* Configure E1 location parameters */
do
{
Selection = 'y';
promptchar("Add a new E1? (y/n)", &Selection );
if(Selection == 'y')
{
GetE1LocationNMS(
(Page 24 of 32 in this chapter) Version