[asterisk-dev] ast_data_buffer equivalent in Asterisk 13
Joshua C. Colp
jcolp at digium.com
Mon Aug 5 08:08:22 CDT 2019
On Mon, Aug 5, 2019, at 9:43 AM, Mohit Dhiman wrote:
> I am basically trying to use Sylvain Boily
> <https://github.com/sboily>'s implementation of res_ari_stream.c
> <https://github.com/sboily/wazo-hackathon-asterisk-stream-module/blob/master/res_ari_stream.c> in Asterisk 13.
> And from what I can understand is that he is buffering the frame data
> received via ast_framehook_interface's event_cb
> into *ast_data_buffer* structure and then writing it to a websocket by
> continuously reading from *ast_data_buffer*.
You could probably use a vector[1] provided that the sorted functionality is used. It's a growable array.
[1] https://github.com/asterisk/asterisk/blob/master/include/asterisk/vector.h
--
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list