Setting Delivery Reports on result not working

Created on 28 December 2020, almost 4 years ago
Updated 16 October 2024, 2 months ago

Problem/Motivation

Can't able to store the delivery reports using the SmsDeliveryReport()

Steps to reproduce

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);

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

1.0

Component

SMS Actions

Created by

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