Text messaging Receive only: database 4.3.6 adds sms_providers.sms_provider_send, and a provider set to Receive only in its window takes texts in as tickets, replies and codes and texts nothing out (no Text reply, ticket number, STOP or HELP answers, texts to clients or test texts), needs no SID or secret, cancels the texts waiting to go when switched, and is shown on Text Messaging, Text Messages, Notifications and Tickets settings and in the reply box of a ticket that came in by text, with the number to call; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-12-01 12:42:51 -05:00
parent 89645add5e
commit abcd1a6fcf
11 changed files with 174 additions and 27 deletions

View File

@@ -474,6 +474,8 @@ if (isset($_GET['ticket_id'])) {
$reply_to = $can_email_reply && $can_edit_ticket && $ticket_is_open && ticketReplyRecipientsReady() ? ticketReplyRecipients($ticket_id) : [];
// A text reply - to its contact's mobile, or the number texting on it (functions/sms.php)
$sms_recipient = smsTicketRecipient($ticket);
// Texted in while texting is Receive only - replies can't be texted, so the box says how to reach them
$sms_texted_in = $sms_recipient ? '' : smsTicketTextedInNumber($ticket);
// The Resolve confirmation says what resolving does - resolve_ticket emails the
// contact when client notifications are on, and the nightly job closes it later
@@ -893,6 +895,9 @@ if (isset($_GET['ticket_id'])) {
<?php if ($sms_recipient && $sms_recipient['opted_out']) { ?>
<div class="small text-body-secondary mt-2"><i class="fas fa-fw fa-ban me-1"></i><?= escapeHtml(smsNumberText($sms_recipient['number'])) ?> replied STOP to your texts - they can't be texted until they reply START.</div>
<?php } ?>
<?php if ($sms_texted_in !== '') { ?>
<div class="small text-body-secondary mt-2" data-sms-receive-only><i class="fas fa-fw fa-sms me-1"></i>This came in by text from <strong><?= escapeHtml(smsNumberText($sms_texted_in)) ?></strong>. Texting is Receive only, so replies aren't texted - <?= $can_email_reply ? 'email them, or call that number.' : 'call that number, or add an email address to the contact to email them.' ?></div>
<?php } ?>
<?php if ($reply_draft) { ?>
<div class="small text-body-secondary mt-2" data-reply-draft-note>