Add a system to detect incoming messages based on tokens/pattern match to then route to a specified callback.

Could re-use the formatted token system used in \Drupal\sms_user\AccountRegistration::preFormattedMessage, introduced by #2707723: Update register via SMS feature to use phone number provider.

Basic concepts were previously discussed in #2641888: Port SMS Actions to Drupal 8 #10-15.

Comments

dpi created an issue.

dpi’s picture

I'd like to add that it would be great to be able to further filter not just by message contents, but by the recipient (to) phone number (and maybe sender? while we're at it). In case the site has multiple incoming numbers.

almaudoh’s picture

I suggest this be done in a separate module entirely outside of SMS Framework.