Package gov.nist.javax.sip

Examples of gov.nist.javax.sip.ListeningPointExt


            public void processAck(RequestEvent requestEvent,
                    ServerTransaction serverTransaction) {
                logger.info("shootme: got an ACK " + requestEvent.getRequest());
               
                SipProvider sipProvider = (SipProvider) requestEvent.getSource();
                ListeningPointExt listeningPoint = (ListeningPointExt) sipProvider.getListeningPoint(transport);
                try {
          listeningPoint.sendHeartbeat(myAddress, Shootist.myPort);
        } catch (IOException e) {
                    logger.error("Unexpected error on sending hearbeat",e);
        }
                try {
                    //Create BYE request
View Full Code Here


                newResponse.setHeader(peerContactHeader);
                serverTransaction.sendResponse(newResponse);
                if ( ((CSeqHeader)response.getHeader(CSeqHeader.NAME)).getMethod().equals(Request.INVITE) &&
                        response.getStatusCode() == 200 ) {
                    Request newRequest = dialog.createRequest(Request.INVITE);
                    ListeningPointExt listeningPoint = (ListeningPointExt) provider.getListeningPoint("udp");
                    ContactHeader contact = listeningPoint.createContactHeader();
                    newRequest.setHeader(contact);
                    ClientTransaction clientTransaction = provider.getNewClientTransaction(newRequest);
                    // Send without waiting for ACK.
                    dialog.sendRequest(clientTransaction);
                }
View Full Code Here

                newResponse.setHeader(peerContactHeader);
                serverTransaction.sendResponse(newResponse);
                if ( ((CSeqHeader)response.getHeader(CSeqHeader.NAME)).getMethod().equals(Request.INVITE) &&
                        response.getStatusCode() == 200 ) {
                    Request newRequest = dialog.createRequest(Request.INVITE);
                    ListeningPointExt listeningPoint = (ListeningPointExt) provider.getListeningPoint("udp");
                    ContactHeader contact = listeningPoint.createContactHeader();
                    newRequest.setHeader(contact);
                    ClientTransaction clientTransaction = provider.getNewClientTransaction(newRequest);
                    // Send without waiting for ACK.
                    dialog.sendRequest(clientTransaction);
                }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.ListeningPointExt

Copyright © 2018 www.massapicom. 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.