ATTSplitSkillMeasurementsPresent_t requestItems;
requestItems.allMeasurements = true;
rcode = attQuerySplitSkillMeasurements( (ATTPrivateData_t * )&pdata, &split_device, &requestItems, intvCurrent);
rcode = cstaQueryDeviceInfo( acs_handle, 0, &split_device, (PrivateData_t * )&pdata );
long avgACDTalkTime;
short avgSpeedOfAnswer;
short agentsAvailable;
short callsWaiting;
if( event_block.eventHeader.eventClass == CSTACONFIRMATION &&
event_block.eventHeader.eventType == CSTA_MONITOR_CONF )
{
if( pdata.length )
{
ATTEvent_t privEvent;
rcode = attPrivateData( &pdata, &privEvent );
if( privEvent.eventType == ATT_QUERY_SPLIT_SKILL_MEASUREMENTS )
{
avgACDTalkTime = privEvent.u.querySplitSkillMeas.values.avgACDTalkTime;
avgSpeedOfAnswer = privEvent.u.querySplitSkillMeas.values.avgSpeedOfAnswer;
agentsAvailable = privEvent.u.querySplitSkillMeas.values.agentsAvailable;
callsWaiting = privEvent.u.querySplitSkillMeas.values.callsWaiting;
}
}
else printf( "\nNo Private data in delivered event" );
}
requestItems.allMeasurements = true;
rcode = attQuerySplitSkillMeasurements( (ATTPrivateData_t * )&pdata, &split_device, &requestItems, intvCurrent);
rcode = cstaQueryDeviceInfo( acs_handle, 0, &split_device, (PrivateData_t * )&pdata );
long avgACDTalkTime;
short avgSpeedOfAnswer;
short agentsAvailable;
short callsWaiting;
if( event_block.eventHeader.eventClass == CSTACONFIRMATION &&
event_block.eventHeader.eventType == CSTA_MONITOR_CONF )
{
if( pdata.length )
{
ATTEvent_t privEvent;
rcode = attPrivateData( &pdata, &privEvent );
if( privEvent.eventType == ATT_QUERY_SPLIT_SKILL_MEASUREMENTS )
{
avgACDTalkTime = privEvent.u.querySplitSkillMeas.values.avgACDTalkTime;
avgSpeedOfAnswer = privEvent.u.querySplitSkillMeas.values.avgSpeedOfAnswer;
agentsAvailable = privEvent.u.querySplitSkillMeas.values.agentsAvailable;
callsWaiting = privEvent.u.querySplitSkillMeas.values.callsWaiting;
}
}
else printf( "\nNo Private data in delivered event" );
}