logger.fine("EXTERNAL CALLID IS " + externalCallID + " " + msg
+ " softphone callID " + softphoneCallID + " softphone call "
+ softphoneCall + " softphone player " + softphonePlayer);
if (message instanceof PlayTreatmentMessage) {
PlayTreatmentMessage m = (PlayTreatmentMessage) message;
logger.fine("play treatment " + m.getTreatment()
+ " to " + listing.getExternalCallID() + " echo " + m.echo());
if (listing.simulateCalls() == true) {
return;
}
try {
externalCall.playTreatment(m.getTreatment());
} catch (IOException e) {
logger.warning("Unable to play treatment to " + externalCall + ": "
+ e.getMessage());
}
if (m.echo() == false) {
return;
}
logger.fine("echoing treatment to " + softphoneCallID);
try {
softphoneCall.playTreatment(m.getTreatment());
} catch (IOException e) {
logger.warning("Unable to play treatment to " + softphoneCall + ": "
+ e.getMessage());
sender.send(clientID, new CallEndedResponseMessage(
phoneCellMO.getCellID(), listing, true, "Softphone is not connected!"));