Exception: RubyAMI::Action::UnsupportedActionName
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- RubyAMI::Action::UnsupportedActionName
- Defined in:
- lib/ruby_ami/action.rb
Overview
This class will be removed once this AMI library fully supports all known protocol anomalies.
Constant Summary
- UNSUPPORTED_ACTION_NAMES =
%w[queues]
Class Method Summary (collapse)
-
+ (Object) preinitialize(version)
Blacklist some actions depends on the Asterisk version.
Instance Method Summary (collapse)
-
- (UnsupportedActionName) initialize(name)
constructor
A new instance of UnsupportedActionName.
Constructor Details
- (UnsupportedActionName) initialize(name)
A new instance of UnsupportedActionName
138 139 140 |
# File 'lib/ruby_ami/action.rb', line 138 def initialize(name) super "At the moment this AMI library doesn't support the #{name.inspect} action because it causes a protocol anomaly. Support for it will be coming shortly." end |
Class Method Details
+ (Object) preinitialize(version)
Blacklist some actions depends on the Asterisk version
130 131 132 133 134 135 136 |
# File 'lib/ruby_ami/action.rb', line 130 def self.preinitialize(version) if version < 1.8 %w[iaxpeers muteaudio mixmonitormute aocmessage].each do |action| UNSUPPORTED_ACTION_NAMES << action end end end |