void setMonitor(boolean waitForSnapshotConf)
			throws TsapiResourceUnavailableException {
		CSTAConnectionID monConnID = null;
		if (!isMonitorSet()) {
			synchronized (this.connections) {
				if (this.connections.size() > 0) {
					try {
						monConnID = ((TSConnection) this.connections
								.elementAt(0)).getConnID();
					} catch (TsapiPlatformException e) {
						log.error("Ignoring exception: " + e);
						if (this.callID != 0) {
							monConnID = new CSTAConnectionID(this.callID, "",
									(short) 0);
						}
					}
				} else if (this.callID != 0) {
					monConnID = new CSTAConnectionID(this.callID, "", (short) 0);
				}
			}
		}
		if (monConnID != null)
			monitorCall(monConnID, waitForSnapshotConf);
	}