ofbeaton / phpami Goto Github PK
View Code? Open in Web Editor NEWAsterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.
License: GNU Lesser General Public License v2.1
Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.
License: GNU Lesser General Public License v2.1
Currently waitResponse() does not handle connection failures nicely. Should the AMI connection fail, like when restarting asterisk, waitResponse() will start to loop without any wait state causing 100% CPU load.
Please consider the provided pull request #9 which exit the while loop when the connection fails.
Hi,
The function is incorrectly written as is_recource - it should be is_resource
Thanks,
Ian
AMI is very message intensive and there are times when you do not want these events to be sent when connecting to a server. By adding the an optional eventmask (ON/OFF) parameter to the connect command, then we can prevent those events from being sent.
It's also good to flush any events in the buffer once connected if the evenmask parameter is set to OFF.
Line 165 in 0d46709
in sendRequest function used waitResponse function.
sometimes waitResponse function is looping and its happening when $type equal '';
so i thing need a way to pass $allowTimeout variable trougth sendRequest function with default value false;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.