Sha256: 775f0d9cc28df334b637002c112ae31c13aec1b9aa0beb8c1b62511ae3101b9c
Contents?: true
Size: 907 Bytes
Versions: 5
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.call_hangup # # # Note: events are mostly for components to register and expose to you. ##
Version data entries
5 entries across 5 versions & 4 rubygems