Class Adhearsion::VoIP::Asterisk::Commands::QueueProxy
In: lib/adhearsion/voip/asterisk/commands.rb
Parent: Object

Methods

Classes and Modules

Class Adhearsion::VoIP::Asterisk::Commands::QueueProxy::AgentProxy
Class Adhearsion::VoIP::Asterisk::Commands::QueueProxy::QueueAgentsListProxy
Class Adhearsion::VoIP::Asterisk::Commands::QueueProxy::QueueDoesNotExistError

Attributes

environment  [R] 
name  [R] 

Public Class methods

Public Instance methods

Makes the current channel join the queue. Below are explanations of the recognized Hash-key arguments supported by this method.

  :timeout        - The number of seconds to wait for an agent to answer
  :play           - Can be :ringing or :music.
  :announce       - A sound file to play instead of the normal queue announcement.
  :allow_transfer - Can be :caller, :agent, or :everyone. Allow someone to transfer the call.
  :allow_hangup   - Can be :caller, :agent, or :everyone. Allow someone to hangup with the * key.

Usage examples:

 - queue('sales').join!
 - queue('sales').join! :timeout => 1.minute
 - queue('sales').join! :play => :music
 - queue('sales').join! :play => :ringing
 - queue('sales').join! :announce => "custom/special-queue-announcement"
 - queue('sales').join! :allow_transfer => :caller
 - queue('sales').join! :allow_transfer => :agent
 - queue('sales').join! :allow_hangup   => :caller
 - queue('sales').join! :allow_hangup   => :agent
 - queue('sales').join! :allow_hangup   => :everyone
 - queue('sales').join! :allow_transfer => :agent, :timeout => 30.seconds,

[Validate]