diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/components/JingleDescription.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/components/JingleDescription.java index dbdd31eac..e017d6fd6 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/components/JingleDescription.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/components/JingleDescription.java @@ -39,4 +39,6 @@ public abstract class JingleDescription description = getSoleContentOrThrow().getDescription(); + JingleDescriptionManager descriptionManager = jingleManager.getDescriptionManager(description.getNamespace()); + + if (descriptionManager == null) { + LOGGER.log(Level.WARNING, "Unsupported description type: " + description.getNamespace()); + return JingleElement.createSessionTerminate(getPeer(), getSessionId(), JingleReasonElement.Reason.unsupported_applications); + } + + descriptionManager.notifySessionInitiate(this); + + return IQ.createResultIQ(request); } private IQ handleTransportInfo(JingleElement request) {