CTBCMCLibUser类

时间:2014-10-28 15:07:31   收藏:0   阅读:156

想要从 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 \ref CTBCMCLeg. If for any reason call leg
       allocation is not done, \ref CTBCMCLeg::RefuseLeg should be called to refuse the leg correctly.

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

 

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

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

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!