medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
441 stars 212 forks source link

Add instance routing for incoming messages #6585

Open garethbowen opened 4 years ago

garethbowen commented 4 years ago

Is your feature request related to a problem? Please describe.

  1. As a trainer I want to be able to have messages from my trainees be routed to a training instance so they can use the same shortcode and aggregator without adding dummy data to the production instance.
  2. As an app builder I want to be able to route messages to one of multiple production instances so I can have different configurations for different districts and still use the same shortcode and aggregator.

Describe the solution you'd like A new product/service to receive WT messages and route them to the correct instance. Which route to choose could be based on which instance has the senders phone number configured (user story 2), or which user has a specific flag set (user story 1), or based on a simple phone number lookup table (user story 1), or some combination thereof.

Describe alternatives you've considered

MaxDiz commented 4 years ago

related #6554