Package javax.sip

Examples of javax.sip.ClientTransaction.sendRequest()


                    // We will test if the CSEq validation is off by sending CSeq 1 again

                    ClientTransaction ct = provider
                    .getNewClientTransaction(messageRequest);
                    cseq.setSeqNumber(1);
                    ct.sendRequest();

                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
View Full Code Here


          // TODO Auto-generated catch block
          e1.printStackTrace();
        }

                // send the request out.
                inviteTid.sendRequest();

                dialog = inviteTid.getDialog();

            } catch (Exception ex) {
              ex.printStackTrace();
View Full Code Here

                    // We will test if the CSEq validation is off by sending CSeq 1 again

                    ClientTransaction ct = provider
                    .getNewClientTransaction(messageRequest);
                    cseq.setSeqNumber(1);
                    ct.sendRequest();

                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
View Full Code Here

          // TODO Auto-generated catch block
          e1.printStackTrace();
        }

                // send the request out.
                inviteTid.sendRequest();

                dialog = inviteTid.getDialog();

            } catch (Exception ex) {
              ex.printStackTrace();
View Full Code Here

            ClientTransaction inviteTid = mySipProvider.getNewClientTransaction(request);

            logger.info("Invite Dialog = " + inviteTid.getDialog());

            // send the request out.
            inviteTid.sendRequest();

        } catch (Throwable ex) {
            TestHarness.fail("Failed to send INVITE, because of " + ex);
        }
    }
View Full Code Here

     
      Request request = createMessage(fromHeaderName, "reroute", callID);
      try{
        ClientTransaction clientTransaction = sipProvider.getNewClientTransaction(request);
//        clientTransaction.setRetransmitTimer(990000);
        clientTransaction.sendRequest();
        //System.out.println("Invite sent");
      } catch(TransactionUnavailableException e){ 
        e.printStackTrace();
        System.err.println(e.getMessage());
      } catch(SipException e){ 
View Full Code Here

             
              sct = (SIPClientTransaction) clientTransaction;
    //          System.out.println(sct.getMessageChannel().getSIPStack().getActiveClientTransactionCount());
             
              //clientTransaction.setRetransmitTimer(10000);
              clientTransaction.sendRequest();
              //System.out.println("INVITE sent");
              Thread.sleep(10);
          }
          if(u != 0 && u%1500 == 0){
            System.out.println("I'll sleep..with ActiveClientTransactions: " +sct.getMessageChannel().getSIPStack().getActiveClientTransactionCount());
View Full Code Here

                    this.clientTxTable.add(ct2);

                    // Send the requests out to the two listening points of the
                    // client.

                    ct2.sendRequest();
                    ct1.sendRequest();
                }

            } else {
                // Remove the topmost route header
View Full Code Here

                    this.clientTxTable.put(new Integer(5090), ct2);

                    // Send the requests out to the two listening points of the
                    // client.

                    ct2.sendRequest();
                    ct1.sendRequest();
                }

      } else {
        // Remove the topmost route header
View Full Code Here

                ClientTransaction ct = udpProvider.getNewClientTransaction(notifyRequest);

                /*
                 * We deliberately send the NOTIFY first before the 202 is sent.
                 */
                ct.sendRequest();
                logger.info("NOTIFY Branch ID "
                        + ((ViaHeader) request.getHeader(ViaHeader.NAME)).getParameter("branch"));
                logger.info("Dialog " + dialog);
                logger.info("Dialog state after pending NOTIFY: " + dialog.getState());

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.