Can't able to store the delivery reports using the SmsDeliveryReport()
I've followed the documentation -
Setting reports on result →
and tested the code. But it's not storing the results on "sms_report" table.
Here's the code I've tested.
use Drupal\sms\Message\SmsDeliveryReport;
use Drupal\sms\Message\SmsMessageReportStatus;
use Drupal\sms\Message\SmsMessageResult;
$recipientNumbers = '+919999999999';
$report = new SmsDeliveryReport();
$report->setRecipient($recipientNumbers);
$report->setMessageId('2010-04-01');
$report->setStatus('queued');
$report->setStatusMessage('Report test');
$result = new SmsMessageResult();
$result->addReport($report);
Active
1.0
SMS Actions
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.