tencent cloud

Cloud Contact Center

Announcement
What's New
Cloud Contact Center Terminology Update
What is Tencent Cloud Contact Center
Overview
Feature List
Terms Introduction
Handling Firewall Restrictions
AI Voicebot
Billing Guide
Voice Call Billing Overview
Desk Billing Overview
View Billing
Refund Policy
New User Guide
Voice Guide
Desk Guide
Use Case
Inbound: Customer Experience
Outbound: Telemarketing
Auto Dialer: Voice Notification
Integration Use Case (SDK)
Administrator Guide
Voice Guide
Desk Guide
Member Guide
Voice Guide
Desk Guide
AI Voice Agent Guide
Introducing AI Voice Agent
AI Voice Agent Practical Tutorial
Set Up Your AI Voice Agent
Activate AI Voice Agent Call
AI Voice Agent Call Logs
Developer Guide
SDK Development Guide
Data Push
Voice API Reference
History
Introduction
API Category
Making API Requests
Agent APIs
Skill Group APIs
Number APIs
Dual Call APIs
Predictive Outbound Call APIs
SIP Phone APIs
Call Service Record APIs
Billing APIs
Other APIs
Outbound Call APIs
Speech Intelligent Agent APIs
Data Types
Error Codes
Desk API Reference
API Reference
Callback Configuration
FAQs
Data Deletion Guide
Legal
Privacy Policy
Data Processing And Security Agreement
Service Level Agreements
TENCENT CLOUD CONTACT CENTRE TERMS OF USE
Glossary
Contact Us

uni-app

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-04-01 18:09:28

Call-related API Functions

API
Description
call
Initiates a call
answer
Answers the inbound call
terminate
Ends the call
sendDTMF
Sends Dual-Tone Multi-Frequency (DTMF) signals
mute
Mutes.
unmute
Unmutes.
startPlayMusic
Starts playing music
stopPlayMusic
Stops playing music

Sample Code for Initiating and Ending a Call

// Initiate a call. Call the login API before initiating a call. tcccSDK.login
tcccSDK.call({
to: '134xxxx', // Contact number (required)
remark: "xxx", // Number remarks, which will replace the number displayed in the call bar (optional)
uui: "xxxx", // User-defined data (optional)
}, (code,message) => {
if (code == TcccErrorCode.ERR_NONE) {
// Initiation succeeded
} else {
// Initiation failed
}
});
// End the call
tcccSDK.terminate();
// Answer the call
tcccSDK.answer((code,message) => {
if (code == TcccErrorCode.ERR_NONE) {
// Answer succeeded
} else {
// Answer failed
}
});


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック