code: public void close() {
  		if (rtpChannel != null) {
  			if (rtpChannel.isConnected()) {
  				try {
  					rtpChannel.disconnect();
  				} catch (IOException e) {
  					logger.error(e);
  				}
  				try {
  					rtpChannel.socket().close();
  					rtpChannel.close();
  				} catch (IOException e) {
  					logger.error(e);
  				}
  			}
  		}
  
  		if (rtcpChannel != null) {
  			rtcpChannel.socket().close();
  		}
  
  		// System.out.println("RX COUNT:" + rxCount + ",TX COUNT:" + txCount);
  		rxCount = 0;
  		txCount = 0;
  		input.deactivate();
  		dtmfInput.deactivate();
  		dtmfInput.reset();
  		output.deactivate();
  		dtmfOutput.deactivate();
  		this.tx.clear();
  
  		heartBeat.cancel();
  		sendDtmf = false;
  	}
docs: Closes this socket.