Asterix for Banana Pi (FreePBX img file for Banana Pi included)


4 Comments  →
   by shoaib    4 Comments  →
' . get_the_title() . '

What is Asterix?

Asterisk is a software implementation of a telephone private branch exchange (PBX); it was created in 1999 by Mark Spencer of Digium. Like any PBX, it allows attached telephones to make calls to one another, and to connect to other telephone services, such as the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services. Its name comes from the asterisk symbol, *. [Source: Wikipedia]

Asterisk is like a box of Legos for people who want to create communications applications. It includes all the building blocks needed to create a PBX, an IVR system, a conference bridge and virtually any other communications app you can imagine. [Source: Official Asterix Website]

What is Banana Pi?

Banana Pi is a single-board computer built with ARM Cortex-A7 Dual-core (Allwinner A20 based) CPU and Mali400MP2 GPU, and open source software, Banana Pi can serve as a platform to make lots of applications for different purposes.

The RasPBX Project

This is a project dedicated to Asterisk and FreePBX running on the Raspberry Pi. Later, the Beaglebone folks ported RasPBX for the BeagleBone Black (BBB).

Asterix for Banana Pi

Sadly, the RasPBX project doesn’t support the Banana Pi yet. I looked everywhere on the net for an Asterix based PBX image for Banana Pi, but looks like no one has done this yet or they did but didn’t share . So, I decided to make one myself.

I simply replaced the rootfs on the Banana Pi’s Raspbian based image with RasPBX’s rootfs. The image should work on any Banana Pi variant with the Allwinner A20 processor (including Banana Pi, Banana Pro and Sinovoip’s Banana Pi M1).

Download links

The image file is 3.7GB, I am uploading a winrar compressed version that is approximately 437MB . Use a suitable application to un-compress it after download.

Screenshots

FreePBX UIFreePBX_admin_screen

Further  Resources:

Directions to write the image to SD card

Read Documentation from RasPBX’s official website

 

PS: I have tested the image and it’s working fine. If you are facing any problems with it, feel free to post a comment and I’ll be happy to help. :)

make your android app boot at device start-up


Leave a comment  →
   by dmsherazi    Leave a comment  →

If you want your app to start-up automatically when Android boots up you need to the following

#1: add the following to your android manifest file

This will register for a boot complete receiver event and ask for its permission.

#2 Add a the following java class

Converting UNIX timestamp to seconds, minutes, hours, days, weeks, month, years, decades ago


Leave a comment  →
   by dmsherazi    Leave a comment  →

If you have UNIX time-stamps and you want convert it to show how may seconds, minutes, hours, weeks, months, years or decades ago it is from now you may use the following snippet of code. It accepts UNIX time-stamp in long format, In case you are getting UNIX time-stamps in String format you have to convert it to long. It will return a string with either seconds, minutes , hours , days, weeks, months, years , or decades ago. The code is written in java for an android app but can be ported to any language. Here is the code which is also available on github.