com.bandwidth.webrtc.utils.WebRtcTransfer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
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"
+ " ";
}
}