Top

Web SDK Can't Answer Call

Commentaires

7 commentaires

  • Konrad Hyzy

    Hi,

     

    can you show me the piece of your code responsible for making a WebRTC call?

    Also, what version of our SDK do you use? 

     

    Thanks in advance.

     

    Best Regards,

    Konrad

    0
    Actions pour les commentaires Permalien
  • Muhammad Syahroyni

    We use Web SDK 1.51 and already try in 1.53 too.

    This is the code when making WebRTC call 

    if(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");
    }


    }
    0
    Actions pour les commentaires Permalien
  • Konrad Hyzy

    Hi,

     

    Do you test your app on Chrome or Firefox? What is the version of your browser? 

    Do you use sandbox.openrainbow.com server?

     

    thanks in advance for your answer.

     

    Best Regards,

    Konrad Hyzy

     

    0
    Actions pour les commentaires Permalien
  • Muhammad Syahroyni

    We tested on Chrome with version 72.0.

    No, we already use the production server.

    0
    Actions pour les commentaires Permalien
  • Konrad Hyzy

    Hi again,

    sorry for bothering, but would you be able to send us the full logs from both clients (do not forget to set the verbose mode).

    That would help us track down the problem. 

     

    Thanks in advance,

    Best Regards

    Konrad Hyzy

    0
    Actions pour les commentaires Permalien
  • zendi014

    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

    0
    Actions pour les commentaires Permalien
  • Daniel Stancu

    Hi,

    I have the same problem.

    SDK Version 1.67.0

    Did you find the problem?

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message