<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This was pretty much my point of my reply. &nbsp;Polling on those is not a good architecture, and will consume ram every time you call it. To do this would require a little mod that could realtime hook those values to be acted on. &nbsp;Its really just the last layer of glue.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 10, 2016, at 10:49 AM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com" class="">steveayre@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">You might be able to script it now.<div class=""><br class=""></div><div class="">There are a number of rtp_audio/video_in/out_ variables. Normally these are only in the CDR at the end of the call but you can set them at any time using uuid_set_media_stats. Once they're set you can read them out (uuid_getvar or uuid_dump) and if you need to change codec call&nbsp;uuid_media_reneg.</div><div class=""><br class=""></div><div class="">Wouldn't be event based or automatic, you'd need a script that periodically polls the current quality of the call.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 10 October 2016 at 00:30, Michael Jerris <span dir="ltr" class="">&lt;<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i think FreeSWITCH already has all the bits in place to force a reinvite based renegotiation. &nbsp;we may not have all the bits to allow for real time monitoring of quality but the major pieces are in place already to track those.<div class="m_8853309510867252752HOEnZb"><div class="m_8853309510867252752h5"><span class=""></span><br class=""><br class="">On Sunday, October 9, 2016, Philippe Duke &lt;<a href="mailto:philippe46@netassist.ua" target="_blank" class="">philippe46@netassist.ua</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, dear FreeSWITCH developers.<br class="">
<br class="">
Would like to ask you what we need to implement adaptive codec switching<br class="">
using SIP re-invites in the application.<br class="">
<br class="">
Adaptive codec switching is the codec parameters renegotiation (SIP<br class="">
re-invite) using network measurements of jitter and bandwidth between<br class="">
two legs. Would like to ask if we have a some docu defines this method.<br class="">
<br class="">
We have a lack of clients support it, but we may rely on open project to<br class="">
make it work. I suggest to use some kind of protocol extension to achive<br class="">
such behavior.<br class="">
<br class=""></blockquote></div></div></blockquote></div></div></div></div></blockquote></div><br class=""></div></body></html>