Sha256: aee7d395f05631fc463401b36dbbcf233cddedef7a14ebd830a44ba6836c1811

Contents?: true

Size: 434 Bytes

Versions: 52

Compression:

Stored size: 434 Bytes

Contents

require "fsr/app"
module FSR
  module App
    # http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup
    class Hangup < Application
      def initialize(cause = nil)
        @cause = cause
      end

      def arguments
        @cause
      end

      def sendmsg
        "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\n\n" % [app_name, arguments]
      end

    end

    register(:hangup, Hangup)
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
bougyman-freeswitcher-0.1.0 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.1 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.2 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.3 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.1.4 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.3.0 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.3.1 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.0 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.1 lib/fsr/app/hangup.rb
bougyman-freeswitcher-0.4.2 lib/fsr/app/hangup.rb
freeswitcher-0.6.12 lib/fsr/app/hangup.rb
freeswitcher-0.6.11 lib/fsr/app/hangup.rb
freeswitcher-0.6.10 lib/fsr/app/hangup.rb
freeswitcher-0.6.9 lib/fsr/app/hangup.rb
freeswitcher-0.6.8 lib/fsr/app/hangup.rb
freeswitcher-0.6.7 lib/fsr/app/hangup.rb
freeswitcher-0.6.6 lib/fsr/app/hangup.rb
freeswitcher-0.6.5 lib/fsr/app/hangup.rb
freeswitcher-0.6.4 lib/fsr/app/hangup.rb
freeswitcher-0.6.3 lib/fsr/app/hangup.rb