tencent cloud

Cloud Contact Center

IOS

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-04-01 18:10:27

Call-related API Functions

API
Description
Initiates a call
Answers the inbound call
Ends the call
Sends Dual-Tone Multi-Frequency (DTMF) signals
Mutes.
Unmutes.

Sample Code for Initiating and Ending a Call

class TCCCCommonCallback : public ITXCallback {
private:
NSString* mFunName;
public:
TCCCCommonCallback(NSString* funName) {
mFunName = funName;
}
~TCCCCommonCallback() override {
}
void OnSuccess() override {
// Succeeded
}
void OnError(TCCCError error_code, const char *error_message) override {
std::string copyErrMsg = makeString(error_message);
// Failed
}
};
TCCCCommonCallback* startCallCallbackImpl = nullptr;
if (nullptr == startCallCallbackImpl) {
startCallCallbackImpl = new TCCCCommonCallback(@"startCall");
}
TCCCStartCallParams callParams;
// Phone number for the call
callParams.to = "";
// Initiate a call. Call the login API before initiating a call. tcccSDK->login
tcccSDK->call(callParams, startCallCallbackImpl);
// End the call
tcccSDK->terminate();


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백