[asterisk-users] AMI buffering event output?

Örn Arnarson orn at arnarson.net
Wed Jun 1 05:54:49 CDT 2011


No, because the same is happening with telnet. If I telnet to AMI, I
observe exactly the same behavior. Otherwise I would put it down to
PHP.

On Tue, May 31, 2011 at 5:41 PM, Alex Balashov
<abalashov at evaristesys.com> wrote:
> On 05/31/2011 01:38 PM, Örn Arnarson wrote:
>>
>> Hi,
>>
>> I'm seeing weird behavior with AMI where no events are output until
>> some input is detected (can be an empty line), at which time all the
>> buffered output is spewed out at once.
>>
>> I am maintaining multiple Asterisk installations, and with one
>> installation I have run into a weird buffering problem with AMI.
>> The version is 1.6.1.11 in this particular case, which I am running at
>> multiple locations, all without this problem. Additionally I have
>> tried version 1.6.2.11 and 1.8.4.1, and the problem is consistent
>> across these versions.
>>
>> manager.conf is identical across all these installations.
>>
>> The problem presents with a php script that opens a socket directly to
>> AMI, a telnet client from the local machine to the AMI, but not when I
>> telnet from the machine to a remote machine running AMI.
>>
>> Does anyone have any input as to what I can try?
>>
>> Best regards,
>> Örn
>
> This is because of some blocking and/or read-write order issue in your PHP
> script.
>
> PHP is a web language, not for standalone scripts doing network I/O.
>
> --
> Alex Balashov - Principal
> Evariste Systems LLC
> 260 Peachtree Street NW
> Suite 2200
> Atlanta, GA 30303
> Tel: +1-678-954-0670
> Fax: +1-404-961-1892
> Web: http://www.evaristesys.com/
>
> --
> _____________________________________________________________________
> -- 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