<div dir="ltr">You might be able to script it now.<div><br></div><div>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&#39;re set you can read them out (uuid_getvar or uuid_dump) and if you need to change codec call uuid_media_reneg.</div><div><br></div><div>Wouldn&#39;t be event based or automatic, you&#39;d need a script that periodically polls the current quality of the call.</div><div class="gmail_extra"><br><div class="gmail_quote">On 10 October 2016 at 00:30, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><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.  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></span><br><br>On Sunday, October 9, 2016, Philippe Duke &lt;<a href="mailto:philippe46@netassist.ua" target="_blank">philippe46@netassist.ua</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, dear FreeSWITCH developers.<br>
<br>
Would like to ask you what we need to implement adaptive codec switching<br>
using SIP re-invites in the application.<br>
<br>
Adaptive codec switching is the codec parameters renegotiation (SIP<br>
re-invite) using network measurements of jitter and bandwidth between<br>
two legs. Would like to ask if we have a some docu defines this method.<br>
<br>
We have a lack of clients support it, but we may rely on open project to<br>
make it work. I suggest to use some kind of protocol extension to achive<br>
such behavior.<br>
<br>
<br>
--<br>
Philippe Duke<br>
Network software engineer<br>
System-level developer<br>
<br>
NetAssist LLC<br>
Ukraine<br>
Khreshchatyk Street, 10B, office 8<br>
AS29632<br>
<br>
<a href="http://netassist.ua" target="_blank">http://netassist.ua</a><br>
Our GitHub Repository:<br>
<a href="https://github.com/netassist-ua" target="_blank">https://github.com/netassist-u<wbr>a</a><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a>FreeSWITCH-dev@lists.freeswitc<wbr>h.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" rel="noreferrer" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitc<wbr>h.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>