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 592 2007-01-21 16:44:00Z 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, getChannelById, getChannelByName, getChannels, getGlobalVariable, getManagerConnection, getMeetMeRoom, getMeetMeRooms, getQueues, getVersion, getVersion, getVoicemailboxes, initialize, originateToApplication, originateToApplication, originateToApplicationAsync, originateToApplicationAsync, originateToExtension, originateToExtension, originateToExtensionAsync, originateToExtensionAsync, removeAsteriskServerListener, setGlobalVariable, setManagerConnection, setSkipQueues, shutdown
 
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 Manager API connections, usually 5038.
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-2007 Stefan Reuter. All Rights Reserved.