Coder Social home page Coder Social logo

Asterisk 12 support about pami HOT 7 OPEN

marcelog avatar marcelog commented on August 27, 2024
Asterisk 12 support

from pami.

Comments (7)

marcelog avatar marcelog commented on August 27, 2024

Hello :)

I have to admit that I haven't used v12 myself, so I don't fully understand the changes involved. Could you elaborate a bit more on what would be needed and/or what has changed exactly?

Thanks!

from pami.

wormling avatar wormling commented on August 27, 2024

In asterisk 12, AsyncAGI events should be refactored based on the SubEvent type to be:
'AsyncAGIStart', 'AsyncAGIEnd', 'AsyncAGIExec', 'AGIExecStart', 'AGIExecEnd'

So rather than changing anything, so far I've added those events and am looking at the code to make sure they will function properly along side of the AsyncAGIEvent.
EventFactoryImpl::createFromRaw will not need to change this way.

Things like "if ($event instanceof \PAMI\Message\Event\AsyncAGIEvent) {" will still need to be updated to allow for the new events.

I'm also about done updating the unit tests, and will try to update the example code with at least a note for 12+ users.

from pami.

wormling avatar wormling commented on August 27, 2024

It may not be feasible to maintain backward compatibility once an attempt to fully conform to the AMI v2 specification is made, but I'll maintain a branch for a bit updating any parts I need as I go.

from pami.

parhamdoustdar avatar parhamdoustdar commented on August 27, 2024

@wormling What's the status on your changes? I need to work with Asterisk 12+, and I wonder if I can use your changes?

from pami.

wormling avatar wormling commented on August 27, 2024

It didn't fit well with ARI, your code should still work, but if you need ARI you can use the wormling/phparia project. It does not include menu logic, but it's very simple.

from pami.

wormling avatar wormling commented on August 27, 2024

Ahh... you'll still need to switch to 'AsyncAGIStart', 'AsyncAGIEnd', 'AsyncAGIExec', 'AGIExecStart', 'AGIExecEnd', there might be something it that clone of PAGI on my github

from pami.

ldo avatar ldo commented on August 27, 2024

Something else new in Asterisk 12 is ARI. This nicely separates the command/response traffic from the event listening, with the latter being done via WebSockets.

from pami.

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.