Package javax.sip

Examples of javax.sip.SipStack


   
    String valveClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", null);
    if(valveClassName != null && !valveClassName.equals("")) {
      try {
        super.sipMessageValve = (SIPMessageValve) Class.forName(valveClassName).newInstance();
        final SipStack thisStack = this;

        try {
          Thread.sleep(100);
          sipMessageValve.init(thisStack);
        } catch (Exception e) {
          logger
          .logError("Error intializing SIPMessageValve", e);
        }

      } catch (Exception e) {
        logger
        .logError(
            "Bad configuration value for gov.nist.javax.sip.SIP_MESSAGE_VALVE", e);     
      }
    }

    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipEventInterceptor.init(thisStack);
View Full Code Here


   
    String valveClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", null);
    if(valveClassName != null && !valveClassName.equals("")) {
      try {
        super.sipMessageValve = (SIPMessageValve) Class.forName(valveClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipMessageValve.init(thisStack);
            } catch (Exception e) {
              getStackLogger()
              .logError("Error intializing SIPMessageValve", e);
            }
           
          }
        }.start();
      } catch (Exception e) {
        getStackLogger()
          .logError(
              "Bad configuration value for gov.nist.javax.sip.SIP_MESSAGE_VALVE", e);     
      }
    }
   
    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipEventInterceptor.init(thisStack);
View Full Code Here

   
    String valveClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", null);
    if(valveClassName != null && !valveClassName.equals("")) {
      try {
        super.sipMessageValve = (SIPMessageValve) Class.forName(valveClassName).newInstance();
        final SipStack thisStack = this;

        try {
          Thread.sleep(100);
          sipMessageValve.init(thisStack);
        } catch (Exception e) {
          logger
          .logError("Error intializing SIPMessageValve", e);
        }

      } catch (Exception e) {
        logger
        .logError(
            "Bad configuration value for gov.nist.javax.sip.SIP_MESSAGE_VALVE", e);     
      }
    }

    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipEventInterceptor.init(thisStack);
View Full Code Here

    
        try {
            headerFactory = protocolObjects.headerFactory;
            addressFactory = protocolObjects.addressFactory;
            messageFactory = protocolObjects.messageFactory;
            SipStack sipStack = protocolObjects.sipStack;
            ListeningPoint lp1 = sipStack.createListeningPoint("127.0.0.1", port1, "tcp");
            ListeningPoint lp2 = sipStack.createListeningPoint("127.0.0.1", port2, "tcp");
            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

    }
    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
       
        try {
          sipEventInterceptor.init(thisStack);
        } catch (Exception e) {
          getStackLogger()
View Full Code Here

   
    String valveClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", null);
    if(valveClassName != null && !valveClassName.equals("")) {
      try {
        super.sipMessageValve = (SIPMessageValve) Class.forName(valveClassName).newInstance();
        final SipStack thisStack = this;

        try {
          Thread.sleep(100);
          sipMessageValve.init(thisStack);
        } catch (Exception e) {
          logger
          .logError("Error intializing SIPMessageValve", e);
        }

      } catch (Exception e) {
        logger
        .logError(
            "Bad configuration value for gov.nist.javax.sip.SIP_MESSAGE_VALVE", e);     
      }
    }

    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipEventInterceptor.init(thisStack);
View Full Code Here

   
    String valveClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", null);
    if(valveClassName != null && !valveClassName.equals("")) {
      try {
        super.sipMessageValve = (SIPMessageValve) Class.forName(valveClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipMessageValve.init(thisStack);
            } catch (Exception e) {
              logger
              .logError("Error intializing SIPMessageValve", e);
            }
           
          }
        }.start();
      } catch (Exception e) {
        logger
          .logError(
              "Bad configuration value for gov.nist.javax.sip.SIP_MESSAGE_VALVE", e);     
      }
    }
   
    String interceptorClassName = configurationProperties.getProperty("gov.nist.javax.sip.SIP_EVENT_INTERCEPTOR", null);
    if(interceptorClassName != null && !interceptorClassName.equals("")) {
      try {
        super.sipEventInterceptor = (SIPEventInterceptor) Class.forName(interceptorClassName).newInstance();
        final SipStack thisStack = this;
        new Thread() {
          public void run() {
            try {
              Thread.sleep(100);
              sipEventInterceptor.init(thisStack);
View Full Code Here

    
        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

    
        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

  }

  public ContactHeader createLocalContactHeader() throws ParseException {

    // 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

TOP

Related Classes of javax.sip.SipStack

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.