Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public async Task<ActionResult> PhoneRecordingStatus(ConversationalVoiceRequest
_logger.LogError($"Unknown record status: {request.CallStatus}, {request.CallSid}");
}

return Ok();
// 204 and no body, as Twilio wants of a callback (an empty 200 with no content type reads to it as a failure)
return NoContent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ await HookEmitter.Emit<IRealtimeHook>(_services, async x => await x.OnTranscribe
}
}

return Ok();
// 204 and no body, as Twilio wants of a callback (an empty 200 with no content type reads to it as a failure)
return NoContent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ public async Task<ActionResult> PhoneCallStatus(ConversationalVoiceRequest reque
break;
}

return Ok();
// Twilio takes an empty 200 with no content type for a failed callback (warning 15003, "Got HTTP 502", on every
// call); it wants 204 and no body, or TwiML
return NoContent();
}

protected Dictionary<string, string> ParseStates(List<string> states)
Expand Down
Loading