[asterisk-users] Asterisk 1.4.30 is slow sending STDIN to AGI script

Gareth Blades list-asterisk at skycomuk.com
Wed Apr 28 11:40:42 CDT 2010


Steve Edwards wrote:
>>> On Wed, 28 Apr 2010, Gareth Blades wrote:
> 
>>>> The script does not issue any commands. The same script is called at 
>>>> all 3 stages but with different parameters on the command line to 
>>>> indicate the call status. Works fine before the call is answered but 
>>>> during and at the end of the call it quits before asterisk has 
>>>> finished sending the information about the current call via STDIN.
> 
>> Steve Edwards wrote:
> 
>>> Asterisk sends the "AGI environment" to the AGI via STDIN. If you don't 
>>> read it, you are violating the protocol.
> 
> On Wed, 28 Apr 2010, Gareth Blades wrote:
> 
>> We are reading in the STDIN (assume its part of the asterisk perl 
>> module). If I add a 3 second pause to the end of the perl code then it 
>> works fine. But if this is the case then for a system with a high call 
>> volume this significantly increases the number of running AGI programs 
>> which is not good for system load.
> 
> How do you reconcile your assumption that the Perl module is reading STDIN 
> and your statement that your AGI "quits before asterisk has finished 
> sending the information about the current call via STDIN."
> 
Only that if I put a 3 second pause in the script at the end then I get 
no errors. If I put in a 1 second pause I get errors about half way 
through asterisk sending the input.



More information about the asterisk-users mailing list