How to invite new participants via meet external api?

I’ve been reading and trying out different api calls in meet external api based on this:

However, I am confused with this You can invite new participants to the call with the following API function

api.invite([ {...}, {...}, {...} ]).then(() => {
    // success
}).catch(() => {
    // failure
});

NOTE: The format of the invitees in the array depends on the invite service used for the deployment.

My question is what is invite service? Are there any example or documentation about the parameters I need to pass?

Thanks a lot.

The invite service is configured using config.js and inviteServiceUrl. This is a http endpoint you will use to invite participants.
A simple example will illustrate it easier: You have a desktop app embedding iframeAPI, doing authentication and some other way of communicating between clients … if you pass in the invite [ {id: 123}, {id:234}] this is the array of json objects that will be send to your configured invite service, the invite service will use this other way of notifying your clients and will show them some UI that they are invited to a meeting sending them URL to join.

I did changed at every where one by one but did worked for me any suggestion i am making a mistake anywhere ?

/usr/share/jitsi-meet/interface_config.js
/etc/jitsi/meet/domain-config.js
and local js while iframe creation like below but not working

var domain = "domain";
            var options = {
                roomName: "hirentestintoom",
                width: "100%",
                height: "100%",
                parentNode: undefined,
                inviteServiceUrl:"https://new-domain/testroom",
                configOverwrite: {
                 inviteServiceUrl:"https://new-domain/testroom"			
                },
                interfaceConfigOverwrite: {
                   // filmStripOnly: true
                   inviteServiceUrl:"https://new-domain/testroom"			
                }
            }
            var api = new JitsiMeetExternalAPI(domain, options);

Did i forgot to make changes anywhere else ?

Thanks,
Hiren

The invite service url cannot be passed from external api, need to be configured on the server.

I did it can you give a sample file if you have where to edit ?

Here

Hi
Where to find /etc/jitsi/meet/domain-config.js when using Docker? There is no domain-config file in the config folder, and also inside containers.

Using this i can change the invite link correct ?

Let me attach my sample file here can you please suggest me am i making any mistakes ?

domain-config.txt (18.7 KB)

I am having two domain at one we are running jitsi and on another we are checking the business logic and validating the user so i need to validate before join a meeting if i use iframe and somebody share the link it can directly connect since we have no control on jitsi source code.

Can you suggest a better way.

Do you have some kind of authentication and you are embedding iframe API in some other App where users are already authenticated?

I am embedding i frame where i am already authenticated

sample.txt (1.4 KB) .

Please check attached file.

So you should config your deployment to allow only jwt. Then your service should produce a valid jwt for your authenticated participant, it can even fill in name and avatar and pass it to the iframe and this way only valid participants will be able to join …
Or there are and other options around the jwt so you can play with that.

Hi @damencho
Could you please answer my question?

1 Like

Hi,
i configured the inviteServiceUrl to http://localhost/jitsi/invite and after i created a room with jwt authentication i send the invites like this:

> api.invite([{id: 123}, {id:234} ]).then((info) => {
> 
>  }).catch((info) => {
>  });

It is supossed to send a POST request to service URL ?

Thank you