refactor(voice): tighten WhatsApp call pipeline and broadcast hyphenated terminate status

This commit is contained in:
Tanmay Deep Sharma
2026-04-30 16:04:39 +07:00
parent 546193de2a
commit ba0fcbfc7f
9 changed files with 46 additions and 61 deletions
+1 -3
View File
@@ -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