diff --git a/include/mtx/events/voip.hpp b/include/mtx/events/voip.hpp
index 8e1a2a6e7d81e00e15a57cda9e96fe473944ba1e..ad76984b245c0462a8a161d476fdd571caa431b9 100644
--- a/include/mtx/events/voip.hpp
+++ b/include/mtx/events/voip.hpp
@@ -12,7 +12,9 @@
 #include <string>
 #include <vector>
 
-namespace mtx::events::msg {
+namespace mtx {
+namespace events {
+namespace msg {
 
 //! Content for the `m.call.invite` event.
 struct CallInvite
@@ -102,3 +104,5 @@ void
 to_json(nlohmann::json &obj, const CallHangUp &content);
 
 } // namespace mtx::events::msg
+}
+}
diff --git a/include/mtx/responses/turn_server.hpp b/include/mtx/responses/turn_server.hpp
index 5c4fa3d5e37b0782a9611f9a2234346823867f6b..a983a96c05d07ffce41e29057d389b22564bb9e4 100644
--- a/include/mtx/responses/turn_server.hpp
+++ b/include/mtx/responses/turn_server.hpp
@@ -12,7 +12,8 @@
 #include <nlohmann/json.hpp>
 #endif
 
-namespace mtx::responses {
+namespace mtx {
+namespace responses {
 
 //! Response of the `GET /_matrix/client/r0/voip/turnServer` endpoint.
 //
@@ -35,3 +36,4 @@ struct TurnServer
 void
 from_json(const nlohmann::json &obj, TurnServer &turnServer);
 }
+}