<div dir="ltr">Ok, Thanks Joshua.<br>I'll give it a try.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 5 Aug 2019 at 18:38, Joshua C. Colp <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Aug 5, 2019, at 9:43 AM, Mohit Dhiman wrote:<br>
> I am basically trying to use Sylvain Boily <br>
> <<a href="https://github.com/sboily" rel="noreferrer" target="_blank">https://github.com/sboily</a>>'s implementation of res_ari_stream.c <br>
> <<a href="https://github.com/sboily/wazo-hackathon-asterisk-stream-module/blob/master/res_ari_stream.c" rel="noreferrer" target="_blank">https://github.com/sboily/wazo-hackathon-asterisk-stream-module/blob/master/res_ari_stream.c</a>> in Asterisk 13.<br>
> And from what I can understand is that he is buffering the frame data <br>
> received via ast_framehook_interface's event_cb <br>
> into *ast_data_buffer* structure and then writing it to a websocket by <br>
> continuously reading from *ast_data_buffer*.<br>
<br>
You could probably use a vector[1] provided that the sorted functionality is used. It's a growable array.<br>
<br>
[1] <a href="https://github.com/asterisk/asterisk/blob/master/include/asterisk/vector.h" rel="noreferrer" target="_blank">https://github.com/asterisk/asterisk/blob/master/include/asterisk/vector.h</a><br>
<br>
-- <br>
Joshua C. Colp<br>
Digium - A Sangoma Company | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div>