CTBCMCLibUser类

想要从 CMC lib 接收事件,必须继承这个类。

virtual TBX_VOID OnCallLegPresent( TBCMC_LEG_ID in_LegId, CTBCMC_CALL_LEG_ATTRIBUTE_COMMON & in_CallLegAttribute, CTBCMC_PROTOCOL_ATTRIBUTE & in_ProtocolAttribute );

 这个函数的文档里 , TB 公司说:

Call leg allocation should be done here by creating a new ef CTBCMCLeg. If for any reason call leg
       allocation is not done, ef CTBCMCLeg::RefuseLeg should be called to refuse the leg correctly.

这说明, CTBCMCLeg 并不存在于传进来的参数, 传进来的只是 legID , 和 legAttribute 

此外还有一个重要的函数是

	virtual TBX_VOID OnNapStatsUpdated
	(
		IN		std::vector< PTRCTBCAFNapStats >		in_aNapStats
	);

 接收到此事件时,说明NAP发生了改变。

原文地址:https://www.cnblogs.com/lthxk-yl/p/4056733.html