[sr-dev] [kamailio/kamailio] mqtt: module to support mqtt pubsub messaging (#2187)

Thomas Weber notifications at github.com
Thu Jan 2 15:27:26 CET 2020


towe75 commented on this pull request.



> +
+   If defined, the module calls event_route[mqtt:message] when a message
+   is received from the broker.
+
+   All incoming messages are handled in a single mqtt dispatcher process.
+...
+event_route[mqtt:message] {
+        xlog("mqtt message received: $mqtt(topic) -> $mqtt(msg) !\n");
+}
+...
+
+6. Exported pseudo-variables
+
+     * $mqtt(topic) - Received topic (only in mqtt:message)
+     * $mqtt(msg) - Received message (only in mqtt:message)
+

@oej  it's not exposed ATM but it's simple to add it. I will enhance the module accordingly.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2187#discussion_r362490436
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200102/8aaaad3c/attachment.html>


More information about the sr-dev mailing list