[asterisk-dev] manager.c changes breaks my app :)

Julian Lyndon-Smith asterisk at dotr.com
Wed Oct 25 09:36:24 MST 2006


just come across a strange problem, and wanted some advice: I was 
passing a string of commands to the manager command API. This string is 
449 bytes long.

under 1.4, things seemed to work just fine.

under trunk, I get a WARNING[32203]: manager.c:1916 get_input: Dumping 
long line with no return from 127.0.0.1

I've had a look at the source, and in manager.c get_input there are two 
blocks of code that seem to be swapped around. I don't know if that was 
deliberate or not.

What is the max string that can be passed to the manager API call 
"command" ? is it 256 ? or is it broken into 256 byte chunks ?

I've highlighted the differences in http://pastebin.ca/221252

The checkin that changed the order of the blocks was 45572 - can anyone 
shed any light on this ?

Julian


More information about the asterisk-dev mailing list