Code Monkey home page Code Monkey logo

Comments (5)

pbpraveen1988 avatar pbpraveen1988 commented on September 26, 2024 2

@praiseable , can you please provide the code or snippet , I am also facing the same issue.

from node-ari-client.

samuelg avatar samuelg commented on September 26, 2024

I'm surprised that play does not send an error status in this case. One thing to try is looking at the playback control object returned after play is called:

channel.play({media: 'sound:nope'}, playback).then(function (playbackControl) {
    console.log(playbackControl.state);  // state will contain the state of the playback
});

That might show some sort of failure state in your case.

FYI, the asterisk repo on github is a mirror only, please see [1] for creating issues against the Asterisk project itself.

[1] https://issues.asterisk.org

from node-ari-client.

TomDmitriev avatar TomDmitriev commented on September 26, 2024

Unfortunately, playbackControl.state isn't different from the one that a successful play has. My work-around is to measure the time period between PlaybackStarted and PlaybackFinished events. I've created an issue in the Asterisk jira, https://issues.asterisk.org/jira/browse/ASTERISK-26661.

from node-ari-client.

samuelg avatar samuelg commented on September 26, 2024

I verified that this is the case. What's more, the state of the playback on the PlaybackFinished event is done. I would say opening an issue against the Asterisk project itself is the correct move at this point.

from node-ari-client.

praiseable avatar praiseable commented on September 26, 2024

I have done some changes at asterisk side code and now i am getting proper response. I can differentiate between actual file played successful and complete and when was unable to play successful then i got error response on PlaybackFinished.
I want to share my contribution with asterisk code i am finding a way to do that

from node-ari-client.

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.