Class: Adhearsion::Configuration::AsteriskConfiguration

Inherits:
TelephonyPlatformConfiguration show all
Defined in:
lib/adhearsion/initializer/configuration.rb

Defined Under Namespace

Classes: AMIConfiguration

Instance Attribute Summary collapse

Attributes inherited from TelephonyPlatformConfiguration

#listening_host, #listening_port

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TelephonyPlatformConfiguration

default_listening_host

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(overrides = {}) ⇒ AsteriskConfiguration

Returns a new instance of AsteriskConfiguration.



161
162
163
164
# File 'lib/adhearsion/initializer/configuration.rb', line 161

def initialize(overrides = {})
  @argument_delimiter = self.class.default_argument_delimiter
  super
end

Instance Attribute Details

#argument_delimiterObject

Returns the value of attribute argument_delimiter.



146
147
148
# File 'lib/adhearsion/initializer/configuration.rb', line 146

def argument_delimiter
  @argument_delimiter
end

#speech_engineObject

Returns the value of attribute speech_engine.



145
146
147
# File 'lib/adhearsion/initializer/configuration.rb', line 145

def speech_engine
  @speech_engine
end

Class Method Details

.default_argument_delimiterObject

Keep Asterisk 1.4 (and prior) as the default to protect upgraders This setting only applies to AGI. AMI delimiters are always auto-detected.



156
157
158
# File 'lib/adhearsion/initializer/configuration.rb', line 156

def default_argument_delimiter
  '|'
end

.default_listening_portObject



149
150
151
# File 'lib/adhearsion/initializer/configuration.rb', line 149

def default_listening_port
  4573
end