In esl.jar library , their is a public function to make make  outbound connection with freeswitch :

public ESLconnection(int socket) {
    this(eslJNI.new_ESLconnection__SWIG_2(socket), true);
  }

but how I can (int socket) ?

Regards

Marwan