Class Adhearsion::VoIP::DSL::Dialplan::CommandDispatcher
In: lib/adhearsion/voip/dsl/dialplan/dispatcher.rb
Parent: Object

Serves as a EventCommand proxy for handling EventCommands. Useful if doing any pre-processing.

For example, when sending commands over the event socket to FreeSwitch, every command must start with "api", but, when doing an originate, it must begin with an ampersand. These two pre-processors would be developed as separate CommandDispatchers.

Methods

break!   clone   def_keys!   dispatch!   method_missing   new   return!  

Attributes

context  [R] 
factory  [R] 

Public Class methods

Public Instance methods

Takes a Hash and meta_def()’s a method for each key that returns the key‘s value in the Hash.

[Validate]