diff --git a/res/ari/resource_endpoints.c b/res/ari/resource_endpoints.c index e0bbcb5336..461328277a 100644 --- a/res/ari/resource_endpoints.c +++ b/res/ari/resource_endpoints.c @@ -211,6 +211,7 @@ static void send_message(const char *to, const char *from, const char *body, str if (ast_msg_send(msg, to, from)) { ast_ari_response_error(response, 404, "Not Found", "Endpoint not found"); + return; } response->message = ast_json_null();