Examples of SipStack


Examples of javax.sip.SipStack

  }

  public ViaHeader createLocalViaHeader() throws ParseException,
      InvalidArgumentException {
    // First get the sip stack from the sip provider
    SipStack sipStack = sipProvider.getSipStack();
    // Get the host name of this listening point
    final String host = sipProvider.getListeningPoints()[0].getIPAddress();
    // Get the port
    final int port = sipProvider.getListeningPoints()[0].getPort();
    // Get the transport
View Full Code Here

Examples of javax.sip.SipStack

    
        try {
            headerFactory = protocolObjects.headerFactory;
            addressFactory = protocolObjects.addressFactory;
            messageFactory = protocolObjects.messageFactory;
            SipStack sipStack = protocolObjects.sipStack;
            ListeningPoint lp1 = sipStack.createListeningPoint("127.0.0.1", port1, "udp");
            ListeningPoint lp2 = sipStack.createListeningPoint("127.0.0.1", port2, "udp");
            SipProvider sp1 = sipStack.createSipProvider(lp1);
            SipProvider sp2 = sipStack.createSipProvider(lp2);
            this.listeningPoints[0] = lp1;
            this.listeningPoints[1] = lp2;
            this.providers[0] = sp1;
            this.providers[1] = sp2;
            sp1.addSipListener(this);
View Full Code Here

Examples of javax.sip.SipStack

    
        try {
            headerFactory = protocolObjects.headerFactory;
            addressFactory = protocolObjects.addressFactory;
            messageFactory = protocolObjects.messageFactory;
            SipStack sipStack = protocolObjects.sipStack;
            ListeningPoint lp1 = sipStack.createListeningPoint("127.0.0.1", port1, "udp");
            ListeningPoint lp2 = sipStack.createListeningPoint("127.0.0.1", port2, "udp");
            SipProvider sp1 = sipStack.createSipProvider(lp1);
            SipProvider sp2 = sipStack.createSipProvider(lp2);
            this.listeningPoints[0] = lp1;
            this.listeningPoints[1] = lp2;
            this.providers[0] = sp1;
            this.providers[1] = sp2;
            sp1.addSipListener(this);
View Full Code Here

Examples of org.cafesip.sipunit.SipStack

    }
  }

  public void setUp() throws Exception
  {
    _sipStack = new SipStack(getProtocol(), getLocalPort(), (Properties) _properties.clone());
    SipStack.setTraceEnabled(_properties.getProperty("sipunit.trace").equalsIgnoreCase("true"));
    _alicePhone =  _sipStack.createSipPhone(getRemoteHost(), getProtocol(),
        getRemotePort(), getAliceUri());
    if (__headerFactory == null)
    {
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.