diff --git a/res/ari/resource_endpoints.c b/res/ari/resource_endpoints.c index e0bbcb53367f38975bb33cf0c6bedaffa4266b5e..461328277a86c664c04c6237acbd040df861b70d 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();