<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:71974868;
        mso-list-template-ids:-849693946;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1
        {mso-list-id:806557400;
        mso-list-template-ids:640024876;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l2
        {mso-list-id:1242177642;
        mso-list-type:hybrid;
        mso-list-template-ids:1741991244 1732517832 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-style-link:botelist;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:40.5pt;
        text-indent:-.25in;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
@list l2:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:76.5pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:112.5pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l2:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:148.5pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l2:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:184.5pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:220.5pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l2:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:256.5pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l2:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:292.5pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:328.5pt;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>I have updated the Confluence page<o:p></o:p></p><p class=MsoNormal><a href="https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files">https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>but that variable is mentioned on other pages because it’s a wiki so…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We always welcome help with updating the wiki, just ask for edit permission.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'>John Boteler<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#7F7F7F'>Bote Communications<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> <b>On Behalf Of </b>Dragos Oancea<br><b>Sent:</b> Friday, 18 February, 2022 05:48<br><b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br><b>Subject:</b> Re: [Freeswitch-users] Media timeout<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>This has been discussed on this ML a while ago.<o:p></o:p></p><div><p class=MsoNormal>Documentation out of date.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Fri, Feb 18, 2022 at 11:00 AM Shaun Stokes <<a href="mailto:shaun@sysconfig.cloud">shaun@sysconfig.cloud</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span style='font-size:12.0pt;color:black'>I've figured out our issue with <span style='background:white'>media_timeout_audio</span>, this is using<span style='background:white'> ms not seconds.</span><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:black;background:white'>Is this a bug, or is the documentation out of date?</span><span style='font-size:12.0pt;color:black'><o:p></o:p></span></p></div><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="98%" align=center></div><div id="gmail-m_4519661526989081746divRplyFwdMsg"><p class=MsoNormal><b><span style='color:black'>From:</span></b><span style='color:black'> 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</span> <o:p></o:p></p><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>please open a github issue. <o:p></o:p></p><div><p class=MsoNormal><a href="https://github.com/signalwire/freeswitch/issues" target="_blank">https://github.com/signalwire/freeswitch/issues</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>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.<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>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:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p><span lang=DE>Hi Shaun,<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>I have noticed the same thing. "media_timout" in conjunction with WebRTC does not work at all.<o:p></o:p></span></p><p><span lang=DE>If someone has a solution, that would be really fine.<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>Currently I have helped myself by re-enabling the following in the code:<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>diff --git a/src/switch_rtp.c b/src/switch_rtp.c<o:p></o:p></span></p><p><span lang=DE>  index 40d8978..aada64a 100644<o:p></o:p></span></p><p><span lang=DE>  --- a/src/switch_rtp.c<o:p></o:p></span></p><p><span lang=DE>  +++ b/src/switch_rtp.c<o:p></o:p></span></p><p><span lang=DE>  @@ -854,8 +854,8 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice)<o:p></o:p></span></p><p><span lang=DE>                  if (elapsed > 30000) {<o:p></o:p></span></p><p><span lang=DE>                          switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "No %s                          rtp_session->last_stun = switch_micro_time_now();<o:p></o:p></span></p><p><span lang=DE>  -                       //status = SWITCH_STATUS_GENERR;<o:p></o:p></span></p><p><span lang=DE>  -                       //goto end;<o:p></o:p></span></p><p><span lang=DE>  +                       status = SWITCH_STATUS_GENERR;<o:p></o:p></span></p><p><span lang=DE>  +                       goto end;<o:p></o:p></span></p><p><span lang=DE>                  }<o:p></o:p></span></p><p><span lang=DE>          }<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>  @@ -897,7 +897,7 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice)<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>          ice->sending = 3;<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>  -       // end:<o:p></o:p></span></p><p><span lang=DE>  +       end:<o:p></o:p></span></p><p><span lang=DE>          READ_DEC(rtp_session);<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>          return status;<o:p></o:p></span></p><p><span lang=DE>  (END)<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>The code has the consequence that the session is cleared if no more media comes for 30 seconds.<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><p><span lang=DE>With kind regards<o:p></o:p></span></p><p><span lang=DE>Alex<o:p></o:p></span></p><p><span lang=DE> <o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p><b><span lang=DE>Von:</span></b><span lang=DE> 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<o:p></o:p></span></p></div></div><p><span lang=DE> <o:p></o:p></span></p><div><p><span lang=DE style='font-size:12.0pt;color:black'>Hi All,</span><span lang=DE><o:p></o:p></span></p></div><div><p><span lang=DE style='font-size:12.0pt;color:black'> </span><span lang=DE><o:p></o:p></span></p></div><div><p><span lang=DE style='font-size:12.0pt;color:black'>I'm not sure if others have had similar experiences but for us the media_timeout variable does not work as expected.</span><span lang=DE><o:p></o:p></span></p></div><div><ul type=disc><li class=MsoNormal style='color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo4'><span lang=DE style='font-size:12.0pt'>media_timeout on a call that supports video but with-out video will fail.</span><span lang=DE><o:p></o:p></span></li><li class=MsoNormal style='color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo4'><span lang=DE style='font-size:12.0pt'>media_timeout_audio works in some instances, in others the timeout period is ignored so the call will timeout almost immediately after RTP stops.</span><span lang=DE><o:p></o:p></span></li><li class=MsoNormal style='color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo4'><span lang=DE style='font-size:12.0pt'>media_hold_timeout_audio doesn't seem to work at all, calls that are on hold never timeout.</span><span lang=DE><o:p></o:p></span></li></ul><div><p><span lang=DE style='font-size:12.0pt;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 lang=DE><o:p></o:p></span></p></div><div><p><span lang=DE style='font-size:12.0pt;color:black'> </span><span lang=DE><o:p></o:p></span></p></div><div><p><span lang=DE style='font-size:12.0pt;color:black;background:white'>Thanks,</span><span lang=DE><o:p></o:p></span></p></div><div><p><span lang=DE style='font-size:12.0pt;color:black;background:white'>Shaun</span><span lang=DE><o:p></o:p></span></p></div></div></div></div><p class=MsoNormal>_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" 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" 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" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><o:p></o:p></p></blockquote></div></div></div><p class=MsoNormal>_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" 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" 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" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><o:p></o:p></p></blockquote></div></div></body></html>