diff options
author | spag <spag@golwen.net> | 2013-01-24 16:07:51 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-24 16:07:51 +0100 |
commit | 1e0d9c3344b1726b2b95e67b59a7cde820374617 (patch) | |
tree | 9595d40e469402b000fdfec759a3b52614ff17bb /misc/freeswitch/scripts | |
parent | 0f26298b241fc92f05972a9e47a0cec01245dd10 (diff) |
trigger_notification method added
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/fax.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/fax.lua b/misc/freeswitch/scripts/dialplan/fax.lua index aa29ff6..49a45d9 100644 --- a/misc/freeswitch/scripts/dialplan/fax.lua +++ b/misc/freeswitch/scripts/dialplan/fax.lua @@ -230,3 +230,10 @@ function Fax.insert_document(self, record) return self.database:query(sql_query); end + +function Fax.trigger_notification(self, fax_document_id, uuid) + local command = 'http_request.lua ' .. uuid .. ' http://127.0.0.1/trigger/fax?fax_account_id=' .. tostring(fax_document_id); + + require 'common.fapi' + return common.fapi.FApi:new():execute('luarun', command); +end |