Selector Service for Jitsi components
npm install
npm run build
First make sure you have redis running next to the selector (by default connection is to 127.0.0.1:6379).
- Macosx
brew install redis brew services start redis
- Linux (Debian/Ubuntu)
apt install redis
Then start the node process.
npm run start
curl --request POST \
--url http://localhost:8015/jitsi-component-selector/sessions/start \
--header 'Content-Type: application/json' \
--data '{
"callParams": {
"callUrlInfo": {
"baseUrl": "https://somedomain.com",
"callName": "somemeeting"
}
},
"componentParams": {
"type": "JIBRI",
"region": "someregion",
"environment": "someenv"
},
"metadata": {
"sinkType": "FILE"
},
"callLoginParams": {...}
}'
curl --request POST \
--url http://localhost:8015/jitsi-component-selector/sessions/start \
--header 'Content-Type: application/json' \
--data '{
"callParams": {
"callUrlInfo": {
"baseUrl": "https://somedomain.com",
"callName": "somemeeting"
}
},
"componentParams": {
"type": "SIP-JIBRI",
"region": "someregion",
"environment": "someenv"
},
"metadata": {
"sipClientParams": {
"autoAnswer": true,
"sipAddress": "sip:caller@callersipprovider.com",
"displayName": "Caller"
}
}
}'
curl --request POST \
--url http://localhost:8015/jitsi-component-selector/sessions/start \
--header 'Content-Type: application/json' \
--data '{
"callParams": {
"callUrlInfo": {
"baseUrl": "https://somedomain.com",
"callName": "somemeeting"
}
},
"componentParams": {
"type": "SIP-JIBRI",
"region": "someregion",
"environment": "someenv",
},
"metadata": {
"sipClientParams": {
"autoAnswer": false,
"sipAddress": "sip:callee@calleesipprovider.com",
"displayName": "Caller"
}
}
}'
curl --request POST \
--url http://localhost:8015/jitsi-component-selector/sessions/start \
--header 'Content-Type: application/json' \
--data '{
"callParams": {
"callUrlInfo": {
"baseUrl": "https://somedomain.com",
"callName": "somemeeting"
}
},
"sipClientParams": {
"sipAddress": ["sip:callee@calleesipprovider.com", "sip:secondcallee@calleesipprovider.com"],
"displayName": "Caller"
}
}'