All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.webrtc.utils.WebRtcTransfer Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.0
Show newest version

package com.bandwidth.webrtc.utils;

public class WebRtcTransfer {
    public static String generateBxml(String deviceToken, String voiceCallId) {
        return WebRtcTransfer.generateBxml(deviceToken, voiceCallId, "sip:sipx.webrtc.bandwidth.com:5060");
    }

    public static String generateBxml(String deviceToken, String voiceCallId, String sipUri) {
        return "\n"
                + ""
                + generateTransferVerb(deviceToken, voiceCallId, sipUri)
                + "\n";
    }

    public static String generateTransferVerb(String deviceToken, String voiceCallId, String sipUri) {
        String formattedCallId = String.join("", voiceCallId.split("-", 2)[1].split("-"));
        return "\n"
                + "\t" + sipUri + "\n"
                + "";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy