Closed Newcomer1989 closed 6 years ago
I need a short break and new eyes for the problem. Then I found it.. It is sitting in front of the PC ;-)
My bad, all is working fine, if I add the server_port=
paramter to the URI.
Otherwise, if the server_port
option is not set to the URI and I connect to it as described above, then I need to save the connection to the correct object.
Example:
$ts3_instance = TeamSpeak3::factory("serverquery://".rawurlencode($ts['user']).":".rawurlencode($ts['pass'])."@".$ts['host'].":".$ts['query']."?ssh=1");
$ts3_virtual_server = $ts3_instance ->serverGetByPort($ts['voice']);
$ts3_virtual_server->notifyRegister("server");
[...]
Background information
$ts3 = TeamSpeak3::factory("serverquery://".rawurlencode($ts['user']).":".rawurlencode($ts['pass'])."@".$ts['host'].":".$ts['query']."/?ssh=1");
which is built this:serverquery://serveradmin:XXXXXX@127.0.0.1:10022/?ssh=1
$ts3->serverSelectByPort("9987");
Which seems to work, cause when I ask for the$ts3->serverSelectedId();
I got back the correct ServerID.Problem:
On serveral functions I got an error, that the node method is missed.
My code extracts, which produces the errors above:
If I am using the same script, same TS3 PHP Framework, only I change the connection from SSH to RAW all is working fine!
Means, this one brings the described errors above:
No error / problems with this connection:
$ts3 = TeamSpeak3::factory("serverquery://".rawurlencode($ts['user']).":".rawurlencode($ts['pass'])."@".$ts['host'].":".$ts['query']."/?server_port=".$ts['voice']."&blocking=0");
I am not sure, did I something wrong or is the problem the library?