|
@@ -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)
|