File tree Expand file tree Collapse file tree
portabilling/api/administrator
webtrit_adapter_web/controllers/api/v1/user Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ defmodule Portabilling.Api.Administrator.Account do
88 % {
99 "get_not_closed_accounts" => 1 ,
1010 "get_only_real_accounts" => 1 ,
11+ "get_statuses" => 1 ,
1112 "limit" => 1000 ,
1213 "limit_alias_did_number_list" => 100
1314 } ,
Original file line number Diff line number Diff line change @@ -69,11 +69,18 @@ defmodule WebtritAdapterWeb.Api.V1.User.ContactController do
6969 { 200 , % { "account_list" => account_list } } ->
7070 ip_centrex_account_list =
7171 Enum . filter ( account_list , fn account ->
72- if account [ "dual_version_system" ] in [ nil , customer_dual_version_system ] do
73- ! WebtritAdapterConfig . portabilling_filter_contacts_without_extension ( ) or
74- account [ "extension_id" ] != nil
75- else
76- false
72+ account_status = Map . get ( account , "status" )
73+
74+ cond do
75+ account_status == "blocked" ->
76+ false
77+
78+ account [ "dual_version_system" ] in [ nil , customer_dual_version_system ] ->
79+ ! WebtritAdapterConfig . portabilling_filter_contacts_without_extension ( ) or
80+ account [ "extension_id" ] != nil
81+
82+ true ->
83+ false
7784 end
7885 end )
7986
You can’t perform that action at this time.
0 commit comments