tencent cloud

All product documents
Cloud Contact Center
Last updated: 2024-04-01 18:10:27
IOS
Last updated: 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();

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon