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://vcdvsql.cn/article38/csshsp.html
成都網站建設公司_創新互聯,為您提供App開發、商城網站、關鍵詞優化、虛擬主機、定制網站、靜態網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯