Created
July 23, 2008 13:49
-
-
Save vangberg/1728 to your computer and use it in GitHub Desktop.
This file contains 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
privat { | |
# Do we know that extension? | |
hangup unless @user = User.first(:extension => extension) | |
# Add to call log | |
@user.call_logs << CallLog.new(:type => 'incoming', :caller_id => callerid, :created_at => Time.now) | |
dial(@user.node) | |
@user.save | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment