Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage phone number management and campaign messaging service changes #1557

Merged
merged 42 commits into from
May 20, 2020
Merged

Stage phone number management and campaign messaging service changes #1557

merged 42 commits into from
May 20, 2020

Conversation

matteosb
Copy link
Collaborator

Fixes

#1518 #1495 #1464

Description

This adds two experimental features to the 6.0 release:

Phone number inventory management

Adds functionality to buy Twilio phone numbers directly through the Admin interface. Organizations using their own Messaging Service, i.e. those that have TWILIO_MESSAGE_SERVICE set in organization features rather than through the global env var, can add the numbers directly to their Messaging Service and use them for texting. Additionally, phone numbers purchased through Spoke can be configured to use a custom voice response by setting the TWILIO_VOICE_URL setting. A typical use case would be to use TwiML Bins to re-route calls or to play a custom voicemails.

Configuration:

  • Set EXPERIMENTAL_PHONE_INVENTORY to enable the feature
  • Set TWILIO_VOICE_URL for a custom voice response

Per-campaign Twilio Messaging Services

This feature lays the foundation for scaling Spoke on Twilio by allowing campaigns to use their own Messaging Services. When enabled, the campaign edit screen will allow admins to either supply a Messaging Service for the campaign to use or to have Spoke create one for them. Note that numbers will have to be added to the Messaging Service manually. This feature will be integrated with the phone number inventory in a future release.

Configuration:

  • Set EXPERIMENTAL_TWILIO_PER_CAMPAIGN_MESSAGING_SERVICE to enable
  • Set TWILIO_BASE_CALLBACK_URL to configure webhooks for Messaging Services created by Spoke. Required if this feature is enabled.

Checklist:

hiemanshu and others added 30 commits April 24, 2020 21:51
Campaign is not available on local machine, and dev tools isn't
available on the production machine, so use messagingServiceSid
instead
Right now this writes fake data rather than talking to twilio
@matteosb matteosb requested review from schuyler1d and ibrand May 19, 2020 22:24
@schuyler1d schuyler1d added the S-ready for stage-main (qa) Status (ADMINS ONLY): PR label for those ready to be added for stage: Approved, tests, etc label May 20, 2020
@schuyler1d schuyler1d merged commit a5871c7 into StateVoicesNational:stage-main May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready for stage-main (qa) Status (ADMINS ONLY): PR label for those ready to be added for stage: Approved, tests, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants