com.headissue.asterisk.jtapi.gjtapi
Class AsteriskProvider
java.lang.Object
com.headissue.asterisk.jtapi.gjtapi.AsteriskProvider
- All Implemented Interfaces:
- net.sourceforge.gjtapi.raw.BasicJtapiTpi, net.sourceforge.gjtapi.raw.CoreTpi
- Direct Known Subclasses:
- AsteriskJtapiProvider
public class AsteriskProvider
- extends java.lang.Object
- implements net.sourceforge.gjtapi.raw.BasicJtapiTpi
GJTAPI raw provider for the Asterisk PBX
- Version:
- $Id: AsteriskProvider.java,v 1.4 2006/05/14 13:55:18 jwilke Exp $
- Author:
- jw
Method Summary |
void |
addListener(net.sourceforge.gjtapi.TelephonyListener l)
|
void |
answerCall(net.sourceforge.gjtapi.CallId call,
java.lang.String address,
java.lang.String terminal)
Call answering is not supported by the asterisk tpi. |
net.sourceforge.gjtapi.CallId |
createCall(net.sourceforge.gjtapi.CallId _callId,
java.lang.String _addr,
java.lang.String _terminal,
java.lang.String _destination)
|
java.lang.String[] |
getAddresses()
|
java.lang.String[] |
getAddresses(java.lang.String _terminal)
|
(package private) AsteriskCall |
getCall(java.lang.String _uniqueId)
|
java.util.Properties |
getCapabilities()
|
net.sourceforge.gjtapi.TermData[] |
getTerminals()
|
net.sourceforge.gjtapi.TermData[] |
getTerminals(java.lang.String _address)
|
void |
initialize(java.util.Map props)
|
(package private) void |
parseDialplan()
|
void |
release(java.lang.String _address,
net.sourceforge.gjtapi.CallId _callId)
|
void |
releaseCallId(net.sourceforge.gjtapi.CallId _callId)
|
void |
removeListener(net.sourceforge.gjtapi.TelephonyListener ro)
|
net.sourceforge.gjtapi.CallId |
reserveCallId(java.lang.String address)
|
void |
shutdown()
|
(package private) net.sourceforge.gjtapi.TermData[] |
terminalDataArray(java.util.Set s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asteriskManager
net.sf.asterisk.manager.DefaultAsteriskManager asteriskManager
managerConnection
net.sf.asterisk.manager.DefaultManagerConnection managerConnection
listener
net.sourceforge.gjtapi.TelephonyListener listener
id2call
java.util.Map id2call
config
ProviderConfig config
addresses
java.util.Map addresses
addressStrings
java.lang.String[] addressStrings
terminals
java.util.Map terminals
AsteriskProvider
public AsteriskProvider()
addListener
public void addListener(net.sourceforge.gjtapi.TelephonyListener l)
- Specified by:
addListener
in interface net.sourceforge.gjtapi.raw.CoreTpi
removeListener
public void removeListener(net.sourceforge.gjtapi.TelephonyListener ro)
- Specified by:
removeListener
in interface net.sourceforge.gjtapi.raw.CoreTpi
answerCall
public void answerCall(net.sourceforge.gjtapi.CallId call,
java.lang.String address,
java.lang.String terminal)
throws javax.telephony.MethodNotSupportedException
- Call answering is not supported by the asterisk tpi. In general this makes only
sense in first-party TAPI applications.
- Specified by:
answerCall
in interface net.sourceforge.gjtapi.raw.CoreTpi
- Throws:
javax.telephony.MethodNotSupportedException
createCall
public net.sourceforge.gjtapi.CallId createCall(net.sourceforge.gjtapi.CallId _callId,
java.lang.String _addr,
java.lang.String _terminal,
java.lang.String _destination)
throws javax.telephony.ResourceUnavailableException
- Specified by:
createCall
in interface net.sourceforge.gjtapi.raw.CoreTpi
- Throws:
javax.telephony.ResourceUnavailableException
release
public void release(java.lang.String _address,
net.sourceforge.gjtapi.CallId _callId)
throws javax.telephony.ResourceUnavailableException
- Specified by:
release
in interface net.sourceforge.gjtapi.raw.BasicJtapiTpi
- Throws:
javax.telephony.ResourceUnavailableException
getCapabilities
public java.util.Properties getCapabilities()
- Specified by:
getCapabilities
in interface net.sourceforge.gjtapi.raw.CoreTpi
releaseCallId
public void releaseCallId(net.sourceforge.gjtapi.CallId _callId)
- Specified by:
releaseCallId
in interface net.sourceforge.gjtapi.raw.CoreTpi
reserveCallId
public net.sourceforge.gjtapi.CallId reserveCallId(java.lang.String address)
- Specified by:
reserveCallId
in interface net.sourceforge.gjtapi.raw.CoreTpi
shutdown
public void shutdown()
- Specified by:
shutdown
in interface net.sourceforge.gjtapi.raw.CoreTpi
parseDialplan
void parseDialplan()
throws javax.telephony.ProviderUnavailableException
- Throws:
javax.telephony.ProviderUnavailableException
getAddresses
public java.lang.String[] getAddresses()
throws javax.telephony.ResourceUnavailableException
- Specified by:
getAddresses
in interface net.sourceforge.gjtapi.raw.BasicJtapiTpi
- Throws:
javax.telephony.ResourceUnavailableException
getAddresses
public java.lang.String[] getAddresses(java.lang.String _terminal)
- Specified by:
getAddresses
in interface net.sourceforge.gjtapi.raw.BasicJtapiTpi
terminalDataArray
net.sourceforge.gjtapi.TermData[] terminalDataArray(java.util.Set s)
getTerminals
public net.sourceforge.gjtapi.TermData[] getTerminals()
throws javax.telephony.ResourceUnavailableException
- Specified by:
getTerminals
in interface net.sourceforge.gjtapi.raw.BasicJtapiTpi
- Throws:
javax.telephony.ResourceUnavailableException
getTerminals
public net.sourceforge.gjtapi.TermData[] getTerminals(java.lang.String _address)
throws javax.telephony.InvalidArgumentException
- Specified by:
getTerminals
in interface net.sourceforge.gjtapi.raw.BasicJtapiTpi
- Throws:
javax.telephony.InvalidArgumentException
initialize
public void initialize(java.util.Map props)
throws javax.telephony.ProviderUnavailableException
- Specified by:
initialize
in interface net.sourceforge.gjtapi.raw.CoreTpi
- Throws:
javax.telephony.ProviderUnavailableException
getCall
AsteriskCall getCall(java.lang.String _uniqueId)
Copyright 2006 headissue GmbH. All Rights Reserved.