RTCP callback in plugin

49 views
Skip to first unread message

Daniel Slavetskiy

unread,
Oct 29, 2020, 7:16:09 AM10/29/20
to UniMRCP
Hi Arsen, 

we  are developing a custom plugin for our ASR Engine and we would like to gather RTCP metrics.
What do you think of adding a callback for RTCP stats, so that it can be handled in plugin?
So for instance if we want to expose RTP stats in Prometheus we need to run a separate process the parses the Unimrcp log using regex extracts the stats and makes them available for Prometheus
Of course i can make the appropriate PR, but what do you think of it form the perspective of your roadmap?

Thanks!

Arsen Chaloyan

unread,
Nov 3, 2020, 7:52:36 PM11/3/20
to UniMRCP
Hi Daniel,

Parsing log files to trigger an action or collect stats would definitely be neither recommended nor desired. I see two different approaches to what you would like to achieve.
  1. The mpf_audio_stream_vtable_t interface can possibly be extended to retrieve the statistics from one end (RTP Receiver) and pass over to the other (ASR Plugin). This way you should be able to expose the data to Prometheus in your plugin.
  2. The statistics can be collected by the core and further be exposed to Prometheus via a generic status/statistics interface, which is currently not available/implemented.
There could be other mixed approaches available, which I did not have enough time to think about. Anyway, thoughts or input on this is welcome. If you can come up with a pull request that would be even better.

Please excuse me for a possible delay in communication.


--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/79bdf401-6683-497a-b154-16a9ad9dc6a2n%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages