bin/punchblock-console in punchblock-0.4.2 vs bin/punchblock-console in punchblock-0.4.3
- old
+ new
@@ -71,11 +71,10 @@
puts e.backtrace.join("\t\n")
end
end
CALL_QUEUES = {}
-INFO_EVENT_QUEUE = Queue.new
### DISPATCHER THREAD
# This thread multiplexes the event stream from the underlying connection handler and routes them
# to the correct queue for each call. It also starts a call handler, the run_call method) after creating
# the queue.
@@ -92,17 +91,14 @@
when Event::Offer
raise "Duplicate call ID for #{event.call_id}" if CALL_QUEUES.has_key?(event.call_id)
CALL_QUEUES[event.call_id] = Queue.new
CALL_QUEUES[event.call_id].push event
run_call connection, event
- when Event::Info
- INFO_EVENT_QUEUE.push event
- when Event::Answered, Event::Complete, Event::End, Event::Ringing
+ when Event
CALL_QUEUES[event.call_id].push event
else
puts "Unknown event: #{event.inspect}"
end
-
end
end
def run_call(connection, offer)
### CALL THREAD