Skip to content

Commit

Permalink
Always request Mp3 files from Twilio IVR recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Oct 23, 2020
1 parent 9249315 commit 61a0657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ivr/twiml/twiml.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *client) InputForRequest(r *http.Request) (string, utils.Attachment, err
if url == "" {
return "", ivr.NilAttachment, nil
}
return "", utils.Attachment("audio:" + r.Form.Get("RecordingUrl")), nil
return "", utils.Attachment("audio/mp3:" + url + ".mp3"), nil
default:
return "", ivr.NilAttachment, errors.Errorf("unknown wait_type: %s", waitType)
}
Expand Down

0 comments on commit 61a0657

Please sign in to comment.