Created
August 25, 2014 22:07
-
-
Save krakatoa/eab9904502a1da737314 to your computer and use it in GitHub Desktop.
Event handling mod_lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- local s = event:serialize("xml") | |
local name = event:getHeader("Event-Name") | |
freeswitch.consoleLog("NOTICE", "Got event! " .. name) | |
if name == "DTMF" then | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--<hook event="DTMF" script="/etc/freeswitch/scripts/dtmf_handler.lua"/>--> | |
<hook event="all" script="/etc/freeswitch/scripts/dtmf_handler.lua"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment