Giter VIP home page Giter VIP logo

Comments (11)

danbarua avatar danbarua commented on June 15, 2024

Hi @padmanabanravikumar , I am on the fence as to whether we ought to remove the response timeout code altogether (you will see that it is marked with the [Obsolete] attribute in the codebase.)

However, if you are using database logging with NLog, then perhaps you might benefit from wrapping your database logging in an async target: https://github.com/nlog/NLog/wiki/AsyncWrapper-target
This will keep the NEventSocket worker threads from blocking and is generally worth doing if your log writes are going to be non-trivial.

Since working with FreeSwitch can involve a lot of trial and error, NEventSocket can be quite chatty with its logs to give you as much information as possible, you might also want to filter out Trace and Debug level logs from going to the DB.

from neventsocket.

padmanabanravikumar avatar padmanabanravikumar commented on June 15, 2024

thank you for your support. its working fine now.
i have one more issue. sometimes "StartDtmf" function call does not working well, no response received after a long period of waiting.
i have debugged for a while and noticed in EventSocket.cs file line 238 the method "SendCommand" call never happens.

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Is this an Inbound socket controlling many channels or with just one channel?

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Have you tried calling socket.SubscribeEvents() after connecting?

from neventsocket.

padmanabanravikumar avatar padmanabanravikumar commented on June 15, 2024

i am just using one channel.
i have called client.SubscribeEvents(EventName.Dtmf).

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Let's move this discussion to the chat room: https://gitter.im/danbarua/NEventSocket
I might need you to paste me some trace level logs.

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

I've managed to replicate this now. Using LINQ queries with Rx is nice but sometimes you get race conditions where the message you want has arrived before the subscriber has been hooked up.

from neventsocket.

padmanabanravikumar avatar padmanabanravikumar commented on June 15, 2024

Is there any workaround?

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Try the latest code, it should be ok now - v0.3.0 is up on NuGet.

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

@padmanabanravikumar Did this work for you?

from neventsocket.

padmanabanravikumar avatar padmanabanravikumar commented on June 15, 2024

yes, thank you.

from neventsocket.

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.