资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

CTBCMCLeg类-创新互联

一 :CTBCMCLeg类

Do not confuse a call leg with a  call .  A call leg represents one full-duplex link to a party whilea call represents the agglomeration of multiple (two or more) call legs.   For example, a bridge is a form of call that
  uses two call legs.

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:申请域名网站空间、营销软件、网站建设、榆中网站维护、网站推广。

二:

 Do not confuse the base class CTBCMCLeg with the class CTBCAFCallLeg. The later is a class used by the
 ITBCAFCallFlow interface when dealing with multiple legs.  It is designed to represent a leg within a call. It cannot be instanciated as a standalone object.  Therefore, the above example used the CTBCMCLeg.

注 above example 指的是 make outgoing call

三 : 有各种不同的函数检查当前callleg的状态 , 例如  TBX_BOOL IsAccepted(); TBX_BOOL IsAlerted(); TBX_BOOL IsAnswered();

其中2个重要的函数是

TBX_BOOL IsPlayingStream();

 和

TBX_BOOL IsRecordingStream();

 可以检查callleg当前是不是正在播放stream或者录音。

---------------

还有2个函数不解, 是  TBX_BOOL IsPlayingDigit(); 和  TBX_BOOL IsPlayingEvent();

Digit怎么play ?

------

 virtual TBX_VOID OnLegEvent( PITBCMCLegEvent in_pEvent ); 此函数用于处理用户事件

 virtual TBX_VOID OnStreamPlayingDone( TBCMC_IVR_REASON_CODE in_Reason ); 当prompt播放完毕

 virtual TBX_VOID OnStreamRecordingDone( TBCMC_IVR_REASON_CODE in_Reason ); 当 录音结束 , 这里有个问题, 录音时并没有设置录音时间的选项,那么何时才结束录音?

 TBX_RESULT StopDigitCollection( PITBCMCErrorListener in_pErrorListener = NULL );  启动按键收集

 TBX_RESULT PlayEvent( CTBCMC_EVENT_ATTRIBUTE & in_Events, PITBCMCErrorListener in_pErrorListener = NULL ); 播发一段tone在leg上


网站名称:CTBCMCLeg类-创新互联
地址分享:http://cdkjz.cn/article/csshsp.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220