NMS_V5StartInterface

Starts a provisioned interface.

Prototype

NMS_V5_RESULT_T NMS_V5StartInterface ( NMS_GR303_INTERFACE_ID_T interfaceId)

Argument

Description

interfaceId

Interface ID of a provisioned interface.


Return values

Return value

Description

NMSV5_SUCCESS

 

NMSV5_INTERNAL_FAILURE

Internal failure. Refer to the trace log for more information.

NMSV5_INVALID_INTERFACE_ID

Specified interface is not provisioned.

NMSV5_INVALID_STATE

Specified interface is already started.

NMSV5_NOT_INITIALIZED

NMS V5 library was not initialized with NMS_V5Initialize.


Details

NMS_V5StartInterface enables a specified interface. Applications must call NMS_V5Initialize and NMS_V5ProvisionInterface before calling NMS_V5StartInterface.

After an application calls NMS_V5StartInterface, the V5 library returns receive and transmit HDLC channel statistics reports by means of channel_callback functions and E1 link status reports by means of e1_status_callback functions.

See also

NMS_V5StopInterface

Example

void  StartInterface( void )
{
    NMS_V5_RESULT_T  NmsResult;
    DWORD            InterfaceId;

    printf("NMS_V5StartInterface:\n");    

    /* Get parameters */
    promptdw_nodft("Enter InterfaceId", &InterfaceId);

    NmsResult = NMS_V5StartInterface( InterfaceId );

    printf ("NMS_V5StartInterface:
             Result=%s\n",PRINT_RESULT(NmsResult));
}