<div dir="ltr">This has been discussed on this ML a while ago.<div>Documentation out of date.<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 18, 2022 at 11:00 AM Shaun Stokes <shaun@sysconfig.cloud> 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">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I've figured out our issue with <span style="background-color:rgb(255,255,255);display:inline">
media_timeout_audio</span>, this is using<span style="background-color:rgb(255,255,255);display:inline"> ms not seconds.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">Is this a bug, or is the documentation out of date?</span></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4519661526989081746divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Dragos Oancea <<a href="mailto:dragos@freeswitch.org" target="_blank">dragos@freeswitch.org</a>><br>
<b>Sent:</b> 16 February 2022 13:49<br>
<b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] Media timeout</font>
<div> </div>
</div>
<div>
<div dir="ltr">please open a github issue.
<div><a href="https://github.com/signalwire/freeswitch/issues" target="_blank">https://github.com/signalwire/freeswitch/issues</a><br>
</div>
<div><br>
</div>
<div>you could also check if switch_rtp_set_max_missed_packets() and/or switch_rtp_set_media_timeout() are called in your particular call setup, with your configs.</div>
<div> </div>
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Tue, Feb 15, 2022 at 11:33 PM Alexander Haugg <<a href="mailto:Alexander.Haugg@c4b.de" target="_blank">Alexander.Haugg@c4b.de</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE">
<div>
<p><span>Hi Shaun,<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span>I have noticed the same thing. "media_timout" in conjunction with WebRTC does not work at all.<u></u><u></u></span></p>
<p><span>If someone has a solution, that would be really fine.<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span>Currently I have helped myself by re-enabling the following in the code:<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span>diff --git a/src/switch_rtp.c b/src/switch_rtp.c<u></u><u></u></span></p>
<p><span> index 40d8978..aada64a 100644<u></u><u></u></span></p>
<p><span> --- a/src/switch_rtp.c<u></u><u></u></span></p>
<p><span> +++ b/src/switch_rtp.c<u></u><u></u></span></p>
<p><span> @@ -854,8 +854,8 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice)<u></u><u></u></span></p>
<p><span> if (elapsed > 30000) {<u></u><u></u></span></p>
<p><span> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "No %s rtp_session->last_stun = switch_micro_time_now();<u></u><u></u></span></p>
<p><span> - //status = SWITCH_STATUS_GENERR;<u></u><u></u></span></p>
<p><span> - //goto end;<u></u><u></u></span></p>
<p><span> + status = SWITCH_STATUS_GENERR;<u></u><u></u></span></p>
<p><span> + goto end;<u></u><u></u></span></p>
<p><span> }<u></u><u></u></span></p>
<p><span> }<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span> @@ -897,7 +897,7 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice)<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span> ice->sending = 3;<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span> - // end:<u></u><u></u></span></p>
<p><span> + end:<u></u><u></u></span></p>
<p><span> READ_DEC(rtp_session);<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span> return status;<u></u><u></u></span></p>
<p><span> (END)<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span>The code has the consequence that the session is cleared if no more media comes for 30 seconds.<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<p><span>With kind regards<u></u><u></u></span></p>
<p><span>Alex<u></u><u></u></span></p>
<p><span><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p><b>Von:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>>
<b>Im Auftrag von </b>Shaun Stokes<br>
<b>Gesendet:</b> Donnerstag, 10. Februar 2022 14:39<br>
<b>An:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Betreff:</b> [Freeswitch-users] Media timeout<u></u><u></u></p>
</div>
</div>
<p><u></u> <u></u></p>
<div>
<p><span style="font-size:12pt;color:black">Hi All,<u></u><u></u></span></p>
</div>
<div>
<p><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p><span style="font-size:12pt;color:black">I'm not sure if others have had similar experiences but for us the media_timeout variable does not work as expected.<u></u><u></u></span></p>
</div>
<div>
<ul type="disc">
<li style="color:black"><span style="font-size:12pt">media_timeout on a call that supports video but with-out video will fail.<u></u><u></u></span></li><li style="color:black"><span style="font-size:12pt">media_timeout_audio works in some instances, in others the timeout period is ignored so the call will timeout almost immediately after RTP stops.<u></u><u></u></span></li><li style="color:black"><span style="font-size:12pt">media_hold_timeout_audio doesn't seem to work at all, calls that are on hold never timeout.<u></u><u></u></span></li></ul>
<div>
<p><span style="font-size:12pt;color:black;background:white">Why is the SIP profile parameter 'rtp-timeout-sec' depreciated? It's much simpler to apply this per SIP profile than it is per call.</span><span style="font-size:12pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p><span style="font-size:12pt;color:black;background:white">Thanks,</span><span style="font-size:12pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p><span style="font-size:12pt;color:black;background:white">Shaun</span><span style="font-size:12pt;color:black"><u></u><u></u></span></p>
</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>
</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>