Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-9705

Files using prebuffer do not play properly when seeking back to the beginning once the file is done playing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9
    • Fix Version/s: None
    • Component/s: freeswitch-core
    • Security Level: public
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      8a80741
    • GIT Master Revision hash::
      8a80741

      Description

      Files with the prebufer get stuck in a state once the file reaches the end where seeking back to the beginning does not work properly.

        Activity

        Hide
        silviu silviu caragea added a comment -
        Hello,

        I have an app that's playing several files once the call is answered:

        <action application="playback" data="/usr/local/woow-vm/sounds/ro/pinconf.wav"/>
        <action application="playback" data="/usr/local/woow-vm/sounds/ro/1.wav"/>
        <action application="playback" data="/usr/local/woow-vm/sounds/ro/2.wav"/>
        <action application="playback" data="/usr/local/woow-vm/sounds/ro/3.wav"/>
        <action application="playback" data="/usr/local/woow-vm/sounds/ro/4.wav"/>

        All FS versions on branch v1.6 before the commit that is fixing this bug (7c80f6c717f8b2538c843d6743521cfe6471ccd8) are working fine . The version including this commit is playing only first file.. all other appears instantly as played even if no sound is played.

        In logs I can see:

        a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none]
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/pinconf.wav)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/pinconf.wav)
        2016-11-16 10:21:36.372807 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/pinconf.wav sample rate 44100 doesn't match requested rate 8000
        2016-11-16 10:21:36.372807 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur.
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/pinconf.wav
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none]
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/1.wav)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/1.wav)
        2016-11-16 10:21:38.432873 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/1.wav sample rate 44100 doesn't match requested rate 8000
        2016-11-16 10:21:38.432873 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur.
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/1.wav
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none]
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/2.wav)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/2.wav)
        2016-11-16 10:21:38.452793 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/2.wav sample rate 44100 doesn't match requested rate 8000
        2016-11-16 10:21:38.452793 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur.
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/2.wav
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none]
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/3.wav)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/3.wav)
        2016-11-16 10:21:38.452793 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/3.wav sample rate 44100 doesn't match requested rate 8000
        2016-11-16 10:21:38.452793 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur.
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/3.wav
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none)
        0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none)

        Silviu
        Show
        silviu silviu caragea added a comment - Hello, I have an app that's playing several files once the call is answered: <action application="playback" data="/usr/local/woow-vm/sounds/ro/pinconf.wav"/> <action application="playback" data="/usr/local/woow-vm/sounds/ro/1.wav"/> <action application="playback" data="/usr/local/woow-vm/sounds/ro/2.wav"/> <action application="playback" data="/usr/local/woow-vm/sounds/ro/3.wav"/> <action application="playback" data="/usr/local/woow-vm/sounds/ro/4.wav"/> All FS versions on branch v1.6 before the commit that is fixing this bug (7c80f6c717f8b2538c843d6743521cfe6471ccd8) are working fine . The version including this commit is playing only first file.. all other appears instantly as played even if no sound is played. In logs I can see: a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none] 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/pinconf.wav) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/pinconf.wav) 2016-11-16 10:21:36.372807 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/pinconf.wav sample rate 44100 doesn't match requested rate 8000 2016-11-16 10:21:36.372807 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur. 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:36.372807 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/pinconf.wav 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none] 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/1.wav) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/1.wav) 2016-11-16 10:21:38.432873 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/1.wav sample rate 44100 doesn't match requested rate 8000 2016-11-16 10:21:38.432873 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur. 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.432873 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/1.wav 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none] 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/2.wav) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/2.wav) 2016-11-16 10:21:38.452793 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/2.wav sample rate 44100 doesn't match requested rate 8000 2016-11-16 10:21:38.452793 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur. 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/2.wav 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] mod_dptools.c:1527 SET sofia/woow/xxx@ip [playback_terminators]=[none] 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute playback(/usr/local/woow-vm/sounds/ro/3.wav) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip playback(/usr/local/woow-vm/sounds/ro/3.wav) 2016-11-16 10:21:38.452793 [DEBUG] switch_core_file.c:334 File /usr/local/woow-vm/sounds/ro/3.wav sample rate 44100 doesn't match requested rate 8000 2016-11-16 10:21:38.452793 [WARNING] switch_core_file.c:352 File has 2 channels, muxing to 1 channel will occur. 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/woow-vm/sounds/ro/3.wav 0a88eae6-4012-4ba4-83c8-f83b169bdf02 2016-11-16 10:21:38.452793 [DEBUG] switch_ivr.c:623 sofia/woow/xxx@ip Command Execute set(playback_terminators=none) 0a88eae6-4012-4ba4-83c8-f83b169bdf02 EXECUTE sofia/woow/xxx@ip set(playback_terminators=none) Silviu

          People

          • Assignee:
            mikej Mike Jerris
            Reporter:
            anthm Anthony Minessale II
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development