[Home]

Summary:ASTERISK-05209: Manager disconnects slow client too quickly
Reporter:wjchan (wjchan)Labels:
Date Opened:2005-10-01 14:57:43Date Closed:2008-01-15 15:50:04.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have a Crestron home automation controller talking to the Asterisk Manager. Occasionally the Crestron gets disconnected by Manager.  Increasing tmp to 1024 and the ast_carefulwrite to 500ms fixed the problem.
Comments:By: wjchan (wjchan) 2005-10-01 14:59:23

Also, I subscribe to call events and I'm getting a nul (0x00) after \r\n\r\n fairly often.  Is that a new thing?

By: wjchan (wjchan) 2005-10-02 00:02:59

Didnt mean to put in under SIP.  Sorry.

By: wjchan (wjchan) 2005-10-04 00:34:50

Using manager.c 1.121:

1) the nul characters are gone
2) my Crestron processor still gets disconnected unless I set ast_carefulwrite timeout to 500ms
3) logoff doesnt disconnect

By: Clod Patry (junky) 2005-10-04 18:10:20

For logoff, maybe you could try ASTERISK-5207 and report how it goes on that bug ID.
show me ur manager.conf too.

By: Kevin P. Fleming (kpfleming) 2005-10-04 18:29:49

I have added a 'writetimeout' setting to manager.conf so that slow clients can be allowed more time.

By: Digium Subversion (svnbot) 2008-01-15 15:50:04.000-0600

Repository: asterisk
Revision: 6716

U   trunk/configs/manager.conf.sample
U   trunk/include/asterisk/manager.h
U   trunk/manager.c

------------------------------------------------------------------------
r6716 | kpfleming | 2008-01-15 15:50:04 -0600 (Tue, 15 Jan 2008) | 2 lines

allow write timeout to be set on a per-user basis in AMI (issue ASTERISK-5209)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6716