Asterisk-Java

org.asteriskjava.live
Class SecureAsteriskServer

java.lang.Object
  extended by org.asteriskjava.live.DefaultAsteriskServer
      extended by org.asteriskjava.live.SecureAsteriskServer
All Implemented Interfaces:
AsteriskServer

public class SecureAsteriskServer
extends DefaultAsteriskServer

Secure implementation of the AsteriskServer interface.

Uses SSL for the connection to Asterisk.

Version:
$Id: SecureAsteriskServer.java 961 2008-02-03 02:53:56Z srt $
Author:
srt
See Also:
AsteriskServer

Constructor Summary
SecureAsteriskServer(java.lang.String hostname, int port, java.lang.String username, java.lang.String password)
          Creates a new instance and a new SSL secured ManagerConnection with the given connection data.
 
Method Summary
protected  DefaultManagerConnection createManagerConnection(java.lang.String hostname, int port, java.lang.String username, java.lang.String password)
           
 
Methods inherited from class org.asteriskjava.live.DefaultAsteriskServer
addAsteriskServerListener, executeCliCommand, getAgents, getChannelById, getChannelByName, getChannels, getConfig, getGlobalVariable, getManagerConnection, getMeetMeRoom, getMeetMeRooms, getQueues, getVersion, getVersion, getVoicemailboxes, initialize, isModuleLoaded, loadModule, originate, originateAsync, originateToApplication, originateToApplication, originateToApplicationAsync, originateToApplicationAsync, originateToExtension, originateToExtension, originateToExtensionAsync, originateToExtensionAsync, reloadAllModules, reloadModule, removeAsteriskServerListener, setGlobalVariable, setManagerConnection, setSkipQueues, shutdown, unloadModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureAsteriskServer

public SecureAsteriskServer(java.lang.String hostname,
                            int port,
                            java.lang.String username,
                            java.lang.String password)
Creates a new instance and a new SSL secured ManagerConnection with the given connection data.

Parameters:
hostname - the hostname of the Asterisk server to connect to.
port - the port where Asterisk listens for incoming SSL secured Manager API connections, usually 5039.
username - the username to use for login
password - the password to use for login
Method Detail

createManagerConnection

protected DefaultManagerConnection createManagerConnection(java.lang.String hostname,
                                                           int port,
                                                           java.lang.String username,
                                                           java.lang.String password)
Overrides:
createManagerConnection in class DefaultAsteriskServer

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.