diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/config_pingtel_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/config_pingtel_controller.rb b/app/controllers/config_pingtel_controller.rb index f161d7d..5bdc41d 100644 --- a/app/controllers/config_pingtel_controller.rb +++ b/app/controllers/config_pingtel_controller.rb @@ -57,10 +57,12 @@ class ConfigPingtelController < ApplicationController 'USER_DEFAULT_OUTBOUND_LINE' => 'PHONESET_LINE', } + sip_accounts = Array.new + if @phone.sip_accounts.any? sip_accounts = @phone.sip_accounts - else - sip_accounts = [@phone.fallback_sip_account] + elsif @phone.fallback_sip_account + sip_accounts << @phone.fallback_sip_account end if sip_accounts.any? |