Skip to content

Instantly share code, notes, and snippets.

View marks's full-sized avatar

Mark Silverberg marks

View GitHub Profile
We couldn’t find that file to show.
##events.rb
events.asterisk.manager_interface.each do |event|
if event.name.downcase == "newchannel"
launch_new_call_method(event)
end
end
##component.rb
events.asterisk.hungup_call do |event|
#code here
end
events.asterisk.hungup_call do |event|
#code here
end