refactor(voice): tighten WhatsApp call pipeline and broadcast hyphenated terminate status
This commit is contained in:
@@ -40,9 +40,7 @@ class Channel::Whatsapp < ApplicationRecord
|
||||
'Whatsapp'
|
||||
end
|
||||
|
||||
# Mirrors Channel::TwilioSms#voice_enabled? so the call subsystem can
|
||||
# duck-type across providers. Backed by the JSON config rather than a column
|
||||
# because all other WhatsApp Cloud capability flags live in `provider_config`.
|
||||
# Mirrors Channel::TwilioSms#voice_enabled? so the call subsystem can duck-type across providers.
|
||||
def voice_enabled?
|
||||
provider_config['calling_enabled'].present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user