Scenario
Vivox Access Token Developer Guide mentions SIP URIs are needed for the sub, f, and t claims fields.
Resolution
Unity
16.0.0 and Newer Versions
Please refer to the Interface Implementation-based Token Generation section of our online Vivox Unity SDK documentation. This section will provide you with information about how to register your IVivoxTokenProvider
implementation, which will include your version of GetTokenAsync()
. This method will be called by the Vivox Unity SDK when a Vivox Access Token is required with all the appropriate values, like the User URI a Channel URI. You will not need to construct these values as they are provided to you.
Pre-16.0.0 Versions
Please refer to the Override Development Key Generation section of our online Vivox Unity SDK documentation. This section will provide you with information about how to override the GetToken()
method within VxTokenGen.cs
. This method will be called by the Vivox Unity SDK when a Vivox Access Token is required with all the appropriate values, like the User URI a Channel URI. You will not need to construct these values as they are provided to you.
Unreal
The ToString()
function is the best practices method of getting the correct SIP URL from the AccountID
and ChannelId
objects. These will include any positional parameters and will help prevent incorrect construction of the SIP URIs by manually concatenating components.
User URI
AccountId accountId;
accountId.ToString();
Channel URI
ChannelId channelId;
channelId.ToString();
Core
For the Vivox Core SDK, no special calls are needed to construct the SIP URIs for Vivox Access Token generation as they are already needed to make the login and channel join requests.