Introduction to PHP AGI (Asterisk Gateway Interface)

August 17th, 2010 admin No 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 admin 1 comment

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 admin 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 admin 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:

How to Send Email on Java Application using JavaMail API

July 2nd, 2010 admin No comments

This article explain how to use JavaMail API for sending email through our Java application. This will cover simple email, HTML email, and email with attachments.

The required JavaMail API can found here. Put it on a directory accessible by CLASSPATH setting. It’s a good idea to read the JavaMail FAQ.

Read more…

  • Share/Bookmark

How to Use Tor Project Anonymous IP with Curl PHP on Linux

June 15th, 2010 admin No comments

This article explains how to utilize Tor project in our own PHP application using Curl Library.

Tor is free software and an open network that helps you defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis.

We start by installing and configuring Tor and the necessary software then we create a simple application that fetch a website address anonymously.

Read more…

  • Share/Bookmark

Setup Kannel SMS Gateway on Ubuntu

May 5th, 2010 admin 2 comments

This are the required steps to setup Kannel as an SMS Gateway on Ubuntu. Here we use a simple GSM modem attached to USB port 0, using Enfora modem. You can use other standard AT command modems actually.

Enable the SMS Box

Edit file /etc/default/kannel , uncomment the START_SMSBOX line to enable the SMS Box

sudo vi /etc/default/kannel

START_WAPBOX=1
START_SMSBOX=1

 

Add kannel user to dialout group

This will enable kannel user (user who run kannel process as) to use the /dev/ttyUSB0 device that is necessary when we are using USB GMS modems.

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 5 The Mainpage

May 4th, 2010 admin 15 comments

Well I’m sorry, it’s been so long for this part to come.. I had been working very hard on some clients and don’t have enough time to write. Here’s what I had been done if you’re curious :) : http://maps.GpsTrackingIndonesia.com, www.SunberryCorp.com, www.mypushme.com, www.kulacak.com, www.web2trace.com, www.pushmeportal.com, … The fun is almost all of them was written with CodeIgniter :) .

Ok, let’s start with the easiest one first. We will create a simple menu page that contains links to other modules on the system. We put it on the Mainpage controller class.

Look at the Mainpage.php controller file. There is a function on it named exactly the same with the filename: Mainpage(). This should be exactly the same including the case. This is the constructor or initialization function of the class. Each time the class is called or instantiate, this function is called automatically. We put some initialization lines inside it:

Read more…

  • Share/Bookmark

Show the List of Installed Packages on Ubuntu or Debian

The command we need to use to list the packages currently installed in Ubuntu or Debian is dpkg –get-selections. For example:

# dpkg --get-selections
acpi                                            install
acpi-support-base                               install
acpid                                           install
adduser                                         install
apache2                                         install
apache2-mpm-prefork                             install
apache2-utils                                   install
apache2.2-common                                install
apt                                             install
apt-utils                                       install
aptitude                                        install
autoconf                                        install
automake                                        install
automake1.4                                     install
autotools-dev                                   install
avahi-daemon                                    install
bacula-common                                   install
bacula-fd                                       install
base-files                                      install
base-passwd                                     install
bash                                            install
bind9-host                                      install
binutils                                        install

…

 

It will return a long list showing all the installed packages. To filter to specific list of packages, for example we only need to show java packages, combine it with grep, for example:

# dpkg --get-selections|grep java
java-common                                     install
java-gcj-compat                                 install
java-gcj-compat-headless                        install
libbcel-java                                    install
liblog4j1.2-java                                install
liblog4j1.2-java-gcj                            install
libmx4j-java                                    install
libpg-java                                      install
libregexp-java                                  install
sun-java6-bin                                   install
sun-java6-jdk                                   install
sun-java6-jre                                   install

We can find the locations of the files within a package from the list by using the dpkg -L command, such as:

# dpkg -L sun-java6-jdk|more
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/sun-java6-jdk
/usr/share/doc/sun-java6-jdk/changelog.Debian.gz
/usr/share/doc/sun-java6-jdk/copyright
/usr/share/doc/sun-java6-jdk/README.alternatives
/usr/share/doc/sun-java6-jdk/README.html
/usr/share/menu
/usr/share/menu/sun-java6-jdk
/usr/share/applications
/usr/share/applications/sun-java6-jconsole.desktop
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/sun-java6-jdk
/usr/share/doc-base
/usr/share/doc-base/sun-java6-jdk-readme
/usr/lib
/usr/lib/jvm
/usr/lib/jvm/java-6-sun-1.6.0.12
/usr/lib/jvm/java-6-sun-1.6.0.12/include
/usr/lib/jvm/java-6-sun-1.6.0.12/include/linux
/usr/lib/jvm/java-6-sun-1.6.0.12/include/linux/jni_md.h
/usr/lib/jvm/java-6-sun-1.6.0.12/include/linux/jawt_md.h
/usr/lib/jvm/java-6-sun-1.6.0.12/include/jni.h
/usr/lib/jvm/java-6-sun-1.6.0.12/include/jdwpTransport.h

…

  • Share/Bookmark
Categories: Linux Tags: , , , ,

Funambol Mobile Open Source Book Released

February 12th, 2010 akhmad daniel sembiring No comments

This book explains almost all about syncing your email and other data with mobile devices using Funambol 7.1 image

  • Provide push email capabilities and synchronization services for mobile devices and PC software using Funambol
  • Develop your own Funambol extensions
  • Many examples explaining all functionalities provided by the Funambol platform
  • An easy reading for system administrators and developers who want to keep in sync enterprise data

 

Click here for this book’s home page.

 

In Detail

Funambol is a free and open source mobile synchronization server that provides push email, address book and calendar (PIM) data synchronization, and device management for wireless devices. Are you looking to sync your email and other data with mobile devices for easy access? This book will show you how to do that via the Internet cloud.

With the help of this complete, practical guide you will learn how to access your email, calendar, contacts, important notes a lot more easily and quickly using Funambol. You will be able to sync a large number of online applications with your mobile devices. You will also be able to develop, deploy, and manage any mobile project.

This book will show you how to provide a full-featured PIM synchronization and push email service with Funambol.
You will start by installing Funambol on a personal computer, and then move on to acquire detailed information on the Funambol architecture and the network requirements for deploying it. You will cover several components of Funambol such as Data Synchronization Server, Device Management, Client Plugins, and more.

As you reach the end of the book, you will delve deeper to explore the wide range of possibilities of the Funambol platform beyond the immediate needs of personal data synchronization and mobile email. The book is also a great starting point for anyone who aims to extend Funambol. This book was targeted at version 7.1 of Funambol, but is also applicable to version 8.

 

Read the full Table of Contents for Funambol Mobile Open Source

Read the sample Content for Funambol Mobile Open Source

Read more…

  • Share/Bookmark

Ikutilah Seminar GPS! "MEMBONGKAR RAHASIA BISNIS GPS TRACKING" - Pembicara : Ir. Akhmad Daniel Sembiring (CEO Vitraining.com & GpsTrackingIndonesia.com) - Bandung, Sabtu 25 September 2010 - Hotel Arion Swiss - Belhotel, Jl. Otto Iskandardinata No. 16 Bandung - Biaya Pendaftaran : 2 Jt (sebelum 18 September 2010 HANYA 1 Jt) - Register ONLINE : seminar-gps.vitraining.com - More Info e-mail to : info@gpstrackingindonesia.com

This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.