org.mobicents.jcc.inap
Class JccInapProviderImpl
java.lang.Object
org.mobicents.jcc.inap.JccInapProviderImpl
- All Implemented Interfaces:
- javax.csapi.cc.jcc.JccProvider, SccpListener
public class JccInapProviderImpl
- extends java.lang.Object
- implements javax.csapi.cc.jcc.JccProvider, SccpListener
- Author:
- Oleg Kulikov
| Fields inherited from interface javax.csapi.cc.jcc.JccProvider |
IN_SERVICE, OUT_OF_SERVICE, SHUTDOWN |
|
Constructor Summary |
JccInapProviderImpl(java.util.Properties properties)
Creates a new instance of JccInapProviderImpl |
|
Method Summary |
void |
addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
(Non java-doc) |
void |
addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
(Non java-doc) |
void |
addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
javax.csapi.cc.jcc.EventFilter filter)
(Non java-doc) |
void |
addProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CalledPartyBcdNumber cpn)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CalledPartyNumber cpn)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CallingPartyNumber cpn)
|
javax.csapi.cc.jcc.JccCall |
createCall()
(Non Java-doc). |
protected JccCallImpl |
createCall(javax.csapi.cc.jcc.JccAddress callingNumber)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAddressRange(java.lang.String lowAddress,
java.lang.String highAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAddressRegEx(java.lang.String addressRegex,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterCauseCode(int causeCode,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterDestAddressRange(java.lang.String lowDestAddress,
java.lang.String highDestAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterDestAddressRegEx(java.lang.String destAddressRegex,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterEventSet(int[] blockEvents,
int[] notifyEvents)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterMidCallEvent(int midCallType,
java.lang.String midCallValue,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterMinimunCollectedAddressLength(int minimumAddressLength,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOrigAddressRange(java.lang.String lowOrigAddress,
java.lang.String highOrigAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOrigAddressRegEx(java.lang.String origAddressRegex,
int matchDisposition,
int nomatchDisposition)
|
CalledPartyNumber |
finalTranslation(CalledPartyBcdNumber cpn)
|
CalledPartyNumber |
finalTranslation(CalledPartyNumber cpn)
|
javax.csapi.cc.jcc.JccAddress |
getAddress(java.lang.String address)
|
protected JccCallImpl |
getCall(javax.csapi.cc.jcc.JccAddress callingNumber)
|
protected AbstractConnection |
getConnection(long connectionID)
|
java.lang.String |
getName()
|
int |
getState()
|
CalledPartyNumber |
initialTranslation(CalledPartyBcdNumber cpn)
|
CalledPartyNumber |
initialTranslation(CalledPartyNumber cpn)
|
void |
onMessage(SccpAddress calledPartyAddress,
SccpAddress callingPartyAddress,
byte[] data)
|
void |
removeCallListener(javax.csapi.cc.jcc.JccCallListener calllistener)
|
void |
removeCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener loadcontrollistener)
|
void |
removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener connectionlistener)
|
void |
removeProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
|
protected void |
send(SccpAddress calledParty,
SccpAddress callingParty,
TCMessage msg)
|
void |
setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] address,
double duration,
double[] mechanism,
int[] treatment)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
- See Also:
- Constant Field Values
name
protected static final java.lang.String name
- See Also:
- Constant Field Values
callListeners
protected java.util.ArrayList callListeners
connectionListeners
protected java.util.ArrayList connectionListeners
sccpProvider
protected SccpProvider sccpProvider
calls
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap calls
connections
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap connections
incInitialTT
protected TranslationTable incInitialTT
incFinalTT
protected TranslationTable incFinalTT
outInitialTT
protected TranslationTable outInitialTT
outFinalTT
protected TranslationTable outFinalTT
JccInapProviderImpl
public JccInapProviderImpl(java.util.Properties properties)
- Creates a new instance of JccInapProviderImpl
addCallListener
public void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
throws javax.csapi.cc.jcc.MethodNotSupportedException,
javax.csapi.cc.jcc.ResourceUnavailableException
- (Non java-doc)
- Specified by:
addCallListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException- See Also:
javax.csapi.cc.jcc.JccProvier#addCallListener.
addCallLoadControlListener
public void addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
throws javax.csapi.cc.jcc.MethodNotSupportedException,
javax.csapi.cc.jcc.ResourceUnavailableException
- (Non java-doc)
- Specified by:
addCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException- See Also:
javax.csapi.cc.jcc.JccProvier#addCallLoadControlListener.
addConnectionListener
public void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
javax.csapi.cc.jcc.EventFilter filter)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.MethodNotSupportedException
- (Non java-doc)
- Specified by:
addConnectionListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException- See Also:
javax.csapi.cc.jcc.JccProvier#addConnectionListener.
addProviderListener
public void addProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.MethodNotSupportedException
- Specified by:
addProviderListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException
createCall
public javax.csapi.cc.jcc.JccCall createCall()
throws javax.csapi.cc.jcc.InvalidStateException,
javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.PrivilegeViolationException,
javax.csapi.cc.jcc.MethodNotSupportedException
- (Non Java-doc).
- Specified by:
createCall in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.MethodNotSupportedException- See Also:
JccProvider.createCall().
createEventFilterAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRange(java.lang.String lowAddress,
java.lang.String highAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRegEx(java.lang.String addressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterAnd
public javax.csapi.cc.jcc.EventFilter createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAnd in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterCauseCode
public javax.csapi.cc.jcc.EventFilter createEventFilterCauseCode(int causeCode,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterCauseCode in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterDestAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRange(java.lang.String lowDestAddress,
java.lang.String highDestAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterDestAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterDestAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRegEx(java.lang.String destAddressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterDestAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterEventSet
public javax.csapi.cc.jcc.EventFilter createEventFilterEventSet(int[] blockEvents,
int[] notifyEvents)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterEventSet in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterMidCallEvent
public javax.csapi.cc.jcc.EventFilter createEventFilterMidCallEvent(int midCallType,
java.lang.String midCallValue,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterMidCallEvent in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterMinimunCollectedAddressLength
public javax.csapi.cc.jcc.EventFilter createEventFilterMinimunCollectedAddressLength(int minimumAddressLength,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterMinimunCollectedAddressLength in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOr
public javax.csapi.cc.jcc.EventFilter createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOr in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOrigAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRange(java.lang.String lowOrigAddress,
java.lang.String highOrigAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOrigAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOrigAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRegEx(java.lang.String origAddressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOrigAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
getAddress
public javax.csapi.cc.jcc.JccAddress getAddress(java.lang.String address)
throws javax.csapi.cc.jcc.InvalidPartyException
- Specified by:
getAddress in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.InvalidPartyException
getName
public java.lang.String getName()
- Specified by:
getName in interface javax.csapi.cc.jcc.JccProvider
getState
public int getState()
- Specified by:
getState in interface javax.csapi.cc.jcc.JccProvider
removeCallListener
public void removeCallListener(javax.csapi.cc.jcc.JccCallListener calllistener)
- Specified by:
removeCallListener in interface javax.csapi.cc.jcc.JccProvider
removeCallLoadControlListener
public void removeCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener loadcontrollistener)
- Specified by:
removeCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider
removeConnectionListener
public void removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener connectionlistener)
- Specified by:
removeConnectionListener in interface javax.csapi.cc.jcc.JccProvider
removeProviderListener
public void removeProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
- Specified by:
removeProviderListener in interface javax.csapi.cc.jcc.JccProvider
setCallLoadControl
public void setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] address,
double duration,
double[] mechanism,
int[] treatment)
throws javax.csapi.cc.jcc.MethodNotSupportedException
- Specified by:
setCallLoadControl in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
shutdown
public void shutdown()
- Specified by:
shutdown in interface javax.csapi.cc.jcc.JccProvider
onMessage
public void onMessage(SccpAddress calledPartyAddress,
SccpAddress callingPartyAddress,
byte[] data)
- Specified by:
onMessage in interface SccpListener
send
protected void send(SccpAddress calledParty,
SccpAddress callingParty,
TCMessage msg)
throws java.io.IOException
- Throws:
java.io.IOException
getCall
protected JccCallImpl getCall(javax.csapi.cc.jcc.JccAddress callingNumber)
getConnection
protected AbstractConnection getConnection(long connectionID)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CalledPartyNumber cpn)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CalledPartyBcdNumber cpn)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CallingPartyNumber cpn)
createCall
protected JccCallImpl createCall(javax.csapi.cc.jcc.JccAddress callingNumber)
initialTranslation
public CalledPartyNumber initialTranslation(CalledPartyNumber cpn)
finalTranslation
public CalledPartyNumber finalTranslation(CalledPartyNumber cpn)
initialTranslation
public CalledPartyNumber initialTranslation(CalledPartyBcdNumber cpn)
finalTranslation
public CalledPartyNumber finalTranslation(CalledPartyBcdNumber cpn)
Copyright © 2008. All Rights Reserved.