diff options
Diffstat (limited to 'app/controllers/acd_agents_controller.rb')
-rw-r--r-- | app/controllers/acd_agents_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/acd_agents_controller.rb b/app/controllers/acd_agents_controller.rb index 1d119b3..4c08f68 100644 --- a/app/controllers/acd_agents_controller.rb +++ b/app/controllers/acd_agents_controller.rb @@ -28,6 +28,8 @@ class AcdAgentsController < ApplicationController @acd_agent.name = "#{t('acd_agents.name')} #{i}" @acd_agent.status = 'active' @acd_agent.calls_answered = 0 + + @available_sip_accounts = SipAccount.all - @automatic_call_distributor.acd_agents.where(:destination_type => 'SipAccount').map{|acd_agent| acd_agent.destination} end def create @@ -41,6 +43,8 @@ class AcdAgentsController < ApplicationController def edit @acd_agent = AcdAgent.find(params[:id]) + + @available_sip_accounts = SipAccount.all end def update |