Archive

Archive for August, 2010

Introduction to PHP AGI (Asterisk Gateway Interface)

August 17th, 2010 2 comments

The (AGI) Asterisk Gateway Interface is an interface for adding functionality to Asterisk with many different programming languages. Perl, PHP, C, Pascal, Bourne Shell, or any other programming language that you like.

To use AGI, create an extension on extension.conf, with this format (example extension number 5151):

exten => 5151,1,AGI(test.php)

 

Then place the script (for example in PHP, test.php) on the specified AGI folder in asterisk.conf, for example in /var/lib/asterisk/agi-bin.

The script should be executable, so you must first chmod +x to the script.

As an example, let create simple AGI application that fetch the web for a currency data and speak it to the caller. To simplify our self, we are going to use PHP and PHPAGI library.

Read more…

  • Share/Bookmark
Categories: Asterisk, PHP, VOIP Tags: , ,

Creating GPS Tracker Application on J2ME Phones

August 17th, 2010 17 comments

This article describes how to create the J2ME tracking application to be installed on J2ME capable phones with an internal GPS receiver. The application will utilize the Location API available on GPS enabled phones, read the GPS location data at a specified interval, send the data via HTTP connection to a specified server.

Here is the application looks like.

image

Read more…

  • Share/Bookmark

J2ME Current date and Time

August 17th, 2010 No comments

This simple J2ME application shows you how to get the current date ant time in J2ME and do the formatting of what format you want it to. Like core Java, J2ME too use the same java.util package to show the current date as well as current time on the screen.

The middlet we create here will show the current date and time when we started it. Each time we press the start button, the it will display the current date and time the button pressed. Here is the look of the finished application:

Read more…

  • Share/Bookmark
Categories: Java Tags:

How to install Asterisk 1.6 on Ubuntu

August 13th, 2010 No comments

1. Required Packages

Install all the required packages:

$ apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev php5 php5-cli php5-curl php5-gd php5-mysql mysql-server php-pear php-db curl sox apache2 subversion libssl-dev libmysqlclient15-dev libxml2-dev

 

2. Compile and Install DAHDI Driver

Since we are going to use Digium TDM400 board, then we need to install DAHDI driver. First, get the system kernel name:

$ uname –r

This will results your kernel version number.

Install the kernel header according to your system kernel

$ apt-get install linux-headers-<version>

 

Create a symbolic link to /usr/src/linux-2.6

$ ln -s /usr/src/linux-headers-<version> /usr/src/linux-2.6

Read more…

  • Share/Bookmark
Categories: Delphi Tags:
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.