From 95ccb1a3056124b6e26356f84fb231c3b2734f83 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Tue, 2 Jul 2024 15:23:39 -0300 Subject: [PATCH] Add MsgSent status --- handlers/kannel/kannel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/kannel/kannel.go b/handlers/kannel/kannel.go index 29b6c372..082e5df0 100644 --- a/handlers/kannel/kannel.go +++ b/handlers/kannel/kannel.go @@ -207,9 +207,9 @@ func (h *handler) Send(ctx context.Context, msg courier.Msg, clog *courier.Chann } else { _, _, _ = handlers.RequestHTTPInsecure(req, clog) } - + status = h.Backend().NewMsgStatusForID(msg.Channel(), msg.ID(), courier.MsgSent, clog) // if err == nil && resp.StatusCode/100 == 2 { - // status.SetStatus(courier.MsgWired) + status.SetStatus(courier.MsgSent) // } // kannel will respond with a 403 for non-routable numbers, fail permanently in these cases