Gastman is a graphical manager interface asterisk users for viewing the events in the asterisk server console.As in a live asterisk server it very defficult to watch the log and issue commad in the asterisk console gastman is very useful.The can see the current active zap channels and numbers to which the call are going.Also can issue asterisk command with out any disturbence in the console.
You can insall gatman by just a commad
apt-get install gastman
The gastman will ask the ip address of the asterisk server ,manager username and password to enter in to the server.The screen shot our asterisk server status is shown below.



Today i stucked an error when i was trying to run a php script in a server eventhough my server was php5-mysql installed on it.At first i checked php, it was installed and working fine.Then checked mySQL.It was also working fine.I got the mysql prompt and the query was also working fine.I was experiencing.Tried the same solution when i experienced first.But this time it did’nt got worked.This time i had to use other solution and it got worked.The problem is actually php.ini file have enabled the mysql extension.
Solutions:
1)Remove php5-mysql with “apt-get remove php5-mysql” or “dpkg –purge remove php5-mysql and install it again or
2) Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so) or
3)Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)
will prompt 2 screens like this.

Select “yes” both and try again hope your problem will get resolved.
In my case it got resloved
Tags: Call to undefined function mysql_connect() php, MYSQL, PHP
It is some time necessary to automatically download a file from a ftp server daily.We can automate it by writing a shell script and putting it as a cron.A sample script is show below.When it got run it will login and download the file “1.txt” in to the current working folder from the directory “ftp” in the ftp server.
#!/bin/sh
rm 1.txt
HOST=’213.104.257.88′
PORT=’21′
USER=’bipin’
PASSWD=’bipin’
FILE=’1.txt’
ftp -n $HOST $PORT <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd ftp
bin
get $FILE
quit
END_SCRIPT
exit 0
Tags: Shell script for ftp download, Shell script ftp download

AndLinux is a Debian based Linux distribution that runs in Windows.In other sence we can say running mutiple OS at a time,any one having windows OS can install AndLinux and can run the commands and applications in it just like the normal linux os.The commands and all is same as the Debian or Ubuntu flavour.
For installing any thingyou can use command “apt-get install <applicationname>” like in the ubuntu OS.
For more information and downloads Click Here
The following is the screen shot of Linux running on my windows OS

Tags: AndLinux-, Linux running in Windows
It is some times necessary to pass a argument to asterisk dialplan and read that variable or value
from another script.In PHP-AGI this thing is done as follows
Passing an argument or variable value is setting it in the “orginate application”.
eg:
<?php
require(’phpagi/phpagi.php’);
require_once(’phpagi/phpagi-asmanager.php’);
$number = ‘9946236111′;
$asm = new AGI_AsteriskManager();
if($asm->connect())
{
$call = $asm->send_request(’Originate’,
array(’Channel’=>”SS7/9946236329″,
‘Context’=>’demospeech’,
‘Priority’=>1,
‘Callerid’=>$number,
‘Async’=>’true’,
‘Variable’=>’cnum=9947000XXX′)); //asterisk variable setting as “9947000XXX″
$asm->disconnect();
}
?>
The “cunum variable is accepted in asterisk as
[demospeech]
exten => s,1,AGI(incoming.php|${CNUM}) //here “{CNUM}” will store the variable value.
To get that value in another script is done by as follows
#!/usr/bin/php -q
<?php
set_time_limit(0);
require(’phpagi/phpagi.php’);
$agi = new AGI();
$agi->answer();
$cid = $argv[1]; // ” $argv[1]” contain the asterisk variable value..here the value is 994000XXX $agi->verbose($cid); //This will print “9947000XXX″
?>