Sha256: f44a08ef645453d3071592e4173fef0c3b4e818594dddf0e4f9303df5f9c6716
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
methods_for :rpc do # Simply create proxy methods for the high-level AMI methods [:send_action, :introduce, :originate, :call_into_context, :call_and_exec, :ping].each do |method_name| define_method(method_name) do |*args| if VoIP::Asterisk.manager_interface VoIP::Asterisk.manager_interface.send(method_name, *args) else ahn_log.ami_remote.error "AMI has not been enabled in startup.rb!" end end end end
Version data entries
3 entries across 3 versions & 3 rubygems