Skip to content

Instantly share code, notes, and snippets.

@marks
Created February 18, 2009 02:51
Show Gist options
  • Save marks/66157 to your computer and use it in GitHub Desktop.
Save marks/66157 to your computer and use it in GitHub Desktop.
##events.rb
events.asterisk.manager_interface.each do |event|
if event.name.downcase == "newchannel"
launch_new_call_method(event)
end
end
##component.rb
methods_for :events do
def launch_new_call(event)
#code to launch second call
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment