Installing and configuring Asterisk
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

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/
$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
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
Lenovo Service Problems – Cntd
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
Select scheduled Task from parallel plesk control panel
1. Select Scheduled Task from parallel plesk control panel.
[ad#sidebar320280]
2. Add new Task

3. Give the correct path to script program as shown in the figure.
New venture for adobe :: Adobe flash Digital TV
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
My Cv page updated
Go through my cv page http://arunrajr.com/blog/my-cv/

