Installing and configuring Asterisk

June 17th, 2009 R Arun Raj 1 comment

How to install Asterisk ?

How to run Asterisk ?

This youtube video help you to install, configure and run your astersisk the open source PBX.

Asterisk Callme Architecture with PHP AGI

May 12th, 2009 R Arun Raj 2 comments

Asterisk Callme :: The open PBX

Asterisk Callme :: The open PBX

Extensions Configuration

extensions.conf

[callme]
exten => s,1,AGI(callme.php|${CNUM})

CNUM is the variable passed to callme AGI Script

Callme.php Agi Script

#!/usr/bin/php
/**
* Author Arun Raj R
* @package phpAGI_for Call me
* @version 1.0
*/
set_time_limit(30);
require_once(“phpagi/phpagi.php”);
$agi = new AGI();
$agi->answer();
$result=$agi->stream_file(“welcome_to_call_me”);
$cid = $argv[1];
$agi->exec(“Dial Zap/g0/”.$cid, null);

?>

PHP File to run callme service request

<?php
require_once(“/var/lib/

asterisk/agi-bin/worker/phpagi/phpagi-asmanager.php”);
$number1=$_REQUEST['num1'];
$number2 = $_REQUEST[num2'];
$asm = new AGI_AsteriskManager();
$asm->connect(“localhost”, “username”, “password”);
$number = “Zap/g0/”.$number1;
$asm->send_request(‘Originate’, array(‘Channel’ => “$number”, ‘Context’ => “callme”, ‘Priority’ => 1, ‘Async’ => true,’callerid’=>”$number1″,’Variable’=>’cnum=’.$number2,
));
$asm->disconnect();?>

PHP:: How to split a large array in small pieces :: or split array into chunks

April 29th, 2009 R Arun Raj 1 comment

Hello All,
Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me ..
Here it is
Function : array array_chunk ( array $input , int $size [, bool $preserve_keys= false ] )

< ?php
$input_array = array('a', 'b', 'c', 'd', 'e');
print_r(array_chunk($input_array, 2));
print_r(array_chunk($input_array, 2, true));
?>

The output will be like this : –

Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[0] => c
[1] => d
)

[2] => Array
(
[0] => e
)

)
Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[2] => c
[3] => d
)

[2] => Array
(
[4] => e
)

)

Have fun Cheers

Categories: PHP, email Tags: , ,

Lenovo Service Problems – Cntd

April 29th, 2009 R Arun Raj No comments

This problem happened to my friend. So many time it is serviced. But the problem persist . Only the replacement of this laptop will resolve the problem . Please go through video.
The problem is It providing a long horrible beep sound on start up.

Lenovo Providing products with low quality . The main problem is that i have suggested this laptop. After this problem i got a lesson. I never suggest this lenovo or ibm products to any of my friends.

How to add cron job or scheduled task in windows server / parallel plesk control panel

April 27th, 2009 R Arun Raj No comments

Select scheduled Task from parallel plesk control panel
1. Select Scheduled Task from parallel plesk control panel.
[ad#sidebar320280]
2. Add new Task

Select Sheduled Task From the parallel presk

Select Sheduled Task From the parallel presk

Select Timings
3. Give the correct path to script program as shown in the figure.

Categories: Project Managament, Troubleshoot, email Tags:

New venture for adobe :: Adobe flash Digital TV

April 20th, 2009 R Arun Raj No comments
Adobe Flash for Digital Tvs

Adobe Flash for Digital Tvs

Increasing the number of broadband users will increase the demand for online market. Adobe lets move flash to online Digital TVs. Adobe on Monday said its Flash platform for running rich Internet applications and playing online video will  attract giant  online market. read more

Debugg Your Javascript by using FireBug Plugin for Mozilla Firefox

April 20th, 2009 R Arun Raj 2 comments

Debugging Javascript was very hard and time consuming. Fire bug is very good tool for monitoring html, css javascript and Ajax request. Also we can use firebug as a reengineering tool for online applications

My Cv page updated

April 17th, 2009 R Arun Raj No comments
Categories: Mysql, PHP, asterisk Tags: