Skip to content

Commit 02ef1e4

Browse files
committed
EDGE-630 Format the CallID to fit in the uui header
1 parent 30fbf31 commit 02ef1e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/bandwidth/webrtc/utils/WebRtcTransfer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ public static String generateBxml(String deviceToken, String voiceCallId, String
1414
}
1515

1616
public static String generateTransferVerb(String deviceToken, String voiceCallId, String sipUri) {
17+
String formattedCallId = String.join("", voiceCallId.split("-", 2)[1].split("-"))
1718
return "<Transfer>\n"
18-
+ "\t<SipUri uui=\"" + voiceCallId + ";encoding=base64," + deviceToken + ";encoding=jwt\">" + sipUri + "</SipUri>\n"
19+
+ "\t<SipUri uui=\"" + formattedCallId + ";encoding=base64," + deviceToken + ";encoding=jwt\">" + sipUri + "</SipUri>\n"
1920
+ "</Transfer>";
2021
}
2122
}

0 commit comments

Comments
 (0)