tencent cloud

Feedback

Last updated: 2024-04-01 18:10:07

    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

    TCCCTypeDef.TCCCStartCallParams callParams =new TCCCTypeDef.TCCCStartCallParams();
    //1343xxxx is the phone number
    callParams.to = "13430xxxx";
    // Initiate a call. Call the login API before initiating a call. tcccSDK.login
    tcccSDK.call(callParams, new TXCallback() {
    @Override
    public void onSuccess() {
    // call success
    }
    
    @Override
    public void onError(int code, String desc) {
    // call error
    }
    });
    // End the call
    tcccSDK.terminate("");
    
    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