GithubHelp home page GithubHelp logo

Comments (5)

lminiero avatar lminiero commented on May 28, 2024

I still don't understand how SIP messages can get that large, when the SIP plugin doesn't even support multistream and so can only do two m-lines. Are you using event handlers (which is the only thing using those log buffers) or not (in which case we'd need to check why the errors appear in the first place)?

from janus-gateway.

ywmoyue avatar ywmoyue commented on May 28, 2024

Hello lminiero, I break point here found that the judgment "if(line[3] == '-')" has never been hit, and then "sofia_log[0] = '\0';" will never be executed to clear the buffer.

After executing several more sip operations, sofia_log will be full. If continue to execute sip operations, the error "Truncation occurred" will be reported.

I don’t understand sofia’s log structure. Should every log received be forwarded to the event handler without making this judgment?

from janus-gateway.

ywmoyue avatar ywmoyue commented on May 28, 2024

I copied the value of 'line' with a registered sip message. It is like this:

0x7fffb67eb270 "recv 361 bytes from udp/[192.168.19.59]:5060 at 14:54:04.204265:\n", '-' <repeats 72 times>, "\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP 192.168.9.245:32868;rport=32868;branch=z9hG4bK3Bet6r1mgNp7p;received=192.168.9.245\nFrom: <sip:[email protected]>;tag=3345Fm7Fj4vQB\nTo: <sip:[email protected]>;tag=cd1747d9\nCall-ID: 6eec95a2-86e1-123d-768e-aa22c5774c0e\nCSeq: 82978630 REGISTER\nContact: \"3827\"<sip:[email protected]:32868;transport=udp>;expires=360\nContent-Length: 0\n\n\n"

the character - is in bits 62 to 133. I guess the judgment of line[3] == '-' is actually Want to judge these characters?

from janus-gateway.

ycherniavskyi avatar ycherniavskyi commented on May 28, 2024

I suspect that the log output may be related to the sofia-sip version. Currently, I am using version 1.13.17.

from janus-gateway.

lminiero avatar lminiero commented on May 28, 2024

Yes, I think so too: there's was an issue some time ago that was opened about that, #3031. The user that opened the issue contributed a tentative PR , but then disappeared so it never went anywhere. If you have ways to replicate the problem and maybe revisit the original PR (#3063) to see if it works for you, it would help having an up-to-date fix for that.

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.