|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.gtwy.Gateway
This class contains the main Gateway control. It also creates instances of other classes needed for controlling individual Gateway channels, data flow, and the interface with signaling.
Field Summary | |
protected static int |
BUFFERSIZE
Size of voice packets transferred from phone to Gateway. |
protected static int |
PXFERFACTOR
Factor BUFFERSIZE is multiplied by to determine the size of voice packets transferred
from Gateway to phone. |
Method Summary | |
protected cnrg.itx.datax.Connection |
dialComputer(Line lineInfo,
java.lang.String ext)
Dials an computer application extension from ListenChannel. |
protected void |
dialPhone(java.lang.String digits,
Line lineInfo)
Used by SignalInterface to place a call to a phone. |
protected void |
freeLine(Line lineInfo)
Resets and unreserves a line for a future connection. |
protected Line |
getAvailableLine()
Finds a line that can be used for a connection between a computer and a phone. |
protected ChannelControl |
getChannelControl()
Called to receive the ChannelControl object responsible for controlling the Gateway
hardware. |
protected void |
hangup(Line lineInfo)
Called by a RecordChannel. |
static void |
main(java.lang.String[] args)
The main entry point for the Gateway. |
protected void |
playDTMF(java.lang.String digits,
Line lineInfo,
cnrg.itx.datax.Connection c)
Used by SignalInterface to play DTMF tones onto the connected phone. |
protected void |
resetSequence(Line lineInfo)
Reinitializes a line for data flow. |
protected void |
sendDTMF(java.lang.String digits,
Line lineInfo)
RecordChannel calls this to send any DTMF digits it received while sending voice data from a phone to a computer. |
protected void |
setUpConnection(Line lineInfo,
cnrg.itx.datax.Connection c)
Sets up a data connection between phone and computer. |
protected void |
tearDownConnection(Line lineInfo)
Used by SignalInterface to take down a data connection between computer and phone. |
protected void |
tearDownPlayConnection(Line lineInfo)
Used by RecordChannel after a hangup to stop playout on a phone. |
protected boolean |
useLine(Line lineInfo)
Checks if the specified line can be used for a connection between a phone and computer. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final int BUFFERSIZE
protected static final int PXFERFACTOR
BUFFERSIZE
is multiplied by to determine the size of voice packets transferred
from Gateway to phone.Method Detail |
protected ChannelControl getChannelControl()
ChannelControl
object responsible for controlling the Gateway
hardware.ChannelControl
.ChannelControl
protected Line getAvailableLine()
Line
instance of the available line. Contains information concerning
that line.Line
protected boolean useLine(Line lineInfo)
lineInfo
- the Line
instance of the specific line being reserved. Contains
information concerning that line.protected void freeLine(Line lineInfo)
lineInfo
- the Line
instance of the line being freed. Contains information
concerning that line.protected void resetSequence(Line lineInfo)
lineInfo
- the Line
instance of the line being reinitialized. Contains
information concerning that line.protected void setUpConnection(Line lineInfo, cnrg.itx.datax.Connection c)
lineInfo
- the Line
instance of the line where the connection is set up.
Contains information concerning that line.c
- the Connection
instance associated with the connection. Provides the means
to transfer voice data.Connection
protected void tearDownConnection(Line lineInfo)
SignalInterface
to take down a data connection between computer and phone.
The connection is always through a line.lineInfo
- the Line
instance of the line where the connection currently exists.
Contains information concerning the line.protected void tearDownPlayConnection(Line lineInfo)
RecordChannel
after a hangup to stop playout on a phone. The connection on
the line is terminated.lineInfo
- the Line
instance of the line where the connection currently exists.
Contains information concerning that line.protected cnrg.itx.datax.Connection dialComputer(Line lineInfo, java.lang.String ext) throws GatewayException
lineInfo
- The Line
instance of the line from which the phone dial is being
made. Contains information concerning that line.ext
- extension number to dial.Connection
instance used to service data flow on a line. Provides the
means necessary for voice data transfer.protected void hangup(Line lineInfo) throws GatewayException
lineInfo
- the Line
instance of the line that is disconnected. Contains
information concerning that line.protected void sendDTMF(java.lang.String digits, Line lineInfo) throws GatewayException
digits
- the DTMF digits that were detected from the phone.lineInfo
- the Line
instance of the line on which the DTMF tones were detected.protected void dialPhone(java.lang.String digits, Line lineInfo) throws GatewayException
digits
- the number of the phone being calledlineInfo
- the Line
instance of the line where the connection is to be made.protected void playDTMF(java.lang.String digits, Line lineInfo, cnrg.itx.datax.Connection c)
digits
- the DTMF tones being played.lineInfo
- the Line
instance of the line where the DTMF tones are being played.
Contains information concerning the line.c
- the Connection
instance associated with the connection the line is on.public static void main(java.lang.String[] args)
args
- Array of parameters passed to the application via the command line.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |