|
@@ -33,6 +33,13 @@ if parentCtx == nil then
|
33
|
33
|
end
|
34
|
34
|
local token_util = module:require "token/util".new(parentCtx);
|
35
|
35
|
|
|
36
|
+local ASAPKeyServer
|
|
37
|
+ = module:get_option_string("asap_key_server");
|
|
38
|
+
|
|
39
|
+if ASAPKeyServer then
|
|
40
|
+ module:log("info", "ASAP Public Key URL %s", ASAPKeyServer);
|
|
41
|
+ token_util:set_asap_key_server(ASAPKeyServer);
|
|
42
|
+end
|
36
|
43
|
|
37
|
44
|
local ASAPKeyPath
|
38
|
45
|
= module:get_option_string("asap_key_path", '/etc/prosody/certs/asap.key');
|
|
@@ -57,6 +64,9 @@ local ASAPKey;
|
57
|
64
|
local queueServiceURL
|
58
|
65
|
= module:get_option_string("jibri_queue_url");
|
59
|
66
|
|
|
67
|
+local JibriRegion
|
|
68
|
+ = module:get_option_string("jibri_region");
|
|
69
|
+
|
60
|
70
|
if queueServiceURL == nil then
|
61
|
71
|
log("error", "No jibri_queue_url specified. No service to contact!");
|
62
|
72
|
return;
|
|
@@ -200,6 +210,7 @@ local function sendEvent(type,room_address,participant,requestId,replyIq,replyEr
|
200
|
210
|
["participant"] = participant,
|
201
|
211
|
["externalApiUrl"] = external_api_url.."/jibriqueue/update",
|
202
|
212
|
["requestId"] = requestId,
|
|
213
|
+ ["region"] = JibriRegion,
|
203
|
214
|
}
|
204
|
215
|
module:log("debug","Sending event %s",inspect(out_event));
|
205
|
216
|
|