diff --git a/sgx_jmp.rb b/sgx_jmp.rb index b63d462b75cdb99d4028294e87254cf9faef7cec..90af99b78f022ff1d218a58c024afddc81b9beca 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -815,7 +815,11 @@ Command.new( "☎️ Create or Reset SIP Account", customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new) ) { - Command.customer.then do |customer| + Command.customer.then { |customer| + TrustLevelRepo.new.find(customer).then { |tl| [customer, tl] } + }.then do |(customer, tl)| + raise "Please contact JMP support" unless tl.support_call?(0, 1, :outbound) + sip_account = customer.reset_sip_account Command.reply { |reply| reply.allowed_actions = [:next]