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

Gareth Blades list-asterisk at skycomuk.com
Wed Apr 28 08:59:46 CDT 2010


Philipp von Klitzing wrote:
> Hi!
> 
>> Why is asterisk so slow in sending the call info via STDIn in these cases?
>> Is there any way this can be fixed?
> 
> Your AGI script is faulty: In at least one place you have missed to READ 
> the output right after you have issued a command. So go check your script 
> ("agi debug" might help a little with this).
> 
> Others would say: Your script violates the AGI protocol.

The script performs call logging to a database. Similar to the built in 
CDR but it updates at the start and answering of a call aswell so the 
database can be used to show current call status.

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.



More information about the asterisk-users mailing list