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.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to