Skip to content

Commit

Permalink
include id in callback URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Sep 12, 2017
1 parent 860ae6b commit 9e77916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/twilio/twilio.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (h *handler) StatusMessage(channel courier.Channel, w http.ResponseWriter,
// SendMsg sends the passed in message, returning any error
func (h *handler) SendMsg(msg courier.Msg) (courier.MsgStatus, error) {
// build our callback URL
callbackURL := fmt.Sprintf("%s/c/t/%s/status", h.Server().Config().BaseURL, msg.Channel().UUID())
callbackURL := fmt.Sprintf("%s/c/t/%s/status?id=%d", h.Server().Config().BaseURL, msg.Channel().UUID(), msg.ID().Int64)

accountSID := msg.Channel().StringConfigForKey(configAccountSID, "")
if accountSID == "" {
Expand Down

0 comments on commit 9e77916

Please sign in to comment.