Giter VIP home page Giter VIP logo

Comments (8)

danbarua avatar danbarua commented on June 15, 2024

First off, you can investigate the HangupCause property to see why the originate failed.

But I recommend you install a logging library into your project to get a better view of what's going on. NEventSocket uses LibLog which will automatically detect and route log messages to most popular logging libraries. I personally use NLog.

With Trace level logging you get a full picture of all messages flowing through NEventSocket which is useful for debugging, just be sure to adjust the logging level to Info or Warning in production for performance reasons.

If you are having issues with NEventSocket, it always helps to post Trace level log output so we can get an idea of what's going on.

from neventsocket.

yojinjin avatar yojinjin commented on June 15, 2024

I tried it yesterday. If we concurrent outbound call using SendCommand method directly launch command Originate, so at the time of concurrent will not appear freeswitch call volume after reaching a certain number, number of freeswitch calls gradually becomes zero. If you call the Originate method of Inbound, the above situation will appear. This may be a problem with the Originate method.

from neventsocket.

yojinjin avatar yojinjin commented on June 15, 2024

calls count 0 not work
calls count 0 not work.txt
calls count about 600 work fine
calls count about 600 work fine.txt

calls count 0 not work using Originate method.
calls count about 600 using SendCommand like this.

var originateString = string.Format("{0}{1} {2}", op, "sofia/gateway/88165450/15311111111", "'&park()'");

            Guid jobUUID = Guid.NewGuid();

            var backgroundApiCommand = originateString != null
                                           ? "bgapi {0} {1}\nJob-UUID: {2}".Fmt("originate", originateString, jobUUID)
                                           : "bgapi {0}\nJob-UUID: {1}".Fmt("originate", jobUUID);

            await socket.SendCommand(backgroundApiCommand);

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Please see related issue #29 and sample code: https://github.com/danbarua/NEventSocket/blob/master/src/NEventSocket.Examples/Examples/VoiceBlaster.cs

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

Can you show me the logs for 'calls count 0 not work using Originate method.'?

from neventsocket.

yojinjin avatar yojinjin commented on June 15, 2024

https://github.com/danbarua/NEventSocket/files/267343/calls.count.0.not.work.txt

I have uploaded.

from neventsocket.

yojinjin avatar yojinjin commented on June 15, 2024

I use SendCommand method to send Concurrent call. now work fine.

from neventsocket.

danbarua avatar danbarua commented on June 15, 2024

@yojinjin seems to be more of an application issue than a library issue - closing for now but re-open if you are still having problems.

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.