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

Add Extra Parameters Required by Africastalking Outgoing Message API When Using a Premium SMS Shortcode #281

Open
morrismukiri opened this issue Mar 2, 2020 · 1 comment

Comments

@morrismukiri
Copy link
Contributor

morrismukiri commented Mar 2, 2020

According to Africastalking API documentation, we need to add the following parameters when sending requests to the SMS API:

  • a bulkSMSMode parameter. This is used to determine who gets billed for the SMS. The default value is 1 which means that the Africastalking account sending the message gets billed for the outgoing message. This works for all Africastalking messages like bulk messages but fails for premium rate SMS, which require the value to be set to 0.

  • a keyword parameter to be used for a premium service,

  • a retryDurationInHours which specifies the number of hours a subscription message should be retried in case it’s not delivered to the subscriber.

To solve this, we need to add the missing parameters here

We could do this by first adding a configuration on RapidPro's Channel configuration page the same way that we have "is Shared" checkbox, add "is a Premium Shortcode" checkbox and then add the keyword and retry duration if the checkbox value is true.

@nicpottier
Copy link
Collaborator

Yes, that all seems right, want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants