When an inbound text message (what the industry calls "mobile-originated" or "MO" for short) arrives in the TextPower system we check to see if the number is opted into any keywords.
- If yes (the number is opted in):
- If the number's routing configuration is set up as a "UserReply" we respond with the message that has been entered into our system.
- If the message is the keyword it responds with the UserReply.
- If the message is STOP, QUIT, END, CANCEL or UNSUBSCRIBE we then remove the number from the opt-in list and mark it as opted-out.
- If the message is not the keyword, nor an opt-out message, nor a HELP message then the UserReply is sent in return.
- If the number's routing configuration is set up as a POST we send the information to another server as determined by the configuration provided to us during the account setup. (Other actions can occur from here.)
- If the MO is "HELP" then a reply message containing the keyword-specific HELP content is sent.
- If the number's routing configuration is set up as a "UserReply" we respond with the message that has been entered into our system.
- If no (the number is not opted in):
- If the message contains the keyword the number is opted into the keyword database and the UserReply established in the configuration for that keyword is sent as a reply.
- If the code to which the message was sent is a shared short code then the universal error message for that shared short code is sent.
- If the code to which the message was sent is a dedicated code (either a short code or a toll-free number) then the error message specific to that dedicated code is sent to the user telling them that they are not opted into any keywords on that dedicated code.
- If the MO is "HELP" then we respond with the help message entered for that shared or dedicated short code or dedicated text-enabled toll-free number.
- If the code to which the message was sent is a shared short code then the universal message for the short code is sent.
- If the code to which the message was sent is a dedicated code (either a short code or a toll-free number) then the message specific to that dedicated code is sent.
Comments
0 comments
Please sign in to leave a comment.