Examples of JingleException


Examples of nu.fw.jeti.plugins.jingle.jingle.JingleNegotiator.JingleException

                // and send an accept if we havee an agreement...
                if (bestCommonAudioPt != null) {
                    response = createAcceptMessage();
                }
                else {
                    throw new JingleException(JingleError.NO_COMMON_PAYLOAD);
                }

                setState(pending);
            }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleNegotiator.JingleException

                    if (oldBestCommonAudioPt == null || ptChange) {
                        response = createAcceptMessage();
                    }
                }
                else {
                    throw new JingleException(JingleError.NO_COMMON_PAYLOAD);
                }
            }

            // Parse the Jingle and get the payload accepted
            return response;
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleNegotiator.JingleException

                    agreedCommonAudioPt = (PayloadType.Audio) offeredPayloads.get(0);
                    if (bestCommonAudioPt != null) {
                        // If the accepted PT matches the best payload
                        // everything is fine
                        if (!agreedCommonAudioPt.equals(bestCommonAudioPt)) {
                            throw new JingleException(JingleError.NEGOTIATION_ERROR);
                        }
                    }

                }
                else if (offeredPayloads.size() > 1) {
                    throw new JingleException(JingleError.MALFORMED_STANZA);
                }
            }

            return response;
        }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleNegotiator.JingleException

         *
         * @throws JingleException
         */
        public Jingle eventDecline(Jingle inJingle) throws JingleException {
            triggerMediaClosed(getBestCommonAudioPt());
            throw new JingleException();
        }
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

            if (iq.getType().equals(IQ.Type.ERROR)) {
                // Process errors
                setNegotiatorState(JingleNegotiatorState.FAILED);
                triggerTransportClosed(null);
                // This next line seems wrong, and may subvert the normal closing process.
                throw new JingleException(iq.getError().getMessage());
            } else if (iq.getType().equals(IQ.Type.RESULT)) {
                // Process ACKs
                if (isExpectedId(iq.getPacketID())) {
                    response = receiveResult(iq);
                    removeExpectedId(iq.getPacketID());
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

        if (iq.getType().equals(IQ.Type.ERROR)) {
            // Process errors
            setNegotiatorState(JingleNegotiatorState.FAILED);
            triggerMediaClosed(getBestCommonAudioPt());
            // This next line seems wrong, and may subvert the normal closing process.
            throw new JingleException(iq.getError().getMessage());
        } else if (iq.getType().equals(IQ.Type.RESULT)) {
            // Process ACKs
            if (isExpectedId(iq.getPacketID())) {
                receiveResult(iq);
                removeExpectedId(iq.getPacketID());
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

                ptChange = !bestCommonAudioPt.equals(oldBestCommonAudioPt);
                if (oldBestCommonAudioPt == null || ptChange) {
                    //response = createAcceptMessage();
                }
            } else {
                throw new JingleException(JingleError.NO_COMMON_PAYLOAD);
            }
        }

        // Parse the Jingle and get the payload accepted
        return response;
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

                agreedCommonAudioPt = (PayloadType.Audio) offeredPayloads.get(0);
                if (bestCommonAudioPt != null) {
                    // If the accepted PT matches the best payload
                    // everything is fine
                    if (!agreedCommonAudioPt.equals(bestCommonAudioPt)) {
                        throw new JingleException(JingleError.NEGOTIATION_ERROR);
                    }
                }

            } else if (offeredPayloads.size() > 1) {
                throw new JingleException(JingleError.MALFORMED_STANZA);
            }
        }

        return response;
    }
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

            if (iq.getType().equals(IQ.Type.ERROR)) {
                // Process errors
                setNegotiatorState(JingleNegotiatorState.FAILED);
                triggerTransportClosed(null);
                // This next line seems wrong, and may subvert the normal closing process.
                throw new JingleException(iq.getError().getMessage());
            } else if (iq.getType().equals(IQ.Type.RESULT)) {
                // Process ACKs
                if (isExpectedId(iq.getPacketID())) {
                    response = receiveResult(iq);
                    removeExpectedId(iq.getPacketID());
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.JingleException

        if (iq.getType().equals(IQ.Type.ERROR)) {
            // Process errors
            setNegotiatorState(JingleNegotiatorState.FAILED);
            triggerMediaClosed(getBestCommonAudioPt());
            // This next line seems wrong, and may subvert the normal closing process.
            throw new JingleException(iq.getError().getMessage());
        } else if (iq.getType().equals(IQ.Type.RESULT)) {
            // Process ACKs
            if (isExpectedId(iq.getPacketID())) {
                receiveResult(iq);
                removeExpectedId(iq.getPacketID());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.