Guest User

Untitled

a guest
Apr 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def list
  2. rastcon = Rastcon.new
  3. rastcon.add_event_hook(:event) { |evt| puts "Event received: [#{evt.inspect}]"}
  4. rastcon.connect
  5. rastcon.events(:eventmask => "user,call")
  6. rastcon.ping
  7.  
  8. rastcon.logoff
  9. end
Add Comment
Please, Sign In to add comment