[Release]VOIP custom Settings

OverZ source error in
plr3msg and identity

ts3client_startConnection(1, identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
 
OverZ source error in
plr3msg and identity

ts3client_startConnection(1, identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);

OverZ no is identity try use m_identity
From plr3msg try change for VIRTUALSERVER_WELCOMEMESSAGE

Not tested!!!
 
Last edited:
OverZ no is identity try use m_identity
From plr3msg try change for VIRTUALSERVER_WELCOMEMESSAGE

Not teste!!!

ohh thanks :O Working!
Now error is just

Code:
Error    1    error C2664: 'ts3client_startConnection' : cannot convert parameter 2 from 'std::string' to 'const char *'    c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp    524    Eclipse Studio

Code:
ts3client_startConnection(1, m_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
 
i try, now error is just
Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 2 from 'std::string' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 524 Eclipse Studio

SS :
jonnybravo - [Release]VOIP custom Settings - RaGEZONE Forums


what shoude i do,
 
@patipakdeeying

Code:
const char * v_identity = identity.c_str();

ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);

should fix your problem.

@Doky

change it to this:
Code:
const char * v_identity = m_identity.c_str();

ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
 
@jonnybravo thank you bro <3
one doubt, I have to make a TeamSpeak 3 server on my dedicated or do not need? this IP and port, password that is there in the code, it is already by default, for example, if I want to place 155.167.bla.bla it works?

OverZ Source
 
still error ,
Error 1 error C2065: 'identity' : undeclared identifier e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 521 Eclipse Studio

Error 2 error C2228: left of '.c_str' must have class/struct/union e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 521 Eclipse Studio

Error 3 error C2065: 'plr3msg' : undeclared identifier e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 522 Eclipse Studio

SS :

Please Help me , thank you sir
jonnybravo - [Release]VOIP custom Settings - RaGEZONE Forums
 
@jonnybravo
OverZ Source

My error

Your code

const char * v_identity = m_identity.c_str();
ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);


Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 5 from 'VirtualServerProperties' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 527 Eclipse Studio
 
pastebin your teamspeakclient.cpp

also should learn how to code or the basics before you try.

Code:
[TABLE]
[TR]
[TD]unsigned int [B]ts3client_startConnection([/B][/TD]
[TD]serverConnectionHandlerID, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]identity, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]ip, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]port, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]nickname, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]defaultChannelArray, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]defaultChannelPassword, [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]serverPassword);[/TD]
[TD] [/TD]
[/TR]
[/TABLE]
uint64 serverConnectionHandlerID;
const char* identity;
const char* ip;
unsigned int port;
const char* nickname;
const char** defaultChannelArray;
const char* defaultChannelPassword;
const char* serverPassword;
 
   

[LIST]
[*][I]serverConnectionHandlerID[/I]
Unique identifier for this server connection. Created with ts3client_spawnNewServerConnectionHandler

[*][I]identity[/I]
The clients identity. This string has to be created by calling ts3client_createIdentity. Please note an application should create the identity only once, store the string locally and reuse it for future connections.

[*][I]ip[/I]
Hostname or IP of the TeamSpeak 3 server.
If  you pass a hostname instead of an IP, the Client Lib will try to  resolve it to an IP, but the function may block for an unusually long  period of time while resolving is taking place. If you are relying on  the function to return quickly, we recommend to resolve the hostname  yourself (e.g. asynchronously) and then call ts3client_startConnection with the IP instead of the hostname.

[*][I]port[/I]
UDP port of the TeamSpeak 3 server, by default 9987. TeamSpeak 3 uses UDP. Support for TCP might be added in the future.

[*][I]nickname[/I]
On  login, the client attempts to take this nickname on the connected  server. Note this is not necessarily the actually assigned nickname, as  the server can modifiy the nickname ("gandalf_1" instead the requested  "gandalf") or refuse blocked names.

[*][I]defaultChannelArray[/I]
String  array defining the path to a channel on the TeamSpeak 3 server. If the  channel exists and the user has sufficient rights and supplies the  correct password if required, the channel will be joined on login.
To  define the path to a subchannel of arbitrary level, create an array of  channel names detailing the position of the default channel (e.g.  "grandparent", "parent", "mydefault", ""). The array is terminated with a  empty string.
Pass NULL to join the servers default channel.

[*][I]defaultChannelPassword[/I]
Password for the default channel. Pass an empty string if no password is required or no default channel is specified.

[*][I]serverPassword[/I]
Password for the server. Pass an empty string if the server does not require a password.
[/LIST]

All strings need to be encoded in UTF-8 format.
 
Back