lib/fsr/app/hangup.rb in freeswitcher-0.0.10 vs lib/fsr/app/hangup.rb in freeswitcher-0.0.11
- old
+ new
@@ -1,15 +1,15 @@
require "fsr/app"
module FSR
module App
# http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup
class Hangup < Application
- def initialize(data = nil)
- @data = data
+ def initialize(cause = nil)
+ @cause = cause
end
def arguments
- @data
+ @cause
end
def sendmsg
"call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\n\n" % [app_name, arguments]
end