summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-18 19:07:25 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-18 19:07:25 +0100
commitfef1d002d562ea3df56d0bd1e9dbad4032fd6404 (patch)
tree5a52e7ccd9d05a47694b7de18ca4a18db5c32d43 /app/models
parenta0609b7c3260e06d12243e5fc9a8b6f695674199 (diff)
Set defaults for the voiceprompts.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/automatic_call_distributor.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/automatic_call_distributor.rb b/app/models/automatic_call_distributor.rb
index 678e0eb..cd887d5 100644
--- a/app/models/automatic_call_distributor.rb
+++ b/app/models/automatic_call_distributor.rb
@@ -15,7 +15,17 @@ class AutomaticCallDistributor < ActiveRecord::Base
JOIN_ON = ['agents_available', 'agents_active', 'always']
LEAVE_ON = ['no_agents_available_timeout', 'no_agents_active_timeout', 'no_agents_available', 'no_agents_active', 'timeout', 'never']
+ after_initialize :set_defaults
+
def to_s
self.name
end
+
+ private
+ def set_defaults
+ self.announce_call_agents ||= 'ivr/ivr-stay_on_line_call_answered_momentarily.wav'
+ self.greeting ||= 'ivr/ivr-thank_you_for_calling.wav'
+ self.goodbye ||= 'ivr/ivr-thank_you_for_calling.wav'
+ self.music ||= 'local_stream://mohl'
+ end
end