diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-18 20:30:58 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-18 20:30:58 +0100 |
commit | c1dfb19a89a2f191bece906051477e12f3713512 (patch) | |
tree | 761aa11bd69e5ca1a7ef8edfd8d81478e6bafdfe /app/models/automatic_call_distributor.rb | |
parent | 48ff1a850df34ecc40e71882e2c7872211c353e4 (diff) | |
parent | 022f8458e18c7091e1e1dd25bf53f78867354757 (diff) |
Merge branch 'develop'
Diffstat (limited to 'app/models/automatic_call_distributor.rb')
-rw-r--r-- | app/models/automatic_call_distributor.rb | 10 |
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 |