Package org.mobicents.slee.resource.sip

Examples of org.mobicents.slee.resource.sip.SipFactoryProvider


      cache = CacheFactory.getInstance().getCache();

      Context myEnv = (Context) new InitialContext()
          .lookup("java:comp/env");
      // Getting JAIN SIP Resource Adaptor interfaces
      SipFactoryProvider factoryProvider = (SipFactoryProvider) myEnv
          .lookup("slee/resources/jainsip/1.2/provider");

      sipProvider = factoryProvider.getSipProvider();

      activityContextInterfaceFactory = (SipActivityContextInterfaceFactory) myEnv
          .lookup("slee/resources/jainsip/1.2/acifactory");

      // Check that callControlSipAddress and password are present
View Full Code Here


  private AddressFactory getAddressFactory() {
    AddressFactory addressFactory = null;
    try {
      Context myEnv = (Context) new InitialContext()
          .lookup("java:comp/env");
      SipFactoryProvider factoryProvider = (SipFactoryProvider) myEnv
          .lookup("slee/resources/jainsip/1.2/provider");
      addressFactory = factoryProvider.getAddressFactory();
    } catch (NamingException e) {
      e.printStackTrace();
    }
    return addressFactory;
  }
View Full Code Here

   
   
    Context myEnv = (Context) new InitialContext()
        .lookup(jndiEnvPath);
    // Getting JAIN SIP Resource Adaptor interfaces
    SipFactoryProvider factoryProvider = (SipFactoryProvider) myEnv
        .lookup(jndiSipFactoryProviderPath);

    addressFactory = factoryProvider.getAddressFactory();
    headerFactory = factoryProvider.getHeaderFactory();
    messageFactory = factoryProvider.getMessageFactory();
    sipProvider = factoryProvider.getSipProvider();
         
    return new SipUtilsImpl(sipProvider, headerFactory, messageFactory, addressFactory);
  }
View Full Code Here

TOP

Related Classes of org.mobicents.slee.resource.sip.SipFactoryProvider

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.