[asterisk-bugs] [Asterisk 0010553]: [patch] the fgets in res_agi can sometimes get interupted, but we dont handle it.
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Sep 12 07:49:45 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=10553
======================================================================
Reported By: juggie
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 10553
Category: Resources/res_agi
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 80777
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 08-24-2007 11:42 CDT
Last Modified: 09-12-2007 07:49 CDT
======================================================================
Summary: [patch] the fgets in res_agi can sometimes get
interupted, but we dont handle it.
Description:
as subject says.
affects 1.2, 1.4, trunk. (but 1.2 wont be fixed)
======================================================================
----------------------------------------------------------------------
festr - 09-12-07 07:49
----------------------------------------------------------------------
exten => *110,n,AGI(logged.php,${ARG3},${ARG4})
#!/usr/bin/php -q
<?php
require_once('definitions.php');
require_once('phpagi.php');
$debug = 0;
set_time_limit(600);
error_reporting(E_ALL);
$agi = new AGI();
function connect_db() {
$dblink = mysql_connect('localhost', MYSQLUSER, MYSQLPASS);
if (!$dblink) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db('ast');
return $dblink;
}
function get_sql($query) {
if (!$result = mysql_query($query)) {
echo "Chyba v query = $query<br/>". mysql_error();
exit -1;
}
return $result;
}
/*************************
/* main */
$db = connect_db();
$agi->exec("Set",'CHANNEL(language)=cz');
$agi->exec("NoCDR","");
$agi->exec("Answer","");
----------------------------------------------
this is the line, which i get the error. (CHANNEL(lang....)
next command NoCDR will never execute and agi debug will get no other
events. soft hangup does not work.
Issue History
Date Modified Username Field Change
======================================================================
09-12-07 07:49 festr Note Added: 0070390
======================================================================
More information about the asterisk-bugs
mailing list