mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
Fix. Load required libraries in voicemail. (#1705)
This commit is contained in:
committed by
FusionPBX
parent
c3463392eb
commit
c0739c4d40
@@ -23,6 +23,10 @@
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
--load libraries
|
||||
local Database = require "resources.functions.database"
|
||||
local Settings = require "resources.functions.lazy_settings"
|
||||
|
||||
--define a function to record the greeting
|
||||
function record_greeting(greeting_id)
|
||||
local db = dbh or Database.new('system')
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
--load libraries
|
||||
local Database = require "resources.functions.database"
|
||||
local Settings = require "resources.functions.lazy_settings"
|
||||
|
||||
--save the recording
|
||||
function record_message()
|
||||
local db = dbh or Database.new('system')
|
||||
|
||||
Reference in New Issue
Block a user