call-users), and
devices (SIP / H.323 endpoints, GB28181 cameras, RTSP, and so on) are invited with
Invite devices to the channel (agent/invite), forwarded through SMeeting. Both are removed with the same API.
Comparison
Invite users: call-users
- Callees are added to the invitee list (allowlist) and receive a call;
is_additional=trueappends them instead of replacing the existing invitees - A callee must be signed in on at least one App / Web client (IM online) to receive the call
- The response returns
data.offline_user_ids: callees whose IM was offline at the time of the call and who therefore cannot receive it. It’s an empty array when everyone is online; if online status is temporarily unavailable, the callee is treated as online, so there are no false reports
Forced entry (force_join)
Withforce_join=true, our Apps (STM Link and others) handle the call like this:
- No incoming call screen; they show a short notice and enter directly. The nickname and camera / microphone defaults follow the App’s join settings
- Already in another meeting (including the waiting room or while joining): leave the current meeting first, then enter this one. Leaving only removes the user; it doesn’t end the meeting even for the host, and no confirmation dialog is shown
- Already in this meeting: ignored
- If entry fails (for example, the meeting has ended), the regular join-failure message is shown and there is no retry
false, the regular incoming call screen is shown (answer / decline, 60-second timeout).
Invite devices: agent/invite
Device invitations are forwarded by SMeeting to SRTC as is. For how to fill in the parameters and sign the request, see Device integration and IM; for field descriptions, see SRTC’s Invite devices to the channel.- Devices don’t confirm. The device gateway calls the SIP / H.323 endpoint: if the endpoint is set to auto-answer it enters directly, otherwise someone has to answer on the endpoint. Stream-pulling devices such as GB28181 and RTSP pull the stream and enter directly
- A device already in another meeting switches straight to this one; the call continues and the endpoint doesn’t hang up
- A successful response only means the invitation was handed to the device gateway, not that the device has entered. Watch the
user_entercallback for success and thedevice_invite_failedcallback for failure
Which restricted meetings can be entered
An invitation lets the invitee past some of the meeting’s entry restrictions, so they don’t need the password and don’t get stuck in the waiting room:- For users the bypass is valid for 30 minutes: the callee must enter within 30 minutes of the call, after which entry is handled as a regular join. If the same user is called again, the latest call applies
- A device dialing in by itself (the endpoint dials the meeting number) is not a platform invitation and goes through the regular entry checks
- Other rules, such as the meeting having ended or being blocked (removed with
join_disabled), still apply
Remove: kickout-user
Both users and devices are removed with Remove a member:target_id: the user ID for a user; for a device, its in-meeting user ID, which starts with_agent_. Get it from List in-meeting members or theuser_entercallbackjoin_disabled=true: block the target from entering this meeting again;remove_conferee=true: also remove the target from the invitee list- If the target is no longer in the meeting, the call simply succeeds
How to detect a failed invitation
Users
Devices
Subscribe to thedevice_invite_failed callback: it’s sent when the endpoint is busy, declines, doesn’t answer, can’t be reached, the stream can’t be pulled, or entry is refused,
with the failure reason reason and the original description msg.
Limits
- An App that isn’t online can’t be brought in: a user must be signed in on some client (IM online) to receive the call, and forced entry is no exception; offline users are listed in
offline_user_ids - When a mobile App is in the background: if the system allows it, the App is brought to the foreground and enters; otherwise it can only post a local notification first, and enters if the user taps the notification or returns to the App within 60 seconds; after 60 seconds the call is discarded
- If you build your own UI with the SDK: the “Forced entry” behavior above is how our Apps handle it; the SDK only passes the flag to you. Read
force_joinfrom the call event yourself and handle it the same way (no incoming call screen, leave the current meeting first, then enter); if you don’t, a forced call behaves like a regular call in your App. Each SDK exposes the field from the following version: