Giter VIP home page Giter VIP logo

Comments (6)

lminiero avatar lminiero commented on July 18, 2024 1

No, all my sip replies were 200 OKed, the known and unknown ips.

Mh, maybe it shouldn't be 200 for unknown IPs, but we'll see in the future. Thanks for the feedback!

from janus-gateway.

lminiero avatar lminiero commented on July 18, 2024

It looks like an issue looking up the To in the hashtable. I see the OPTIONS has the To set to

To: <sip:JANUS_IP:5080>.

This means that our

const char *to = sip->sip_to->a_url[0].url_user;

is probably NULL or empty, which makes the g_hash_table_lookup(sip_trunk->sessions, to) call crash. I'll try to improve that check, so that you can see if it fixes things for you.

from janus-gateway.

lminiero avatar lminiero commented on July 18, 2024

@do-not-set-2fa can you check the commit above?

from janus-gateway.

do-not-set-2fa avatar do-not-set-2fa commented on July 18, 2024

Hey Lorenzo,
It is indeed fixed, surviving already 10min of sip options hammering (6 messages per minute :)

Options for trunk type are a bit loose, no need for proper to i guess.

Thanks for the quick fix, we will do more poc/testing on this branch soon i guess.

One unrelated question, maybe more for a discord:
Now that there is a trunk, can there be a bypass media mode?
For example you have another sip sbc that can talk to user so no need for janus to ne in the media path (less jumps, less delay and potential breakpoints), just to do webrtc json to sip signaling conversion and keep original sdp in offer and answer intact?
Rtpengine does the kernel udp forwarding and can bring it back to user space when needed, so it is much faster and can handle more media streams that way. (Also would be wery cool to have kernalization in janus ofcourse, that would be even better, set up a stream in user space and move it to kernel space if there is no need for transcoding and such)

Thanks,
Mirko

from janus-gateway.

lminiero avatar lminiero commented on July 18, 2024

It is indeed fixed, surviving already 10min of sip options hammering (6 messages per minute :)

Is Janus sending a 200 in response to those OPTIONS, or a 404? If it's a 404, there still might be something we need to fix I guess.

Now that there is a trunk, can there be a bypass media mode?

No, Janus and the SIP plugin will alwaye be on the media path.

Also would be wery cool to have kernalization in janus ofcourse

I don't think this is viable, due to the general purpose nature of Janus. Different plugins will need to handle media in different ways, there's not just a core relaying media from A to B and viceversa. As such, it's not planned for now.

from janus-gateway.

do-not-set-2fa avatar do-not-set-2fa commented on July 18, 2024

No, all my sip replies were 200 OKed, the known and unknown ips.

Olk thanks for the info and fast replies as always :)

from janus-gateway.

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.