Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created July 23, 2008 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vangberg/1728 to your computer and use it in GitHub Desktop.
Save vangberg/1728 to your computer and use it in GitHub Desktop.
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