Skip to content

Instantly share code, notes, and snippets.

@pikajude
Forked from bjhaid/gist:1104320
Created July 25, 2011 15:49
Show Gist options
  • Save pikajude/1104433 to your computer and use it in GitHub Desktop.
Save pikajude/1104433 to your computer and use it in GitHub Desktop.
currentcalls = {"provider"=>"Internal", "start_time"=>"2011-07-25 16:29:29", "duration"=>"60", "to_caller_id_number"=>"7003", "state"=>"leaving_voicemail", "from_caller_id_name"=>"CC Agent Station", "to_caller_id_name"=>"tttttt aaaaaaaaa", "format"=>"slin", "from_caller_id_number"=>"4100", "id"=>"Local/4100~1122@pre_process_call_api-cf84,1"}
{"provider"=>"Internal", "start_time"=>"2011-07-25 16:29:29", "duration"=>"60", "to_caller_id_number"=>"4100", "state"=>"leaving_voicemail", "from_caller_id_name"=>"CC Agent Station", "to_caller_id_name"=>"CC Agent Station", "format"=>"slin", "from_caller_id_number"=>"4100", "id"=>"Local/4100~1122@pre_process_call_api-cf84,2"}
current_calls do |a|
if
a["to_caller_id_number"] == "7003"
puts a["7003"].id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment