Package javax.sip

Examples of javax.sip.ClientTransaction


                    .nextElement();
            Vector vector = (Vector) table.get(serverTransaction);

            for (Enumeration en = vector.elements(); en.hasMoreElements();)
            {
                ClientTransaction ct = (ClientTransaction) en.nextElement();
                if (ct == clientTransaction)
                {
                    return serverTransaction;
                }
            }
View Full Code Here


            return null;
        else
        {
            for (Enumeration e = vector.elements(); e.hasMoreElements();)
            {
                ClientTransaction ct = (ClientTransaction) e.nextElement();
                Dialog d = ct.getDialog();
                if (d.getState() != null
                        && d.getState().equals(DialogState.CONFIRMED))
                    return ct;
            }
            return null;
View Full Code Here

                Vector vector = (Vector) table.get(serverTransaction);
                if (vector != null)
                {
                    for (int i = 0; i < vector.size(); i++)
                    {
                        ClientTransaction clientTransac = (ClientTransaction) vector
                                .elementAt(i);
                    }
                }
            }
        }
View Full Code Here

            JipletLogger.debug("DEBUG INFO: Its dialog is: "
                    + serverTransaction.getDialog());
        }
        else if (transaction instanceof ClientTransaction)
        {
            ClientTransaction clientTransaction = (ClientTransaction) transaction;
            JipletLogger.debug("DEBUG TRANSACTION INFO: here is the "
                    + " client transaction: " + clientTransaction);

            JipletLogger.debug("DEBUG TRANSACTION INFO: Its dialog is: "
                    + clientTransaction.getDialog());
        }
    }
View Full Code Here

        notifyRequest.setContent(body, sipPresenceAgent.getConfiguration().getContentTypeHeader());
        if (LOG.isDebugEnabled()) {
            LOG.debug("Sending the following NOTIFY request to Subscriber: " + notifyRequest);
        }
       
        ClientTransaction clientTransactionId = sipPresenceAgent.getProvider().getNewClientTransaction(notifyRequest);

        dialog.sendRequest(clientTransactionId);
    }
View Full Code Here

        notifyRequest.setHeader(eventHeader);
        notifyRequest.setHeader(sipPresenceAgent.getConfiguration().getContactHeader());
        notifyRequest.setContent(body, sipPresenceAgent.getConfiguration().getContentTypeHeader());
        LOG.debug("Sending the following NOTIFY request to Subscriber: {}", notifyRequest);
       
        ClientTransaction clientTransactionId = sipPresenceAgent.getProvider().getNewClientTransaction(notifyRequest);

        dialog.sendRequest(clientTransactionId);
    }
View Full Code Here

        // Create the Subscription request to register with the presence agent and receive notifications.
        configuration.setCallIdHeader(provider.getNewCallId());
        Request request = configuration.createSipRequest(1, Request.SUBSCRIBE, configuration.getEventHeaderName());
           
        // Create the subscriber transaction from request.
        ClientTransaction subscriberTransactionId = provider.getNewClientTransaction(request);
           
        // Add an Event header for the subscription.
        request.addHeader(configuration.getEventHeader());
        subscriberDialog = subscriberTransactionId.getDialog();

        // Send the outgoing subscription request.
        subscriberTransactionId.sendRequest();
    }
View Full Code Here

                        }
                        ReasonHeader reasonHeader = new Reason();
                        reasonHeader.setCause(1024);
                        reasonHeader.setText("Timed out waiting to re-INVITE");
                        byeRequest.addHeader(reasonHeader);
                        ClientTransaction byeCtx = SIPDialog.this
                                .getSipProvider().getNewClientTransaction(
                                        byeRequest);
                        SIPDialog.this.sendRequest(byeCtx);
                        return;
                    }
View Full Code Here

                            reasonHeader.setProtocol("SIP");
                            reasonHeader.setCause(1025);
                            reasonHeader
                                    .setText("Timed out waiting to send ACK " + dialogId);
                            byeRequest.addHeader(reasonHeader);
                            ClientTransaction byeCtx = SIPDialog.this
                                    .getSipProvider().getNewClientTransaction(
                                            byeRequest);
                            SIPDialog.this.sendRequest(byeCtx);
                            return;
                        } catch (Exception ex) {
View Full Code Here

        notifyRequest.setHeader(eventHeader);
        notifyRequest.setHeader(sipPresenceAgent.getConfiguration().getContactHeader());
        notifyRequest.setContent(body, sipPresenceAgent.getConfiguration().getContentTypeHeader());
        LOG.debug("Sending the following NOTIFY request to Subscriber: {}", notifyRequest);
       
        ClientTransaction clientTransactionId = sipPresenceAgent.getProvider().getNewClientTransaction(notifyRequest);

        dialog.sendRequest(clientTransactionId);
    }
View Full Code Here

TOP

Related Classes of javax.sip.ClientTransaction

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.