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

scripts/sound_test.lua attempts to concatenate boolean

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Scripts
    • Labels:
      None
    • Environment:
      Lua 5.3
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 9 Stretch
    • Compiler:
      gcc
    • Compiler Version:
      6.3.0
    • FreeSWITCH GIT Revision:
      b5624eca204644e3751fc0cc5c2d12c8e3c3a2f0
    • GIT Master Revision hash::
      b5624eca204644e3751fc0cc5c2d12c8e3c3a2f0

      Description

      sound_test.lua causes error attempting to concatenate boolean. Should perhaps capture 3 values returned by os.execute and use `what` or `exit code` instead of the first retval which would be true on success or nil on error with code in 3rd retval.

      mod_lua.cpp:203 /usr/local/freeswitch/scripts/sound_test.lua:64: attempt to concatenate global 'res' (a boolean value)
      stack traceback:
      /usr/local/freeswitch/scripts/sound_test.lua:64: in main chunk

        Attachments

          Activity

            People

            • Assignee:
              brian@freeswitch.org Brian West
              Reporter:
              asiplas Andrew Siplas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: