state = GetEndptState( lineId ); //获取ENDPT对象
//根据用户传来CNXID查找资源对象,如没找到则返回错误
for( cnxIndex = 0; cnxIndex < VRG_ENDPT_CFG_MAX_CNX_PER_ENDPT; cnxIndex++ )
if ((state->cnx[cnxIndex]) && (state->cnx[cnxIndex]->cnxId == cnxId))
break;
if (cnxIndex == VRG_ENDPT_CFG_MAX_CNX_PER_ENDPT)
return;
//向DSP获取FAX统计信息
hdspSendCmdData( state->cnx[cnxIndex]->vhdhdl,
HAPINET_GETFAXSTATS,
HSCMDRESP,
sizeof( netfaxrstats ),
&netfaxrstats );
//根据返回信息填充应答结构
state->cnx[cnxIndex]->t38param.numFaxPagesRx +=
netfaxrstats.hsxfaxrEgressStats.hsxNumRxPages;
state->cnx[cnxIndex]->t38param.numFaxPagesTx +=
netfaxrstats.hsxfaxrIngressStats.hsxNumTxPages;
/* Report the number of cumulative number of pages sent/received */
epT38Stats->rxpg = state->cnx[cnxIndex]->t38param.numFaxPagesRx;
epT38Stats->txpg = state->cnx[cnxIndex]->t38param.numFaxPagesTx;
ENDPT_410_ProcessVrgEndptGetT38Stats
最新推荐文章于 2020-07-10 21:02:50 发布