For future questions of this type, you should ask on the asterisk-users mailing list, but:<br><br> <a href="http://www.voip-info.org/wiki/view/Asterisk+manager+API">http://www.voip-info.org/wiki/view/Asterisk+manager+API</a>
<br><br>Reading the section titled "Protocol Behavior" (specifically the last bullet point) gives:<br><br> "CRLF is used to delimit each line and a blank line (two CRLF in a row)
indicates the end of the command which Asterisk is now expected to
process."<br><br>This works the other way as well - Asterisk will include two CRLFs at the end of each packet that it sends you.<br><br>Good luck,<br>Sean<br><br><div><span class="gmail_quote">On 5/2/07, <b class="gmail_sendername">
<a href="mailto:lavarini@sci.univr.it">lavarini@sci.univr.it</a></b> <<a href="mailto:lavarini@sci.univr.it">lavarini@sci.univr.it</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I use Asterisk Manager to send commands to Asterisk through a socket in my<br>C++ program. Please, can you tell me how I can understand when the answer<br>of Asterisk to my command is finished? I think it can be the terminator
<br>"\r\n\r\n", but I'm not sure about this. Thanks<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-dev mailing list
<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>