How to call to person (number) by Jitsi Meet API (JavaScript in web browser)



I was able to install and configure Jitsi. Everything works well even with invite people (phone number). My question is: Is there any way to invite these people, or rather add to the conference via the javascript API? Of course, I mean adding a person by inviting her phone number.

In the documentation I found two possibilities:
In options:

var domain = "";
var options = {
    roomName: "JitsiMeetAPIExample",
    invitees: ?!?
var api = new JitsiMeetExternalAPI(domain, options);

and as a function:

api.invite([{...}, {...}, {...}]).then(function() {
    // success
}).catch(function() {
    // failure

Is there any person who can explain to me how these functions work, because the documentation is incomplete.



This is part of the call-flow integration. You can invite people passing object with information about those contacts.
In order to use it you need to configure in config.js stuff like, inviteServiceUrl, peopleSearchUrl, inviteServiceCallFlowsUrl … You can find a basic description here: Jitsi Meet and Jigasi - outbound number format
The endpoints for those needs to be implemented. There is an invite dialog inside jitsi-meet which uses those endpoint urls, for querying people and inviting them. This is the API method to execute same flow as the invite dialog.
There are also hooks for implementing the call-flow in the prosody

The other use of this invite method is, if you have a configured jigasi you can use it to invite phone numbers to the conference, the same way if you open the invite dialog inside jitsi-meet and enter a number there.