rendered paste body#!/usr/bin/php -q<?phpob_implicit_flush(true);set_time_limit(6);require_once("lib.php");include("config.php");$in = fopen("php://stdin","r");$stdlog = fopen("./checknum.log", "a+");while ($env=read()) { $s = split(": ",$env); $agi[str_replace("agi_","",$s[0])] = trim($s[1]); if (($env == "") || ($env == "\n")) { break; }}$query=sprintf('SELECT phonenum FROM payphones WHERE phonenum = "%s"' , $agi[callerid]);$main_record = do_query_single($query);if ($main_record != 1){ $foo = execute("Hangup"); die("No Number Match");}?>