[asterisk-dev] ast_data_buffer equivalent in Asterisk 13

Mohit Dhiman mohitdhiman736 at gmail.com
Mon Aug 5 08:19:44 CDT 2019


Ok, Thanks Joshua.
I'll give it a try.

On Mon, 5 Aug 2019 at 18:38, Joshua C. Colp <jcolp at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20190805/161b091f/attachment.html>


More information about the asterisk-dev mailing list