?? rvh323mibstats.c
字號:
}
}
break;
}
case cmProtocolRAS:
case cmProtocolUnknown:
break;
}
return;
}
/************************************************************************
* getStatistic
* purpose: Get a statistics parameter value for the MIB
* input : pStatistic - Current statistics information
* type - Type of parameter to get
* output : none
* return : Parameter's value on success
* Negative value on failure
************************************************************************/
int getStatistic(IN h341StatisticParametersT* pStatistic, IN mibStatisticParamEnumT type)
{
switch(type)
{
case enumcallSignalStatsAlertingMsgsOut:
return pStatistic->q931StatisticOut[q931MsgAlerting];
case enumcallSignalStatsAlertingMsgsIn:
return pStatistic->q931StatisticIn[q931MsgAlerting];
case enumcallSignalStatsCallProceedingsIn:
return pStatistic->q931StatisticIn[q931MsgCallProceeding];
case enumcallSignalStatsCallProceedingsOut:
return pStatistic->q931StatisticOut[q931MsgCallProceeding];
/* Connections enumerations are reverse than the collected data, since CONNECT
messages are sent by the callee. */
case enumcallSignalStatsCallConnectionsIn:
return pStatistic->q931StatisticOut[q931MsgConnect];
case enumcallSignalStatsCallConnectionsOut:
return pStatistic->q931StatisticIn[q931MsgConnect];
case enumcallSignalStatsSetupMsgsIn:
return pStatistic->q931StatisticIn[q931MsgSetup];
case enumcallSignalStatsSetupMsgsOut:
return pStatistic->q931StatisticOut[q931MsgSetup];
case enumcallSignalStatsSetupAckMsgsIn:
return pStatistic->q931StatisticIn[q931MsgSetupAck];
case enumcallSignalStatsSetupAckMsgsOut:
return pStatistic->q931StatisticOut[q931MsgSetupAck];
case enumcallSignalStatsProgressMsgsIn:
return pStatistic->q931StatisticIn[q931MsgProgress];
case enumcallSignalStatsProgressMsgsOut:
return pStatistic->q931StatisticOut[q931MsgProgress];
case enumcallSignalStatsReleaseCompleteMsgsIn:
return pStatistic->q931StatisticIn[q931MsgReleaseComplete];
case enumcallSignalStatsReleaseCompleteMsgsOut:
return pStatistic->q931StatisticOut[q931MsgReleaseComplete];
case enumcallSignalStatsStatusMsgsIn:
return pStatistic->q931StatisticIn[q931MsgStatus];
case enumcallSignalStatsStatusMsgsOut:
return pStatistic->q931StatisticOut[q931MsgStatus];
case enumcallSignalStatsStatusInquiryMsgsIn:
return pStatistic->q931StatisticIn[q931MsgStatusEnquiry];
case enumcallSignalStatsStatusInquiryMsgsOut:
return pStatistic->q931StatisticOut[q931MsgStatusEnquiry];
case enumcallSignalStatsFacilityMsgsIn:
return pStatistic->q931StatisticIn[q931MsgFacility];
case enumcallSignalStatsFacilityMsgsOut:
return pStatistic->q931StatisticOut[q931MsgFacility];
case enumcallSignalStatsInfoMsgsIn:
return pStatistic->q931StatisticIn[q931MsgInformation];
case enumcallSignalStatsInfoMsgsOut:
return pStatistic->q931StatisticOut[q931MsgInformation];
case enumcallSignalStatsNotifyMsgsIn:
return pStatistic->q931StatisticIn[q931MsgNotify];
case enumcallSignalStatsNotifyMsgsOut:
return pStatistic->q931StatisticOut[q931MsgNotify];
case enumcallSignalStatsAverageCallDuration:
return -1;
case enumh245ControlChannelNumberOfListenPorts:
return -1 ;/*not Implemented*/
case enumh245ControlChannelMaxConnections: return -1 ;/*not Implemented*/
case enumh245ControlChannelNumberOfListenFails: return -1 ;/*not Implemented*/
case enumh245ControlChannelNumberOfActiveConnections: return -1 ;/*not Implemented*/
case enumh245ControlChannelMasterSlaveMaxRetries: return -1 ;/*not Implemented*/
case enumh245ControlChannelConnectionAttemptsFail: return -1 ;/*not Implemented*/
case enumh245ControlChannelNumberOfTunnels: return -1 ;/*not Implemented*/
case enumh245ControlChanneMasterSlavelDeterminations:
return pStatistic->h245ControlChanneMasterSlavelDeterminations;
case enumh245ControlChannelMasterSlaveAcks:
return pStatistic->h245ControlChannelMasterSlaveAcks;
case enumh245ControlChannelMasterSlaveRejects:
return pStatistic->h245ControlChannelMasterSlaveRejects;
case enumh245ControlChannelMasterSlaveReleases :
return pStatistic->h245ControlChannelMasterSlaveReleases;
case enumh245ControlChannelNumberOfMasterSlaveInconsistentFieldRejects:
return pStatistic->h245ControlChannelNumberOfMasterSlaveInconsistentFieldRejects;
case enumh245ControlChannelMasterSlaveMSDRejects : return -1 ;/*not Implemented*/
case enumh245ControlChannelMasterSlaveT106Rejects: return -1 ; /*not Implemented*/
case enumh245ControlChannelMasterSlaveMaxCounterRejects: return -1 ;/*not Implemented*/
case enumh245CapExchangeSets:
return pStatistic->h245CapExchangeSets;
case enumh245CapExchangeAcks:
return pStatistic->h245CapExchangeAcks;
case enumh245CapExchangeRejects:
return pStatistic->h245CapExchangeRejects;
case enumh245CapExchangeReleases:
return pStatistic->h245CapExchangeReleases;
case enumh245CapExchangeRejectUnspecified:
return pStatistic->h245CapExchangeRejectCause[h245CapExchangeRejectUnspecified];
case enumh245CapExchangeRejectUndefinedTableEntryUsed:
return pStatistic->h245CapExchangeRejectCause[h245CapExchangeRejectUndefinedTableEntryUsed];
case enumh245CapExchangeRejectDescriptorCapacityExceeded:
return pStatistic->h245CapExchangeRejectCause[h245CapExchangeRejectDescriptorCapacityExceeded];
case enumh245CapExchangeRejectTableEntryCapacityExeeded:
return pStatistic->h245CapExchangeRejectCause[h245CapExchangeRejectTableEntryCapacityExeeded];
case enumh245LogChanOpenLogChanTotalRequests:
return pStatistic->h245LogChanOpenLogChanTotalRequests;
case enumh245LogChanOpenLogChanAcks:
return pStatistic->h245LogChanOpenLogChanAcks;
case enumh245LogChanOpenLogChanConfirms:
return pStatistic->h245LogChanOpenLogChanConfirms;
case enumh245LogChanOpenLogChanRejects:
return pStatistic->h245LogChanOpenLogChanRejects;
case enumh245LogChanOpenLogChanRejectUnspecified:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectUnspecified];
case enumh245LogChanOpenLogChanRejectUnsuitableReverseParameters:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectUnsuitableReverseParameters];
case enumh245LogChanOpenLogChanRejectDataTypeNotSupported:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectDataTypeNotSupported];
case enumh245LogChanOpenLogChanRejectDataTypeNotAvailable:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectDataTypeNotAvailable];
case enumh245LogChanOpenLogChanRejectUnknownDataType:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectUnknownDataType];
case enumh245LogChanOpenLogChanRejectDataTypeALCombinationNotSupported:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectDataTypeALCombinationNotSupported];
case enumh245LogChanOpenLogChanRejectMulticastChannelNotAllowed:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectMulticastChannelNotAllowed];
case enumh245LogChanOpenLogChanRejectInsuffientBandwdith:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectInsuffientBandwdith];
case enumh245LogChanOpenLogChanRejectSeparateStackEstablishmentFailed:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectSeparateStackEstablishmentFailed];
case enumh245LogChanOpenLogChanRejectInvalidSessionID:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectInvalidSessionID];
case enumh245LogChanOpenLogChanRejectMasterSlaveConflict:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectMasterSlaveConflict];
case enumh245LogChanOpenLogChanRejectWaitForCommunicationMode:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectWaitForCommunicationMode];
case enumh245LogChanOpenLogChanRejectInvalidDependentChannel:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChanOpenLogChanRejectInvalidDependentChannel];
case enumh245LogChansOpenLogChanRejectReplacementForRejected:
return pStatistic->h245LogChanOpenLogChanRejectCause[h245LogChansOpenLogChanRejectReplacementForRejected];
case enumh245LogChanCloseLogChannels:
return pStatistic->h245LogChanCloseLogChannels;
case enumh245LogChanCloseLogChanAcks:
return pStatistic->h245LogChanCloseLogChanAcks;
case enumh245LogChanCloseLogChanRequests:
return pStatistic->h245LogChanCloseLogChanRequests;
case enumh245LogChanCloseLogChanRequestsAcks:
return pStatistic->h245LogChanCloseLogChanRequestsAcks;
case enumh245LogChanCloseLogChanRequestRejects:
return pStatistic->h245LogChanCloseLogChanRequestRejects;
case enumh245LogChanCloseLogChanRequestReleases:
return pStatistic->h245LogChanCloseLogChanRequestReleases;
default:
return -1;
}
}
#ifdef __cplusplus
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -