Mercurial > prosody-modules
diff mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua @ 4465:2a7a76712e71
mod_cloud_notify_encrypted: Fix expected namespace of JMI description element
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 16:10:13 +0000 |
parents | 091d06c7d724 |
children | 38bd4d557413 |
line wrap: on
line diff
--- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Tue Feb 23 15:23:29 2021 +0000 +++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Tue Feb 23 16:10:13 2021 +0000 @@ -8,6 +8,7 @@ local st = require "util.stanza"; local xmlns_jmi = "urn:xmpp:jingle-message:0"; +local xmlns_jingle_apps_rtp = "urn:xmpp:jingle:apps:rtp:1"; local xmlns_push = "urn:xmpp:push:0"; local xmlns_push_encrypt = "tigase:push:encrypt:0"; local xmlns_push_encrypt_aes_128_gcm = "tigase:push:encrypt:aes-128-gcm"; @@ -79,7 +80,7 @@ push_payload.type = "call"; push_payload.sid = jmi_propose.attr.id; local media_types = set.new(); - for description in jmi_propose:childtags("description") do + for description in jmi_propose:childtags("description", xmlns_jingle_apps_rtp) do local media_type = description.attr.media; if media_type then media_types:add(media_type);