changeset 6307:c194bec4b56d

mod_voipms: Fix bug from not returning in message/bare hook Since SMS/MMS are sent/received on JIDs that are not real accounts, we need to `return true` from the 'message/bare' hook, otherwise routing will occur and result in failed account lookups.
author Chaz Kettleson <chaz@pyr3x.com>
date Fri, 01 Aug 2025 18:36:47 -0400
parents 093c47ee2041
children 6015477b6dec
files mod_voipms/mod_voipms.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_voipms/mod_voipms.lua	Thu Jul 31 15:43:41 2025 +0100
+++ b/mod_voipms/mod_voipms.lua	Fri Aug 01 18:36:47 2025 -0400
@@ -186,4 +186,6 @@
             module:log("error", "HTTP error sending %s: code %s", method, tostring(code))
         end
     end)
+
+    return true
 end)