(Page 9 of 12 in this chapter) Version
char epName[20]; // endpoint name
unsigned secDelay = 0; // restart delay in seconds
strcpy(epName,"DS001");
// Set endpoint in service: RestartInProgress sent to call agent
ret = mgcSetEndpointServiceState (GWctahd , epName, TRUE, secDelay);
// GWctahd = CTA Handle returned from ctaCreateContext
// for the application
// Or set out of service (also RestartInProgress sent to call
// agent)
// ret = mgcSetEndpointServiceState (GWctahd , epName, FALSE, secDelay);
if (ret != SUCCESS )
{
printf ("mgcSetEndpointServiceState %s returned error 0x%x\n", epName, ret);
return FAILURE;
}
(Page 9 of 12 in this chapter) Version