freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

'media_timeout' Channel Variable

Open mx5sean opened this issue 2 years ago • 6 comments

Per this wiki document here: https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Configuration/Sofia-SIP-Stack/Sofia-Configuration-Files_7144453/#media_timeout

It states that 'rtp-timeout-sec' parameter in the profile is now deprecated, and to use the channel variable in vars.xml:

Unfortunately - when I block media and attempt to use this variable - it does not work. The deprecated parameter 'rtp-timeout-sec' does work as intended.

To Reproduce Steps to reproduce the behavior:

  1. Add the above channel variable to the FreeSWITCH config file (vars.xml)
  2. Block RTP from being received by FreeSWITCH
  3. The call will not tear down as is intended by the channel variable.

Expected behavior I expected a MEDIA_TIMEOUT to occur just like it does with rtp-timeout-sec parameter.

Package version or git hash

  • 1.10.7

Question #2: The variable states that the time is in milliseconds. Wouldn't that be '30,000' instead of '300,000' for 30 seconds?

mx5sean avatar May 10 '23 21:05 mx5sean

about question 2, yes, the doc is wrong, there's an extra zero.

dragos-oancea avatar May 11 '23 06:05 dragos-oancea

doc was updated to reflect 31 seconds, 31,000 milliseconds. Can you get a log example with debug loglevel 9?

Len-PGH avatar May 16 '23 18:05 Len-PGH

log.txt

Log attached per request.

mx5sean avatar May 19 '23 17:05 mx5sean

Good morning,

Just a friendly bump. Any feedback here? I can provide more data if needed.

Thanks!

mx5sean avatar May 24 '23 14:05 mx5sean

This is solved by moving from 1.10.7 to 1.10.8. Can be closed.

mx5sean avatar Jul 06 '23 16:07 mx5sean

Hi,

I am trying to test same media timeout but its not working.. can someone please help?

test scenario: setting media timeout as 31000ms. calling form microsip. parking on fs. disconnecting internet from microsip end.

Expected behavior Media timeout should occur but nothing such happening.

P.S-- I tried rtp timeout too that is also not working.

FreeSWITCH Version 1.10.12

Vaibhav151123 avatar Nov 03 '25 06:11 Vaibhav151123