Package org.asteriskjava.manager

Examples of org.asteriskjava.manager.ManagerConnectionFactory


  public SipDao(String sipHostname, int sipPort, String sipUsername, String sipPassword) {
    this.sipHostname = sipHostname;
    this.sipPort = sipPort;
    this.sipUsername = sipUsername;
    this.sipPassword = sipPassword;
    factory = new ManagerConnectionFactory(this.sipHostname, this.sipPort, this.sipUsername, this.sipPassword);
    connection = factory.createManagerConnection(); // TODO secure
  }
View Full Code Here


  public SipDao(String sipHostname, int sipPort, String sipUsername, String sipPassword) {
    this.sipHostname = sipHostname;
    this.sipPort = sipPort;
    this.sipUsername = sipUsername;
    this.sipPassword = sipPassword;
    factory = new ManagerConnectionFactory(this.sipHostname, this.sipPort, this.sipUsername, this.sipPassword);
    connection = factory.createManagerConnection(); // TODO secure
  }
View Full Code Here

   * @param host the where to find the Asterisk PBX
   * @param username username to login to Asterisk ManagerInterface
   * @param password password to login to Asterisk ManagerInterface
   */
  private void connect(String host, String username, String password) {
    ManagerConnectionFactory factory =
      new ManagerConnectionFactory(host, username, password);

    AsteriskBinding.managerConnection = factory.createManagerConnection();
    AsteriskBinding.managerConnection.addEventListener(new AsteriskEventManager());
   
    try {
      AsteriskBinding.managerConnection.login();
    } catch (AuthenticationFailedException afe) {
View Full Code Here

TOP

Related Classes of org.asteriskjava.manager.ManagerConnectionFactory

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.