Coder Social home page Coder Social logo

Comments (7)

TeoV avatar TeoV commented on July 30, 2024 1

Hi @baltuonis,

For beginning sorry it took so long to investigate this.
We analyze your ngrep and we found the problem.
This is happening on connect. When we connect the FSock we verify for filters. In case we have we send the filter command to FreeSWITCH and we expect that the FreeSwitch to response ( https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket )
In your case and according to your ngrep( line 619 )

#
T 127.0.0.1:59442 -> 127.0.0.1:8021 [AP]
filter Event-Name CUSTOM


##
T 127.0.0.1:8021 -> 127.0.0.1:58608 [AP]
Content-Length: 2931
Content-Type: text/event-plain

when the FSock sends the filter command to FreeSWITCH, instead of a response to this it adds in the buffer an event ( with header and body ) and when we try to read from the buffer the response to the filter command which contains we don't find the answer ( Reply-Text: +OK ) and we return an error.

Thanks,
TeoV

from fsock.

baltuonis avatar baltuonis commented on July 30, 2024

Any updates?

from fsock.

TeoV avatar TeoV commented on July 30, 2024

Hi @baltuonis,

Can you please attach some ngrep in order to reproduce this?

Thanks,
TeoV

from fsock.

TeoV avatar TeoV commented on July 30, 2024

Hi @baltuonis,

Do u have any update on this?

Thanks,
TeoV

from fsock.

baltuonis avatar baltuonis commented on July 30, 2024

Hi @TeoV
I'll try to get you an ngrep this week.

from fsock.

baltuonis avatar baltuonis commented on July 30, 2024

Added ngrep output, looks fine...
On this case - the first connect intent failed, the second succeeded.

2020/06/24 12:51:43 NewClient: Unexpected filter-events reply received: <Content-Length: 2931
Content-Type: text/event-plain
>

ngrep.txt.zip

from fsock.

baltuonis avatar baltuonis commented on July 30, 2024

Thanks for your investigation.
So I assume you could include that case in your library code.
It does not seem that I could do too much on my side without touching internal code

from fsock.

Related Issues (10)

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.