Giter Club home page Giter Club logo

Comments (9)

Ulexus avatar Ulexus commented on July 21, 2024

Your program is almost certainly dying. If you look at the Asterisk console, it should be printing the stderr output from the AGI execution. There should be a stack trace there.

from agi.

Ulexus avatar Ulexus commented on July 21, 2024

I suspect the problem is with your implemenation to open file descriptor 3. I would expect that you would use something like this to open FD 3:

eagi, err := os.Open("/dev/fd/3")

from agi.

angadn avatar angadn commented on July 21, 2024

Just spent a bunch of time playing around with agi set debug on and -cvvvvv, but I see no stack-trace either in the console, or the Asterisk process' Stdout/err streams. Also, as mentioned, the NewStdio seems to block too - and that isn't going anywhere near fd/3! Are you saying its a crash because I'm having to rely on the final Wait to keep the call alive?

from agi.

angadn avatar angadn commented on July 21, 2024

/proc/<PID>/fd/3 seems to be more likely?

from agi.

Ulexus avatar Ulexus commented on July 21, 2024

Ah, sorry. I missed you saying that NewStdio was failing, too. I'll have to sanity check the basic operation here. I'm not sure that I'm actually using this library anywhere. I think I just whipped it up for testing some time ago.

from agi.

angadn avatar angadn commented on July 21, 2024

@Ulexus I've attempted to write a simple Golang script without this library, to simply read the EAGI stream, but running into the same issue. Opening a question on SO: http://stackoverflow.com/questions/43353694/accessing-fd-3-for-asterisk-eagi

from agi.

angadn avatar angadn commented on July 21, 2024

This might just be an issue with Docker: moby/moby#6607

from agi.

angadn avatar angadn commented on July 21, 2024

I'm going to try this: https://golang.org/pkg/syscall/#Read to see if it lets me read FD 3

from agi.

Ulexus avatar Ulexus commented on July 21, 2024

Closing old issue. Please re-open if this is still a problem.

from agi.

Related Issues (4)

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.