-
-
Save pikajude/1104433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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