|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.connection.Channel
public class Channel
Represents the bi-directional transition path for a particular media type stream.
| Nested Class Summary | |
|---|---|
protected class |
Channel.CnfMode
Conference mode |
protected class |
Channel.Mode
Transmission mode |
class |
Channel.NetworkLoopMode
Terminates channel to itself |
class |
Channel.SendOnlyMode
Transmission from connections to channel. |
class |
Channel.SendRecvMode
Transmission in both directions |
| Field Summary | |
|---|---|
protected Channel.CnfMode |
cnfMode
|
protected BaseConnection |
connection
|
protected Connections |
connections
|
protected PipeImpl |
localPipe
|
protected Mixer |
mixer
|
protected AtomicReference<Channel.Mode> |
mode
|
protected Channel.NetworkLoopMode |
network_loop
|
protected Channel |
otherChannel
|
protected org.mobicents.media.server.connection.Channel.RecvOnlyMode |
recvOnly
|
protected PipeImpl |
rxPipe
|
protected Channel.SendRecvMode |
send_recv
|
protected Channel.SendOnlyMode |
sendOnly
|
protected Splitter |
splitter
|
protected PipeImpl |
txPipe
|
| Constructor Summary | |
|---|---|
Channel(BaseConnection connection,
Connections connections,
MediaType mediaType,
Mixer mixer,
Splitter splitter)
|
|
| Method Summary | |
|---|---|
void |
connect(Channel other)
Joins with other channel |
void |
connect(RTPDataChannel other)
|
protected Channel.Mode |
convert(ConnectionMode mode)
Creates switch executor for specified mode. |
void |
disconnect()
Disconnects this channel from another if it was connected previously |
CheckPoint |
getCheckPoint(int i)
Gets the access to the specified check point. |
MediaType |
getMediaType()
Gets the media type of this channel. |
ConnectionMode |
getMode()
Gets the current transmission mode. |
String |
report()
|
void |
setDtmfClamp(Boolean dtmfClamp)
Modify dtmf clamp for splitter Applicable for audio channel only. |
void |
setGain(double gain)
Modify gain of the tx stream. |
void |
setMode(ConnectionMode mode)
Changes transmission mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BaseConnection connection
protected Mixer mixer
protected Splitter splitter
protected PipeImpl txPipe
protected PipeImpl rxPipe
protected PipeImpl localPipe
protected Channel otherChannel
protected Connections connections
protected org.mobicents.media.server.connection.Channel.RecvOnlyMode recvOnly
protected Channel.SendOnlyMode sendOnly
protected Channel.SendRecvMode send_recv
protected Channel.NetworkLoopMode network_loop
protected Channel.CnfMode cnfMode
protected AtomicReference<Channel.Mode> mode
| Constructor Detail |
|---|
public Channel(BaseConnection connection,
Connections connections,
MediaType mediaType,
Mixer mixer,
Splitter splitter)
throws Exception
Exception| Method Detail |
|---|
public void setDtmfClamp(Boolean dtmfClamp)
dtmfClamp - the value of the dtmfClamp.public void setGain(double gain)
gain - the value of the gain.public MediaType getMediaType()
public void setMode(ConnectionMode mode)
throws ModeNotSupportedException
mode - the identifier of transmission mode.
ModeNotSupportedExceptionpublic ConnectionMode getMode()
protected Channel.Mode convert(ConnectionMode mode)
throws ModeNotSupportedException
mode - the mode value.
ModeNotSupportedExceptionpublic CheckPoint getCheckPoint(int i)
i - the check point identifier.
public String report()
public void connect(RTPDataChannel other)
public void connect(Channel other)
other - the other channelpublic void disconnect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||