dialogManager.removeDialog(dialog.getId());
logger.debug("removed dialog " + dialog.getId());
switch (userAgent.getMediaMode()) {
case captureAndPlayback:
userAgent.getMediaManager().stopSession();
SoundManager soundManager = userAgent.getSoundManager();
if (soundManager != null) {
soundManager.closeLines();
}
break;
case echo:
Echo echo = userAgent.getEcho();
if (echo != null) {