Documentation

​
​

Development

User Acquisition

Monetization

Industry

Vivox Core SDK

Vivox Core SDK

Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
    • Integration guide
    • Quick start guide
      • Initializing Vivox
      • Logging in
      • Assign a unique username
      • Generate a login access token
      • Submit a login request
      • Joining and leaving channels
      • Generate and submit a join token
      • Process join responses and events
      • Handle join errors
  • Release notes
  • Developer Guide
  • Reference
  • Privacy overview
  1. Vivox Core SDK documentation

Generate and submit a join token

How to form and submit a join token on a game server.
Read time 2 minutes
Last updated 8 months ago

To generate a join token, follow the same process that was introduced in Generate a login token.
The part you will change is the payload portion of the token.

Join token - Payload

You can re-use the same serializable class you crafted earlier for use in login tokens to craft the payload for a join token. The two key differences are a different Vivox Action: Join, and the use of the To (t) field.

Explanation

Example claims object

N/Apublic class Claims {
N/Apublic string iss {get;set;}
N/Apublic int exp {get;set;}
Vivox Actionpublic string vxa {get;set;}
N/Apublic int vxi {get;set;}
N/Apublic string f {get;set;}
“To” channel to joinpublic string t {get;set;}
N/Apublic string sub {get;set;}
}

Example join token

Claims loginClaim = new Claims{iss=testgames1234-aa12,vxi = 93000,vxa:join,exp=1600349400,f=sip:.testgames1234-aa12.030104_16.@tla.vivox.com,t=sip:confctl-g-testgames1234-aa12.1M2n31IoU45b.t1@tla.vivox.com};

Submit a join request

Vivox has structures to store a common set of parameters to many different request types. Utilize this in your next step, which is to craft your request, and issue it to the Vivox SDK to be sent to Vivox services.
Create your join request in your game client and store any necessary parameters and the
access_token
received from your game server.
vx_req_sessiongroup_add_session *req;vx_req_sessiongroup_add_session_create(&req);req->sessiongroup_handle = vx_strdup("sg1");req->session_handle = vx_strdup("1M2n31IoU45b.t1");req->uri = vx_strdup("sip:confctl-g-testgames1234-aa12.1M2n31IoU45b.t1@tla.vivox.com");req->account_handle = vx_strdup("sip:.testgames1234-aa12.playerName@mt1s.vivox.com");req->connect_audio = 1;req->connect_text = 1;req->access_token = vx_strdup(_the_access_token_generated_by_the_game_server);
Issue the request to the Vivox SDK from the game client.
vx_issue_request3(&req ->base, &request_count);

Reminders

  • Do not send identifiable playerName(s) to Vivox.
  • session_handle
    must be unique across your entire game.
Next step, process join responses and events.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Join token - Payload

      • Example join token

    • Submit a join request

      • Reminders


Report a problem with this page