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