oncall-engine/engine/apps
Michael Derynck ae7561a84f
Map country code to different Twilio resources (#1976)
Many countries are introducing different requirements for SMS senders to
register and/or use alpha numeric ids, short codes or regional numbers
or face being blocked. The changes in this PR will give us more
flexibility by allowing us to map to different resources in Twilio based
on the phone number we are trying to reach. For this first
implementation the selection is made based on country code of the
recipient. Verification and phone calls were given the same treatment
although the immediate need is for SMS. Senders with no country code set
can be used as catch-all defaults. This also falls back to the
configured live settings/environment variables if not configured.

Possible future additions:
- Move through list of trying multiple senders before failing
notification
- Easily expanded to allow per-organization or per-user resources to let
users and tenants configure their own Twilio
- Add UI + replace live settings so users can configure their own
settings
- More selection criteria if needed

TODO:

- [x] Add+Fix Tests
- [x] Verify changes are compatible with #1713
2023-05-25 21:56:44 +00:00
..
alerts OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
api Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
api_for_grafana_incident Include alert details in Grafana Incident alert-group endpoint (#1280) 2023-02-03 13:43:21 +00:00
auth_token Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
base Map country code to different Twilio resources (#1976) 2023-05-25 21:56:44 +00:00
email Fix inbound email bug when attaching files (#1970) 2023-05-18 17:35:36 +00:00
grafana_plugin Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Add docs & logo for AppDynamics integration (#1916) 2023-05-11 16:41:51 +00:00
metrics_exporter OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
mobile_app Remove spammy log message for device not setup 2 (#2028) 2023-05-25 17:30:19 +00:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
phone_notifications Fix status callbacks (#2014) 2023-05-25 13:53:58 +08:00
public_api Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
schedules Handle date values coming from ical in final schedule caching (#2025) 2023-05-25 18:17:09 +00:00
slack update logging for slack interactive_api_endpoint (#2022) 2023-05-25 15:17:42 -04:00
social_auth Fix insight_logs exceptions (#1757) 2023-04-17 07:16:18 +00:00
telegram Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00
twilioapp Map country code to different Twilio resources (#1976) 2023-05-25 21:56:44 +00:00
user_management OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
webhooks Webhook response check content length instead of header for length limit (#1900) 2023-05-09 13:55:05 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00