It seems that webhook events don’t arrive after REST API calls (session creation, session destruction etc).
The configuration is as follows:
GET https://…/openvidu/api/config
{
“VERSION”: “2.16.0”,
…
“OPENVIDU_CDR”: false,
“OPENVIDU_STREAMS_VIDEO_MAX_RECV_BANDWIDTH”: 1000,
“OPENVIDU_STREAMS_VIDEO_MIN_RECV_BANDWIDTH”: 300,
“OPENVIDU_STREAMS_VIDEO_MAX_SEND_BANDWIDTH”: 1000,
“OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH”: 300,
“OPENVIDU_SESSIONS_GARBAGE_INTERVAL”: 900,
“OPENVIDU_SESSIONS_GARBAGE_THRESHOLD”: 3600,
“OPENVIDU_RECORDING”: false,
“OPENVIDU_WEBHOOK”: true,
“OPENVIDU_WEBHOOK_ENDPOINT”: “https://…/openvidu/webhook”,
“OPENVIDU_WEBHOOK_HEADERS”: [],
“OPENVIDU_WEBHOOK_EVENTS”: [
“sessionCreated”,
“sessionDestroyed”,
“participantJoined”,
“participantLeft”,
“webrtcConnectionCreated”,
“webrtcConnectionDestroyed”,
“recordingStatusChanged”,
“filterEventDispatched”,
“mediaNodeStatusChanged”
]
}
Logs:
openvidu-server_1 | [INFO] 2021-04-08 06:44:35,984 [http-nio-0.0.0.0-5443-exec-10] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions {}
openvidu-server_1 | [INFO] 2021-04-08 06:44:35,986 [http-nio-0.0.0.0-5443-exec-10] io.openvidu.server.rest.SessionRestController - New session ses_JBg99BTzl4 initialized [ses_JBg99BTzl4]
openvidu-server_1 | [INFO] 2021-04-08 06:45:27,654 [http-nio-0.0.0.0-5443-exec-4] io.openvidu.server.rest.SessionRestController - REST API: DELETE /openvidu/api/sessions/ses_JBg99BTzl4
openvidu-server_1 | [INFO] 2021-04-08 06:45:27,655 [http-nio-0.0.0.0-5443-exec-4] io.openvidu.server.core.SessionManager - Session 'ses_JBg99BTzl4' removed and closed
However, I see that the events are triggered from the RpcHandler:
openvidu-server_1 | [INFO] 2021-04-07 20:00:36,984 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcHandler - Evicted participant with privateId l9vc6ktouteea16adec4m2mh34
openvidu-server_1 | [INFO] 2021-04-07 20:00:37,039 [pool-1-thread-1] io.openvidu.server.webhook.HttpWebhookSender - Event webrtcConnectionDestroyed successfully posted to uri https://…/openvidu/webhook
openvidu-server_1 | [INFO] 2021-04-07 20:00:37,118 [pool-1-thread-1] io.openvidu.server.webhook.HttpWebhookSender - Event participantLeft successfully posted to uri https://…/openvidu/webhook
openvidu-server_1 | [INFO] 2021-04-07 20:00:37,157 [pool-1-thread-1] io.openvidu.server.webhook.HttpWebhookSender - Event sessionDestroyed successfully posted to uri https://…/openvidu/webhook
Is that the intended behavior (there is nothing about that in the docs)?