Gateways Not Added to SMS Message

Created on 8 October 2020, over 4 years ago
Updated 1 March 2025, about 1 month ago

Using drupal/smsframework module, we are having issues getting gateways to be attached to the messages during creation. There is a method addGateway in the event, but it seems to never be set during the process of creating and queueing a new SMS message. (the only example I see of addGateway is in the example in the sms.api.php file)

Later in the process, it looks for added gateways, finds none in the event object, and falls back to the gateway specified as the fallback. If no fallback is specified, no gateway is set, and the error "Drupal\Core\Entity\EntityStorageException: Unable to determine gateway for recipient" is shown in the log.

We are currently using the sms_twilio module to provide the SMS service.

Not sure the best way to address this. Does each plugin module need to set an Event listener and add their gateway and priority to the event?

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Core Framework

Created by

πŸ‡ΊπŸ‡ΈUnited States jcmiller09

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024