[asterisk-users] AGI PHP
Thiago Maluf
malufrj at gmail.com
Thu Oct 5 14:06:00 MST 2006
I am using the source following :
write("GET VARIABLE SIPCALLID");
$a = read();
$ip = substr($a,36);
function read() {
global $in, $debug, $stdlog;
$input = str_replace("\n", "", fgets($in, 4096));
if ($debug) fputs($stdlog, "read: $input\n");
errlog("read: $input\n");
return $input;
}
function errlog($line) {
//gloWbal $err;
//fwrite($stdlog, "VERBOSE \"$line\"\n");
echo "VERBOSE \"$line\"\n";
}
function write($line) {
global $debug, $stdlog;
if ($debug) fputs($stdlog, "write: $line\n");
echo $line."\n";
}
But it return 510 Invalid or unknown command
somebody can help me! Please!
Thanks,
Thiago Resende.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061005/7d862328/attachment.htm
More information about the asterisk-users
mailing list