Comments (7)
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.
Any updates?
from fsock.
Hi @baltuonis,
Can you please attach some ngrep in order to reproduce this?
Thanks,
TeoV
from fsock.
Hi @baltuonis,
Do u have any update on this?
Thanks,
TeoV
from fsock.
Hi @TeoV
I'll try to get you an ngrep this week.
from fsock.
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
>
from fsock.
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)
- Possible concurrent issue HOT 3
- Possible concurrency issue - events not being executed sequentially. HOT 6
- problem parsing fs cvs HOT 2
- cgrates/fsock: Issue with evfilters (Support to handle multiple Event values in the same Filter) HOT 3
- nil pointer panics handling bgapi requests
- Error starting example from README
- Using SendMsgCmd from multiple Go routines concurrently HOT 3
- Why does SendApiCmd return header and body concatenated HOT 12
- Support for bgapi HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsock.