Coder Social home page Coder Social logo

Parallel call forking case about webrtc-to-sip HOT 6 CLOSED

havfo avatar havfo commented on August 15, 2024
Parallel call forking case

from webrtc-to-sip.

Comments (6)

havfo avatar havfo commented on August 15, 2024

I would probably add a branch flag to the different branches. I have made a gist with some changes to the existing config here.

The changes i have made are in:
route[WEB_SIP] and route[NATMANAGE].

In the rtpengine_manage calls in NATMANAGE, you could add the via-branch parameter to apply it to the correct one. I have not used the via-branch flag myself, but i guess via-branch=auto should work.

Note: the config does not run as is, it is only an example to explain.

from webrtc-to-sip.

havfo avatar havfo commented on August 15, 2024

And of course you would have to restructure NATMANAGE to your needs.

from webrtc-to-sip.

korayvt avatar korayvt commented on August 15, 2024

The tricky part is what via-branch value should be used.

After some testing I realized that 'auto' option is not working. There is no code implementing this parameter.

Moreover all forked branches have the same via branch id which is the incoming INVITE's via branch id on branch route. So the values 1 and 2 to via-branch option is not functional in this case.

Therefore we have only 'extra' option with extra_pv_id variable.
And the question is what value do we need to set to this variable in requests on branch route and corresponding responses on reply route?

from webrtc-to-sip.

havfo avatar havfo commented on August 15, 2024

I have never had the need to set different branches myself, so not sure how much help I can be here.

In the example config above, the flag for SDES/DTLS is set pr. branch. So I guess you do something like:

if (isbflagset(FLB_SDES)) {
   $avp(extra_id) = "sdes";
   rtpengine_manage("...via-branch=extra...");
}

from webrtc-to-sip.

havfo avatar havfo commented on August 15, 2024

You might find some inspiration from this forum post.

from webrtc-to-sip.

havfo avatar havfo commented on August 15, 2024

You inspired me to update the kamailio config. It should now be able to handle different branches with different bridging cases.

from webrtc-to-sip.

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.