title: Making a Mumble ICE Authenticator in PHP
body: <p>Interfacing with Mumble over ICE is a very interesting task with little examples around.</p>
  
  <p>I'm trying to make a User Authenticator in PHP and I'm having a few issues with the setup. My setup is PHP 5.5, Murmur 1.3.0 and ICE 3.5.1</p>
  
  <pre><code>$ICE = Ice_initialize();
      $secret = array('secret'=&gt;'');
      try{
              $base = $ICE-&gt;stringToProxy("Meta  -e 1.0:tcp -h 127.0.0.1 -p 6502");
              $meta = $base-&gt;ice_checkedCast("::Murmur::Meta")-&gt;ice_context($secret);
              $mconfig = $meta-&gt;getServer(1)-&gt;ice_context($secret)-&gt;getTree();
  </code></pre>
  
  <p>This is what I have so far to set the context of the ice server, Im wanting to setup a callback for Murmur::ServerAuthenticator interface "authenticate"</p>
  
  <p>I'm unsure how to set it up with the ICE Callback system to be able to call a function with all the details of the auth and return the needed data.</p>
  
  <p>Something like this:</p>
  
  <pre><code>$server-&gt;setAuthenticator($auth);
  $auth = myownfunc($user, $pw, $certificates, $certhash);
  </code></pre>