Hi all,
I’m having a little problem with my AMI parser.
First of all, I’m using Asterisk 1.8.12.1 and I’ve created an AMI parser which will make it possible to control asterisk with another tool. However, I’m getting some trouble with the message length used by asterisk. In my code, I start a thread which will be listening on a telnet tcp socket and every time I get a message containing the string “Event: hangup” I do some actions. The problem is that when the message I get contains more than one “Event:hangup” the information about the channel being hangup is lost, so I’d like to know: Is there any way to set a maximum length for the AMI messages sent by Asterisk?
Any help will be appreciated,
Ben.