public class SessionObject extends Object implements SessionObjectAction, DataProvider, TestAction, ControlAction, SampleAction
| Modifier and Type | Field and Description |
|---|---|
RTPListener |
rtpListener |
RTPStats |
rtpStats |
| Constructor and Description |
|---|
SessionObject(Hashtable<String,String> params)
Constructor for specimen object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addApp(Map params)
Add a APP packet to the RTCP template.
|
void |
addBye(Map params)
Add a BYE packet to the RTCP template.
|
void |
addReport(Map params)
Add a report packet to the RTCP template.
|
void |
addSdes(Map params)
Add a SDES packet to the RTCP template.
|
void |
close() |
Object |
createNewSessionObject() |
byte[] |
createRtpDtmf(String key,
int volume,
int duration,
int end)
Create DTMF packet over RTP using RFC 4733/2833.
|
void |
doControl(int number,
Map params) |
String |
doGet(String var) |
ActionEvent |
doSample(int number,
Map params,
ActionEvent report) |
boolean |
doTest(int number,
Map params) |
void |
dtmf(Map params)
Send a DTMF packet over RTP.
|
void |
enableRtcp(Map params)
Enable RTCP packets in the RTP stream.
|
void |
forwardStream(Map params)
Forward a stream.
|
void |
initRtp(Map params)
Initialize the RTP Stream.
|
boolean |
isNotRtcpBye(RTPInstance myInstance) |
boolean |
isRtcpBye(RTPInstance myInstance) |
void |
reset() |
void |
resetRtcp(Map params)
Reset RTCP template and disable RTCP.
|
void |
sendBye(Map params)
Send a RTCP BYE packet.
|
void |
sendFile(Map params)
Send a file.
|
void |
sendReceiverReport(Map params)
Send a receiver report packet.
|
public RTPListener rtpListener
public RTPStats rtpStats
public Object createNewSessionObject()
createNewSessionObject in interface SessionObjectActionSessionObjectAction.createNewSessionObject()public void close()
close in interface SessionObjectActionSessionObjectAction.close()public void reset()
reset in interface SessionObjectActionSessionObjectAction.reset()public String doGet(String var)
doGet in interface DataProviderorg.ow2.clif.scenario.isac.plugin.DataProvider#doGet()public boolean doTest(int number,
Map params)
doTest in interface TestActionorg.ow2.clif.scenario.isac.plugin.TestAction#doTest()public boolean isRtcpBye(RTPInstance myInstance)
public boolean isNotRtcpBye(RTPInstance myInstance)
public void doControl(int number,
Map params)
doControl in interface ControlActionorg.ow2.clif.scenario.isac.plugin.ControlAction#doControl()public void initRtp(Map params)
params - : A map of the parameters of the control action.public void sendFile(Map params)
params - : A map of the parameters of the control action.public void forwardStream(Map params)
params - : A map of the parameters of the control action.public void dtmf(Map params)
params - : A map of the parameters of the control action.public byte[] createRtpDtmf(String key, int volume, int duration, int end)
key - : the digit to generate DTMF.volume - : the volume of the DTMF.duration - : the duration of the packet.end - : if it is the end of the DTMF (Marker = 1 in the RTP packet).public void enableRtcp(Map params)
params - : A map of the parameters of the control action.public void addReport(Map params)
params - params - : A map of the parameters of the control action.public void addSdes(Map params)
params - : A map of the parameters of the control action.public void addBye(Map params)
params - : A map of the parameters of the control action.public void addApp(Map params)
params - : A map of the parameters of the control action.public void resetRtcp(Map params)
params - params - : A map of the parameters of the control action.public void sendBye(Map params)
params - : A map of the parameters of the control action.public void sendReceiverReport(Map params)
params - params - : A map of the parameters of the control action.public ActionEvent doSample(int number, Map params, ActionEvent report)
doSample in interface SampleActionorg.ow2.clif.scenario.isac.plugin.SampleAction#doSample()Copyright © 2020 OW2. All Rights Reserved.