API SetActiveVoiceChannelBySessionID

Set the active voice channel.
 success = SetActiveVoiceChannelBySessionID(id)
==Arguments==
:;id: - Channel ID.
==Returns==
:;success: - Whether the channel changed to to the given ID.
==Details==
* Triggers if the active channel switches.
* This function is not applicable to "World" channels such as Trade and LookingForGroup.
* IDs are not constant; they are assigned as the client joins each channel so they will change for users who have joined a variable number of channels. Refer to and .
==Example==
Simple usage:
local success = SetActiveVoiceChannelBySessionID(2)
print(success)		-- true
Finding a channel's ID and then joining it:
function SetChannelIDByName(name)
	for id=1, GetNumVoiceSessions() do
		if name == GetVoiceSessionInfo(id) then
			return SetActiveVoiceChannelBySessionID(id)
		end
	end
end