<div dir="ltr">David,<div><br></div><div>Most likely your mod_opus is configured to respect the remote's fmtp and not the maxaveragebitrate and maxplaybackrate that you configure. You have bitrate-negotiation set to true.</div><div>It looks it's going in WB mode if you are sure it starts sending FEC at over 16 kbit/s . </div><div>Value 14400 was chosen as config default only because is one step above 14000 which is one of the LBRR thresholds (Opus's bitrate works in steps of 400 bits/s) and it also provides a good compromis loss/audio quality for NB. </div><div><a href="https://github.com/xiph/opus/blob/master/silk/define.h#L52">https://github.com/xiph/opus/blob/master/silk/define.h#L52</a><br></div><div><br></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file" style="border-spacing:0px;border-collapse:collapse;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-LC50" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"><span class="gmail-pl-c" style="box-sizing:border-box"><span class="gmail-pl-c" style="box-sizing:border-box">/*</span> LBRR thresholds <span class="gmail-pl-c" style="box-sizing:border-box">*/</span></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L51" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC51" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre">#<span class="gmail-pl-k" style="box-sizing:border-box">define</span> <span class="gmail-pl-en" style="box-sizing:border-box">LBRR_NB_MIN_RATE_BPS</span>                    <span class="gmail-pl-c1" style="box-sizing:border-box">12000</span></td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L52" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC52" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line gmail-highlighted" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre">#<span class="gmail-pl-k" style="box-sizing:border-box">define</span> <span class="gmail-pl-en" style="box-sizing:border-box">LBRR_MB_MIN_RATE_BPS</span>                    <span class="gmail-pl-c1" style="box-sizing:border-box">14000</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L53" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC53" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre">#<span class="gmail-pl-k" style="box-sizing:border-box">define</span> <span class="gmail-pl-en" style="box-sizing:border-box">LBRR_WB_MIN_RATE_BPS</span>                    <span class="gmail-pl-c1" style="box-sizing:border-box">16000</span></td></tr></tbody></table></div><div><br></div><div><br></div><div>FEC threshold in FS is this:</div><div>#define SWITCH_OPUS_MIN_FEC_BITRATE 12400 - one step above codec's LBRR threshold for NB. LBRR means Low Bit Rate Redundancy which means FEC. </div><div><br></div><div>Regards,</div><div>Dragos</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 18, 2021 at 3:06 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.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"><div dir="ltr">Hello all,<div><br></div><div>i've been testing FEC and how low we can go with maxavgbiterate</div><div><br></div><div><param name="use-vbr" value="1"/><br><param name="use-dtx" value="1"/><br><param name="complexity" value="10"/><br><param name="packet-loss-percent" value="15"/><br><param name="asymmetric-sample-rates" value="1"/><br><param name="bitrate-negotiation" value="1"/><br><param name="keep-fec-enabled" value="1"/><br><param name="use-jb-lookahead" value="true"/><br><param name="maxaveragebitrate" value="14400"/><br><param name="maxplaybackrate" value="8000"/><br><param name="sprop-maxcapturerate" value="0"/><br><param name="adjust-bitrate" value="1"/><br></div><div><br></div><div>we only see FEC if we set maxavgbiterate to 18000, we see no FEC with 14400</div><div><br></div><div>anyone knows what i'm missing?</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>