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

Dbh.test_reactive's return value is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: freeswitch-core
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 7 wheezy
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      92a66fb1e7ddf3a1263d4b793e8521fea6617027
    • GIT Master Revision hash::
      92a66fb1e7ddf3a1263d4b793e8521fea6617027
    • Target Version:
      1.5

      Description

      In the FreeSWITCH core, the return value of switch_case_db_test_reactive is ignored, but it is usable in LUA modules (and other bindings via SWIG). The [LUA API example][1] shows how to check the return value, but that example miserably fails if the database did not exist before.

      Patch available at https://stash.freeswitch.org/projects/FS/repos/freeswitch/pull-requests/57

      [1]: https://confluence.freeswitch.org/display/FREESWITCH/Lua+API+Reference

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              Lekensteyn Peter Wu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: