Ok, Thanks Joshua. I'll give it a try. On Mon, 5 Aug 2019 at 18:38, Joshua C. Colp <jc...@digium.com> wrote:
> 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 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-dev mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-dev
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev