Web SDK Can't Answer Call
Hai OpenRainbow Support
We develop an application with Rainbow Web SDK.
When trying to use Rainbow Call, the application can answer the incoming call and call feature running well.
But, there are errors when the application makes an outgoing call. After the recipient answer the call, the call state always connecting. And we got errors in recipient side like this :
angular.min.js:117 [Strophe.jingle] createAnswer failed
(anonymous) @ angular.min.js:117
e.error @ rainbow-sdk.min.js:1
Strophe.log @ rainbow-sdk.min.js:1
(anonymous) @ vendors-sdk.min.js:1
vendors-sdk.min.js:1 [Strophe.jingle] onJingle
vendors-sdk.min.js:1 [JINGLE] transport-info
VM1573 :1 Uncaught (in promise) DOMException: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Error processing ICE candidate
Please advice
-
We use Web SDK 1.51 and already try in 1.53 too.
This is the code when making WebRTC callif(rainbowSDK.webRTC.canMakeAudioVideoCall()) {
if(rainbowSDK.webRTC.hasAMicrophone()) {
if(rainbowSDK.webRTC.hasACamera()){
$(document).on('click', "#videoModal", function(){
if(associatedConversation.contact){
$("#fm_webtrc_ct").show();
$("#msg_history").hide();
$("#type_msg").hide();
var res = rainbowSDK.webRTC.callInVideo(associatedConversation.contact); //callInVideo
var x = document.getElementById("call_on");
var y = document.getElementById("call_off");
if (x.style.display === "none") {
x.style.display = "block";
y.style.display = "none";
} else {
x.style.display = "block";
y.style.display = "none";
}
if (res.code === rainbowSDK.OK){
$("#call_off").hide();
$("#call_on").show();
console.log("Your call has been correctly initiated. Waiting for the other peer to answer");
}
}
});
}
$(document).on('click', "#audioModal", function(){
if(associatedConversation.contact){
var res = rainbowSDK.webRTC.callInAudio(associatedConversation.contact);
$("#fm_webtrc_ct").show();
$("#msg_history").hide();
$("#type_msg").hide();
var x = document.getElementById("call_on");
var y = document.getElementById("call_off");
if (x.style.display === "none") {
x.style.display = "block";
y.style.display = "none";
} else {
x.style.display = "block";
y.style.display = "none";
}
$("#call_off").hide();
$("#call_on").show();
if (res.code === rainbowSDK.OK){
console.log("Your call has been correctly initiated. Waiting for the other peer to answer");
}
}
});
}else{
console.log("no Microphone");
}
} -
here the log of the both client
[CALL] ::Call Incoming Ringing...
>> [Strophe.jingle] onJingle
>> REMOTE TYPE || audio+video>> [Strophe.jingle] onJingle
>> [JINGLE] transport-info>> angular.js:13708 [Strophe.jingle] setRemoteDescription error OperationError: Failed to parse SessionDescription. a=extmap:11 urn:ietf:params:rtp-hdrext:encrypt Expects at least 3 fields.
(anonymous) @ angular.js:13708
e.error @ rainbow-sdk.min.js:17849
Strophe.log @ rainbow-sdk.min.js:2774
(anonymous) @ vendors-sdk.min.js:15639
i.RTCPeerConnection.(anonymous function) @ vendors-sdk.min.js:20168
e.RTCPeerConnection.setRemoteDescription @ vendors-sdk.min.js:20432
JingleSession.setRemoteDescription @ vendors-sdk.min.js:15636
onJingle @ vendors-sdk.min.js:14727
run @ vendors-sdk.min.js:13777
(anonymous) @ vendors-sdk.min.js:13972
forEachChild @ vendors-sdk.min.js:13565
_dataRecv @ vendors-sdk.min.js:13967
_onMessage @ vendors-sdk.min.js:14554>> Uncaught (in promise) DOMException: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Error processing ICE candidate
>> angular.js:13708 [Strophe.jingle] createAnswer failed
(anonymous) @ angular.js:13708
e.error @ rainbow-sdk.min.js:17849
Strophe.log @ rainbow-sdk.min.js:2774
(anonymous) @ vendors-sdk.min.js:15678
>> [CALL] ::Call Dialing...
>> <message xmlns="jabber:client" xml:lang="en" to="70b6ad52d3dc4ddda933ffaa112494ec@openrainbow.com/web_sdk_1.49.6_d2pyjhQA" from="cfac9a6673264258842c7f143cc1a4ed@openrainbow.com/web_sdk_1.49.6_5Vf0yhEh" id="web_cfc11fbb-6db9-4a52-984e-fca935571c7d"><proceed xmlns="urn:xmpp:jingle-message:0" id="web_3048e837-2cab-4771-9d64-c3a4e03cf553"/></message>
>> [CALL] ::Call Connecting...
>> vendors-sdk.min.js:15181 [Strophe.jingle] !!! jingle.sdp.candidateToJingle candidate:2562927875 1 udp 2122260223 192.168.124.17 62520 typ host generation 0 ufrag D3TK network-id 1
>> vendors-sdk.min.js:15207 [Strophe.jingle] not translating "ufrag" = "D3TK"
>> vendors-sdk.min.js:15181 [Strophe.jingle] !!! jingle.sdp.candidateToJingle candidate:1561653771 1 tcp 1518214911 172.20.10.2 9 typ host tcptype active generation 0 ufrag D3TK network-id 2 network-cost 10
>> vendors-sdk.min.js:15207 [Strophe.jingle] not translating "ufrag" = "D3TK"
>> vendors-sdk.min.js:14694 [Strophe.jingle] onJingle
>> vendors-sdk.min.js:15181 [Strophe.jingle] !!! jingle.sdp.candidateToJingle candidate:411751951 1 udp 8265471 169.56.128.10 57948 typ relay raddr 114.4.212.105 rport 4824 generation 0 ufrag D3TK network-id 2 network-cost 10
>> vendors-sdk.min.js:15181 [Strophe.jingle] !!! jingle.sdp.candidateToJingle candidate:411751951 1 udp 8265471 169.56.128.10 52205 typ relay raddr 114.4.212.105 rport 4822 generation 0 ufrag D3TK network-id 2 network-cost 10
>> vendors-sdk.min.js:14694 [Strophe.jingle] onJingle
Please sign in to leave a comment.
Comments
7 comments