search for: msg_result

Displaying 1 result from an estimated 1 matches for "msg_result".

2009 May 27
1
PHP AGI Problems
...it actually works? Thanks. [code] #!/usr/bin/php <? //playspecific.php require_once('database.class.php'); require_once('AGI.class.php'); $database = new database(); $AGI = new AGI(); $database->selectdb("switchboard"); while ($error_count < 5 && !$msg_result) { $result = $AGI->send_cmd("GET DATA /bswitch/menu/enter-msg-id 3000 4"); $msg_id = $result[result]; if ($msg_id < 1000){ echo "\ndebug: msgid < 1000, invalid ($msg_id)!\n"; //var_dump($msg_id); $error_count += 1; $AGI->send_cmd...