}
public void init() throws Exception
{
String fileName = getFileName("hello", _audioPayloadType);
DatagramSocket datagramSocket = new DatagramSocket();
UdpEndPoint udpEndPoint = new UdpEndPoint(datagramSocket);
_player = new Player(fileName, _host, _destPort, _audioPayloadType,
udpEndPoint);
_dtmfHandler = new DtmfHandler(_dtmfPayloadType, udpEndPoint);
_player.init();
_dtmfHandler.init();
_dtmfHandlerThread = new Thread(_dtmfHandler);
_player.addEventListener(this);
_dtmfHandler.addDtmfListener(this);
_filenames = Collections.synchronizedList(new ArrayList<String>());
_localPort = datagramSocket.getLocalPort();
_timer = new Timer();
_playingMutex = new Object();
synchronized (_playingMutex)
{
_playing = false;