Class: Adhearsion::Configuration::AsteriskConfiguration
- Inherits:
-
TelephonyPlatformConfiguration
- Object
- AbstractConfiguration
- TelephonyPlatformConfiguration
- Adhearsion::Configuration::AsteriskConfiguration
- Defined in:
- lib/adhearsion/initializer/configuration.rb
Defined Under Namespace
Classes: AMIConfiguration
Instance Attribute Summary collapse
-
#argument_delimiter ⇒ Object
Returns the value of attribute argument_delimiter.
-
#speech_engine ⇒ Object
Returns the value of attribute speech_engine.
Attributes inherited from TelephonyPlatformConfiguration
#listening_host, #listening_port
Class Method Summary collapse
-
.default_argument_delimiter ⇒ Object
Keep Asterisk 1.4 (and prior) as the default to protect upgraders This setting only applies to AGI.
- .default_listening_port ⇒ Object
Instance Method Summary collapse
-
#initialize(overrides = {}) ⇒ AsteriskConfiguration
constructor
A new instance of AsteriskConfiguration.
Methods inherited from TelephonyPlatformConfiguration
Methods included from ConfigurationEntryPoint
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_delimiter ⇒ Object
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_engine ⇒ Object
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_delimiter ⇒ Object
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_port ⇒ Object
149 150 151 |
# File 'lib/adhearsion/initializer/configuration.rb', line 149 def default_listening_port 4573 end |