Comparison

mod_push2/mod_push2.lua @ 6312:2488254c1bc2

mod_push2: Also push call retractions So the device can know to stop ringing
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Tue, 24 Jun 2025 12:13:51 -0500
parent 6311:27bb0bc3f4b5
comparison
equal deleted inserted replaced
6311:27bb0bc3f4b5 6312:2488254c1bc2
149 -- urgent stanzas should be delivered without delay 149 -- urgent stanzas should be delivered without delay
150 local function is_voip(stanza) 150 local function is_voip(stanza)
151 if stanza.name == "message" then 151 if stanza.name == "message" then
152 if stanza:get_child("propose", "urn:xmpp:jingle-message:0") then 152 if stanza:get_child("propose", "urn:xmpp:jingle-message:0") then
153 return true, "jingle call" 153 return true, "jingle call"
154 end
155
156 if stanza:get_child("retract", "urn:xmpp:jingle-message:0") then
157 return true, "jingle call retract"
154 end 158 end
155 end 159 end
156 end 160 end
157 161
158 local function has_body(stanza) 162 local function has_body(stanza)