Module: RubyAsterisk::AMI::Commands::Monitor
- Included in:
- RubyAsterisk::AMI::Client
- Defined in:
- lib/ruby-asterisk/ami/commands/monitor.rb
Overview
Monitor commands
Instance Method Summary collapse
- #change_monitor(channel:, file:) ⇒ Object
- #monitor(channel, mix: false, file: nil, format: 'wav') ⇒ Object
- #pause_monitor(channel) ⇒ Object
- #stop_monitor(channel) ⇒ Object
- #unpause_monitor(channel) ⇒ Object
Instance Method Details
#change_monitor(channel:, file:) ⇒ Object
27 28 29 |
# File 'lib/ruby-asterisk/ami/commands/monitor.rb', line 27 def change_monitor(channel:, file:) execute 'ChangeMonitor', { 'Channel' => channel, 'File' => file } end |
#monitor(channel, mix: false, file: nil, format: 'wav') ⇒ Object
11 12 13 |
# File 'lib/ruby-asterisk/ami/commands/monitor.rb', line 11 def monitor(channel, mix: false, file: nil, format: 'wav') execute 'Monitor', { 'Channel' => channel, 'File' => file, 'Mix' => mix, 'Format' => format } end |
#pause_monitor(channel) ⇒ Object
19 20 21 |
# File 'lib/ruby-asterisk/ami/commands/monitor.rb', line 19 def pause_monitor(channel) execute 'PauseMonitor', { 'Channel' => channel } end |
#stop_monitor(channel) ⇒ Object
15 16 17 |
# File 'lib/ruby-asterisk/ami/commands/monitor.rb', line 15 def stop_monitor(channel) execute 'StopMonitor', { 'Channel' => channel } end |
#unpause_monitor(channel) ⇒ Object
23 24 25 |
# File 'lib/ruby-asterisk/ami/commands/monitor.rb', line 23 def unpause_monitor(channel) execute 'UnpauseMonitor', { 'Channel' => channel } end |