Git Product home page Git Product logo

Comments (2)

davehorton avatar davehorton commented on September 28, 2024

sending a 180/183 as a non-reliable response before the 200 OK is trivial:

srf.invite((req, res) => {
   res.send(183, {body: ...});
   srf.createUAS(..);

to send a 183 as a reliable response, include a RSeq header, and add the two optional callbacks; the first is called when the response is sent (shows the message sent over the wire) and the second is called when we receive a PRACK to the reliable response:

srf.invite((req, res) => {
   let uas;
   res.send(183, {
      headers {
         'RSeq': 988789 // some value you assign
      },
      body: mySdp
   }, 
   (err, sent) => { 
      console.log(`sent response ${sent}`); 
   },
   () => { 
      console.log('received PRACK, now we can send 200 OK');
      uas = srf.createUAS(...);
   });

Does that help? I see that Figure 5 in the doc you cite is sending some additional INFO messages during call setup, is that something you are trying to do? I've not specifically tested that callflow so let me know how you get on.

from drachtio-srf.

sopinon avatar sopinon commented on September 28, 2024

Thank you for reply. Just saw, that this kind of connection flow is still marked as a draft. I've now disabled trickle support on the WebRTC client. So there is no need for a 183 Response anymore.

from drachtio-srf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.