Browse Source

FIX: use correct URL paths for jibri queue service

master
Aaron van Meerten 5 years ago
parent
commit
d70f9d6fd6
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      resources/prosody-plugins/mod_jibri_queue_component.lua

+ 5
- 1
resources/prosody-plugins/mod_jibri_queue_component.lua View File

@@ -207,7 +207,11 @@ local function sendEvent(type,room_address,participant,requestId,replyIq,replyEr
207 207
     headers['Authorization'] = generateToken()
208 208
 
209 209
     module:log("debug","Sending headers %s",inspect(headers));
210
-    local request = http.request(queueServiceURL, {
210
+    local requestURL = queueServiceURL.."/job/recording"
211
+    if type=="LeaveQueue" then
212
+        requestURL = requestURL .."/cancel"
213
+    end
214
+    local request = http.request(requestURL, {
211 215
         headers = headers,
212 216
         method = "POST",
213 217
         body = json.encode(out_event)

Loading…
Cancel
Save