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

Danny Nicholas danny at debsinc.com
Wed Apr 28 09:24:57 CDT 2010


Can you post the script?

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Gareth Blades
Sent: Wednesday, April 28, 2010 9:00 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.4.30 is slow sending STDIN to AGI
script

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.

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list