Skip to content

Instantly share code, notes, and snippets.

@marks
Created January 21, 2009 20:59
Show Gist options
  • Save marks/50185 to your computer and use it in GitHub Desktop.
Save marks/50185 to your computer and use it in GitHub Desktop.
>> pp AdhearsionDRB.send_action(:queuestatus)
[#<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0xb73aab08
@headers=
{"Completed"=>"2",
"Abandoned"=>"4",
"ServicelevelPerf"=>"0.0",
"Calls"=>"0",
"Max"=>"0",
"ServiceLevel"=>"0",
"Holdtime"=>"9",
"Weight"=>"0",
"Queue"=>"is",
"ActionID"=>"SYFuOZSq-DQQu-Jg6C-9Ca1-SMneTHRizfDu"},
@name="QueueParams">,
#<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0xb73aa7c0
@headers=
{"Name"=>"Local/79210101@agents",
"Membership"=>"dynamic",
"CallsTaken"=>"1",
"Status"=>"1",
"Penalty"=>"0",
"LastCall"=>"1232553121",
"Location"=>"Local/79210101@agents",
"Paused"=>"0",
"Queue"=>"is",
"ActionID"=>"SYFuOZSq-DQQu-Jg6C-9Ca1-SMneTHRizfDu"},
@name="QueueMember">]
=> nil
#### What I want.. is just the array whose @name="QueueParams" and inside there, "Queue" = "is"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment