Package javax.sip

Examples of javax.sip.Dialog.createAck()


                        && ((CSeqHeader) response.getHeader(CSeqHeader.NAME))
                                .getMethod().equals(Request.INVITE)) {

                    Dialog dialog = responseReceivedEvent.getDialog();
                    CSeqHeader cseq = (CSeqHeader) response.getHeader(CSeqHeader.NAME);
                    Request ackRequest = dialog.createAck(cseq.getSeqNumber());
                    logger.info("Ack request to send = " + ackRequest);
                    logger.info("Sending ACK");
                    dialog.sendAck(ackRequest);
                }
            } catch (Exception ex) {
View Full Code Here


                if ( responseReceivedEvent.getResponse().getStatusCode() == Response.OK) {
                    this.sawOk = true;
                Dialog dialog = responseReceivedEvent.getDialog();
                long cseq = ((CSeqHeader) responseReceivedEvent.getResponse()
                        .getHeader(CSeqHeader.NAME)).getSeqNumber();
                Request ack = dialog.createAck(cseq);
                dialog.sendAck(ack);
                }
            } catch (Exception ex) {
                fail("Unexpected exception");
View Full Code Here

        public void processResponse(ResponseEvent responseReceivedEvent) {
            if ( responseReceivedEvent.getResponse().getStatusCode() == Response.OK) {

                Dialog d = responseReceivedEvent.getDialog();
                try {
                    Request ack = d.createAck(1);
                    sipProvider.sendRequest(ack);
                    sipProvider.sendRequest(ack);
                    sipProvider.sendRequest(ack);
                    sipProvider.sendRequest(ack);
                    sipProvider.sendRequest(ack);
View Full Code Here

                TestHarness.fail("Failed to send notify, because of " + e1.getMessage());
            }

            if (response.getStatusCode() >= 200 && response.getStatusCode() < 300) {
                try {
                    Request ack = dialog.createAck( cseq.getSeqNumber() );
                    dialog.sendAck( ack );

                    // kill it right away
                    if ( dialog.getState() != DialogState.TERMINATED ) {
                      Request bye = dialog
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.