<div>I am using the source following :</div>
<div> </div>
<div> write("GET VARIABLE SIPCALLID");<br> $a = read();<br> $ip = substr($a,36);<br> </div>
<div>
<p> function read() {<br> global $in, $debug, $stdlog;<br> $input = str_replace("\n", "", fgets($in, 4096));<br> if ($debug) fputs($stdlog, "read: $input\n");<br>
errlog("read: $input\n");<br> return $input;<br> }</p>
<p> function errlog($line) {<br> //gloWbal $err;<br> //fwrite($stdlog, "VERBOSE \"$line\"\n");<br> echo "VERBOSE \"$line\"\n";<br> }</p>
<p> function write($line) {<br> global $debug, $stdlog;<br> if ($debug) fputs($stdlog, "write: $line\n");<br> echo $line."\n";<br> }</p>
<p> </p>
<p>But it return 510 Invalid or unknown command<br></p>
<p>somebody can help me! Please!</p>
<p>Thanks,</p>
<p>Thiago Resende.</p></div>