Skip to content

Commit

Permalink
Add MsgSent status
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Jul 2, 2024
1 parent d398f7f commit 95ccb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/kannel/kannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95ccb1a

Please sign in to comment.