diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-09-29 15:29:36 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-09-29 15:29:36 +0000 |
commit | 78c88843fbdb0cb1cd51e9299c18ec729044ec47 (patch) | |
tree | 4f8fc829b87fdf9450129a7871b8950e8f929b2b | |
parent | 3243d80d3a748917a6dbe54ed54f3a9a5602f2de (diff) | |
download | acf-kamailio-78c88843fbdb0cb1cd51e9299c18ec729044ec47.tar.bz2 acf-kamailio-78c88843fbdb0cb1cd51e9299c18ec729044ec47.tar.xz |
Fix controller default_action now that using mymodule
-rw-r--r-- | kamailio-controller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kamailio-controller.lua b/kamailio-controller.lua index b94b94d..5e0ec0f 100644 --- a/kamailio-controller.lua +++ b/kamailio-controller.lua @@ -1,8 +1,6 @@ local mymodule = {} -require("dbcontrollerfunctions") - -default_action = "status" +mymodule.default_action = "status" function mymodule.status(self) return self.model.getstatus() @@ -45,6 +43,8 @@ function mymodule.searchdatabase(self) return self.model.search_database(self.clientdata.id, self.clientdata.value, self.clientdata.comparison) end +-- Use acf-db to allow editing of the database +require("dbcontrollerfunctions") for n,f in pairs(dbcontrollerfunctions) do mymodule[n] = f end |