This page will explain some basic concepts of SMS Messaging in CommCareHQ.
How CommCare HQ Sends Messages
CommCareHQ uses an SMS Gateway to send and receive messages. This is a system provided by other companies (or cell phone companies) that connects to the cell phone network to send and receive messages. CommCareHQ is connected to different gateways to support different countries.
More information on Dimagi's existing gateways can be found Gateway Options for SMS Projects.
Using an Android Gateway
If your country isn't supported by Dimagi's existing gateways you can use an Android-based phone to send and receive messages for your project. This will use the phone's SIM card and SMS balance. Dimagi has partnered with Telerivet to use their system to support Android gateways. The Android phone will connect to CommCareHQ using the internet to know when to send messages and to send incoming messages to CommCareHQ.
Android phones are typically used for low volume projects since cell phone companies usually limit the number of messages that can be sent or received through a regular phone number.
Some gateway providers provide a shortcode. This is a special short phone number that is used for sending a higher volume of messages.
When users send a message to your project's SMS gateway, they normally pay a per message cost - this is exactly like them sending a message to a friend. Since this cost can dissuade users from using your messaging system, some gateways are reverse billed. This means that users can send messages for free to the gateway, but you (the gateway) will pay for messages.
There are two types of costs associated with SMS - a monthly software plan cost for CommCareHQ and a per-message cost.
- SMS Pricing Plan: To use SMS, you must be on the Standard or above software plan. The Standard plan allow for outgoing messages (messages from CommCareHQ to a user). To receive messages from users (example, users respond to surveys or send in information), you must be in the Pro or above pricing plan.
- Per Messages Costs: If using a non-Android gateway, Dimagi will charge a per-message fee. This fee differs based depending on which gateway you're using. For Android gateways, you typically have to pay a fee to Telerivet for use of their application and service, and then pay for the cost of messages to and from the phone.
New In Country Gateways
If Dimagi does not have an existing gateway for your country and you'd like to start a larger-scale project, it is possible to connect a new in-country gateway. Obtaining and connecting a new gateway can take a significant amount of time and there are additional costs to connecting it to CommCareHQ. If this is required for your project, please contact us.