Tag Archive for Manager

Release 3 is in the oven

We are hard at work here, working on release number 3 of PHPARI. Let’s put it this way, when we initially implemented PHPARI, it was done really rapidly – as we wanted to launch it during Astricon 2014. Since then, we’ve received multiple contributions from people, specifically code segments that illustrated that we’ve “Over restricted” the access to the Asterisk ARI interface.

Release 3 will fix these issues and will follow the Asterisk ARI API specification as described. If you are willing to assist, please check out release-3 branch from GitHub, and send us feedback. You can find it here: https://github.com/greenfieldtech-nirs/phpari/tree/release-3.

We’ve already sent out about 50 PHPARI stickers around the world, and we have plenty more. If you want any, just send us a message and an envelope with 10 stickers will be on its way to you.

New version is up

I’m excited – well, I should actually say, thrilled to be more exact. We have a new version of PHPARI up on github, on the Master branch.
The new version enables better error handling, better events handling, ability to assign events triggering for Stasis events directly from the class, no need to work with React directly – in other words, I think PHPARI is now ready for some more testing and verification.

We’ve been made aware to a race condition that happens with phpws (by: stgnet), who had already contacted the author of phpws – with a patch and resolution, we hope that will make its way into the phpws code soon.

We’ve added new documentation to the code, so get updated – I’m waiting to hear from you all.

Astricon, Hackathon and phpari

“Get ready for the first ever AstriCon Hackathon! A worldwide community of designers, developers, and communications technologists will be gathering to create, code, and design apps built on AsteriskRespoke, and other communications APIs.” – Astricon Hackathon


phpari will be participating the Hackathon as well. If you intend to participate, consider using phpari – I will be there to assist you with your quest.

Yours truly,
Nir Simionovich

As simple as 1, 2, 3…

Simplicity, when it all boils down to getting your job done as fast as possible. We have a really funky rule here, a “lazy developer” is a good developer. Now, a “lazy developer” doesn’t mean one that doesn’t do his job, but one that spends 30 more minutes thinking about what he’s going to do, they writes code that enables him to replicate the result over and over again – at a fraction of the time.

Well, phpari is all about simplicity and getting your job done – simple, clean and fast. Normally, interacting with Asterisk ARI will require you to use either a REST library, or something like cURL. But, phpari takes all that away, wraps it tightly in a rapidly deployed class – making your life as easy as two commands.

Consider the following example: Getting the number of active channels from Asterisk. In the good’ol’days, you would either connect to manager and extract from there, hoping your code doesn’t deadlock. Another option was to issue a shell command, but even that isn’t bullet proof. Now, ARI gives you the ability to query that using an HTTP GET – nice! But even that, without a proper framework can be a little hectic. So, phpari comes to the rescue, making your life really easy:

$conn     = new phpari(ARI_USERNAME, ARI_PASSWORD, "hello-world", ARI_SERVER, ARI_PORT, ARI_ENDPOINT);
echo json_encode($conn->channels()->channel_list());
ARI Get Channels

What happens here? we simply connect to our ARI socket and issue the proper method – that is all. Simple – yes, short – yes, to the point – yes, are you free about your business – yes.

 

Welcome to PHPARI

Ok, we are totally psyched over here at Greenfield Technologies, this is our first Open Source project that we are publishing – and we are fairly proud of it.

We are long time PHP enthusiasts, actually, we love PHP so much – that is literally dominates our Web Development part of the business. No, we don’t do Drupal and Joomla, no way. We use PHP to build highly robust Asterisk application. PHPARI is our attempt at creating a proper PHP framework, for developing ARI/Stasis applications with PHP.

Stay tuned and get updated, we will add more information as we progress.