FIX: use correct URL paths for jibri queue service

This commit is contained in:
Aaron van Meerten 2020-07-22 16:24:08 -04:00
parent 7858f12df2
commit d70f9d6fd6
1 changed files with 5 additions and 1 deletions

View File

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