Skip to content

Instantly share code, notes, and snippets.

@ColinDKelley
Last active June 12, 2024 21:44
Show Gist options
  • Save ColinDKelley/77ca1211624f6af3db575419eecbfa68 to your computer and use it in GitHub Desktop.
Save ColinDKelley/77ca1211624f6af3db575419eecbfa68 to your computer and use it in GitHub Desktop.
destination_address =
if call_flow.sip_integration_if_enabled
if advertiser.feature_enabled?(:sip_integration_destination_in_display_format) ||
!(destination_phone_number = PhoneNumberWithExtension.new(destination)).valid?
destination.presence
else
destination_phone_number
end
else
destination_phone_number(destination)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment