All,

I'm a relative newcomer to Asterisk and AstLinux so there's probably a simple 
and obvious explanation for the recent challenge I'm experiencing.  After all, 
the only troubles I have had with AstLinux ver 0.4.6.1 thus far have been 
self-induced, so why should this be an exception?  Anyway, I'd appreciate your 
insight with this trouble:

My default incoming context fires a PHP AGI script for the purpose of 
integrating CNAM data with each incoming call.  For reasons explained below, it 
appears that this script intermittently fails to start, resulting in the call 
not completing.  It seems that everything will work perfectly twenty or so 
consecutive tries - and then it'll fail two or three time in a row.  

On a number of occasions, I observed the symptom with AGI DEBUG enabled.  
During a failure, I could clearly see Asterisk transmitting channel variables 
to the PHP script.  However, although the PHP script is configured to echo a 
test message to STDOUT right at the top of the script (as shown in the snippet, 
below), I see absolutely no AGI RX activity when the symptom occurs.  

Your thoughts?

~ Dan Ryson


#!/usr/local/bin/php -f
<?php
ob_implicit_flush(false);
set_time_limit(6);
error_reporting(0);  

if(!defined('STDIN'))
{
    define('STDIN', fopen('php://stdin', 'r'));
}
if(!defined('STDOUT'))
{
    define('STDOUT', fopen('php://stdout', 'w'));
}
if(!defined('STDERR'))
{
    define('STDERR', fopen('php://stderr', 'w'));
}

fwrite(STDOUT, "Test Output 1\n");
fflush(STDOUT);

script continues...  blah, blah, blah.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to