[asterisk-dev] Terminator for Asterisk's answer
Sean Bright
sean.bright at gmail.com
Wed May 2 07:24:53 MST 2007
For future questions of this type, you should ask on the asterisk-users
mailing list, but:
http://www.voip-info.org/wiki/view/Asterisk+manager+API
Reading the section titled "Protocol Behavior" (specifically the last bullet
point) gives:
"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."
This works the other way as well - Asterisk will include two CRLFs at the
end of each packet that it sends you.
Good luck,
Sean
On 5/2/07, lavarini at sci.univr.it <lavarini at sci.univr.it> wrote:
>
> Hi,
> I use Asterisk Manager to send commands to Asterisk through a socket in my
> C++ program. Please, can you tell me how I can understand when the answer
> of Asterisk to my command is finished? I think it can be the terminator
> "\r\n\r\n", but I'm not sure about this. Thanks
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070502/c8d5787b/attachment.htm
More information about the asterisk-dev
mailing list