examples/asterisk_manager_interface/standalone.rb in adhearsion-0.8.3 vs examples/asterisk_manager_interface/standalone.rb in adhearsion-0.8.4
- old
+ new
@@ -38,13 +38,13 @@
if sip_peers.any?
sip_peers.each do |peer|
# Uncomment the following line to view all the headers for each peer.
# p peer.headers
-
+
peer_name = peer.headers["ObjectName"]
peer_status = peer.headers["Status"]
-
+
puts "#{peer_name}: #{peer_status}"
end
else
puts "This Asterisk server has no SIP peers!"
end