Sha256: 97c3dfa5eaa9ff223e7f6b61e3ce5389690536fcb0650d252180cbef4ecc9c09

Contents?: true

Size: 907 Bytes

Versions: 17

Compression:

Stored size: 907 Bytes

Contents

##
# In this file you can define callbacks for different aspects of the framework. Below is an example:
##
#
# events.asterisk.before_call.each do |call|
#   # This simply logs the extension for all calls going through this Adhearsion app.
#   extension = call.variables[:extension]
#   ahn_log "Got a new call with extension #{extension}"
# end
#
##
# Asterisk Manager Interface example:
#
# events.asterisk.manager_interface.each do |event|
#   ahn_log.events event.inspect
# end
#
# This assumes you gave :events => true to the config.asterisk.enable_ami method in config/startup.rb
#
##
# Here is a list of the events included by default:
#
# - events.asterisk.manager_interface
# - events.after_initialized
# - events.shutdown
# - events.asterisk.before_call
# - events.asterisk.failed_call
# - events.asterisk.hungup_call
#
#
# Note: events are mostly for components to register and expose to you.
##

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
jicksta-adhearsion-0.8.2 app_generators/ahn/templates/events.rb
jicksta-adhearsion-0.8.3 app_generators/ahn/templates/events.rb
kenwiesner-adhearsioncw-0.8.3 app_generators/ahn/templates/events.rb
mtrudel-adhearsion-0.8.3 app_generators/ahn/templates/events.rb
adhearsion-1.0.3 app_generators/ahn/templates/events.rb
adhearsion-1.0.2 app_generators/ahn/templates/events.rb
adhearsion-cw-1.0.2.3 app_generators/ahn/templates/events.rb
adhearsion-cw-1.0.2.2 app_generators/ahn/templates/events.rb
adhearsion-cw-1.0.2.1 app_generators/ahn/templates/events.rb
adhearsion-1.0.1 app_generators/ahn/templates/events.rb
adhearsion-1.0.0 app_generators/ahn/templates/events.rb
rene-adhearsion-0.8.6 app_generators/ahn/templates/events.rb
adhearsion-0.8.6 app_generators/ahn/templates/events.rb
adhearsion-0.8.5 app_generators/ahn/templates/events.rb
adhearsion-0.8.4 app_generators/ahn/templates/events.rb
adhearsion-0.8.3 app_generators/ahn/templates/events.rb
adhearsion-0.8.2 app_generators/ahn/templates/events.rb