Created
February 18, 2009 02:51
-
-
Save marks/66157 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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