Comments (7)
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.
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.
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.
@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.
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.
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.
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)
- Integrating PAMI with my Web Application
- asterisk 16 and CommandAction Response always return Read timeout HOT 3
- Error - EventMessage HOT 1
- PHP 7.4 Error HOT 5
- unable to send ussd massage
- Could we get a new tag on master? HOT 2
- Event QueueMemberPaused obsolete
- QueueMemberEvent add method getPausedReason().
- Read timeout
- memory leak
- ReloadAction can cause timeout
- No support for custom AMI actions?
- AMI action "queues" not more supported
- OriginateAction using setVariable method to set variable is not sending at all
- Error: implode(): Argument #2 ($array) must be of type ?array, string given HOT 4
- PHP 8 support HOT 3
- Validate number using PAMI
- More Secure Connections
- Could anybody suggest newer version of this library? HOT 2
- unknown event: AgentComplete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pami.