Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
dpiI'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.
Comment #3
almaudoh CreditAttribution: almaudoh commentedI suggest this be done in a separate module entirely outside of SMS Framework.