|
4.1.0.610 20071213 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ecma.csta.CastorObject
ch.ecma.csta.binding.RecordMessage
public class RecordMessage
Starts recording media stream coming into a specified device. The application can specify a file name to hold the recorded message or the file name can default to timestampextension.wav, where timestamp is the local start time of the recording and extension is the phone number of the device.
Timestamp is formatted as yyyyMMddhhmmss, whereyyyy | is year |
MM | is month |
dd | is day |
hh | is hour |
mm | is minutes |
ss | is seconds |
RecordMessage Request Parameters | ||
---|---|---|
callToBeRecorded | Mandatory | Specifies the device whose incoming media stream is to be recorded (only the deviceID field of the connectionID is used). |
samplingRate | Not supported | |
encodingAlgorithm | Not supported | Set the encoding algorithm in the extensions' PrivateData instead. See extensions parameter. |
maxDuration | Optional | Specifies the maximum duration of the recording in milliseconds. |
termination | Optional | The DTMF digit detection termination condition is supported. If this is set, the recording will continue until a DTMF digit is detected on the device. |
extensions | Optional | Optional parameters can be set in this parameter's
CSTACommonArguments private data area.
The parameters that can be set are:
|
RecordMessagePrivateData Parameters | ||
---|---|---|
encoding | Optional | Specifies the desired encoding format
of the resulting Wave file.
If the incoming media is in a different format than what is
specified, then the media will be converted to the specified
format. Conversions that are supported include:
|
filename | Optional | Specifies an alphanumeric recording file name. |
RecordMessageResponse Parameters | ||
---|---|---|
resultingMessage | Always Provided | If the application chose to default the filename to
timestamp extension .wav, then this field
specifies the
resulting Wave file name (with timestamp and
extension ) without the ".wav" suffix.
The file is placed on the connector server.
A ".wav" needs to be appended to a numeric filename to get the
complete filename as stored on the disk.
If the application instead specified its own filename in the request's RecordMessagePrivateData, then this field is "0" and the file name is returned in the response's extension in RecordMessageResponsePrivateData. |
extensions | Always Provided | Additional data is returned in this parameter's
CSTACommonArguments private data area.
The data that is returned is:
|
RecordMessageResponsePrivateData Parameters | ||
---|---|---|
filename | Always Provided | The alphanumeric recording filename. |
timestamp | Always Provided | The start time of the recording. Time is measured in the number of milliseconds between the current time on the connector server and midnight, January 1, 1970 coordinated univeral time (UTC). |
Constructor Summary | |
---|---|
RecordMessage()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
ConnectionID |
getCallToBeRecorded()
Returns the value of field 'callToBeRecorded'. |
EncodingAlgorithm |
getEncodingAlgorithm()
Returns the value of field 'encodingAlgorithm'. |
CSTACommonArguments |
getExtensions()
Returns the value of field 'extensions'. |
java.lang.Long |
getMaxDuration()
Returns the value of field 'maxDuration'. |
java.lang.String |
getResource()
Returns the value of field 'resource'. |
java.lang.Long |
getSamplingRate()
Returns the value of field 'samplingRate'. |
TerminatingConditions |
getTermination()
Returns the value of field 'termination'. |
boolean |
isValid()
Method isValid |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
void |
setCallToBeRecorded(ConnectionID callToBeRecorded)
Sets the value of field 'callToBeRecorded'. |
void |
setEncodingAlgorithm(EncodingAlgorithm encodingAlgorithm)
Sets the value of field 'encodingAlgorithm'. |
void |
setExtensions(CSTACommonArguments extensions)
Sets the value of field 'extensions'. |
void |
setMaxDuration(java.lang.Long maxDuration)
Sets the value of field 'maxDuration'. |
void |
setResource(java.lang.String resource)
Sets the value of field 'resource'. |
void |
setSamplingRate(java.lang.Long samplingRate)
Sets the value of field 'samplingRate'. |
void |
setTermination(TerminatingConditions termination)
Sets the value of field 'termination'. |
static RecordMessage |
unmarshalRecordMessage(java.io.Reader reader)
Method unmarshalRecordMessage |
void |
validate()
Method validate |
Methods inherited from class ch.ecma.csta.CastorObject |
---|
getOldSessionID, hashCode, setOldSessionID, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RecordMessage()
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class ch.ecma.csta.CastorObject
obj
-
public ConnectionID getCallToBeRecorded()
public EncodingAlgorithm getEncodingAlgorithm()
public CSTACommonArguments getExtensions()
public java.lang.Long getMaxDuration()
public java.lang.String getResource()
public java.lang.Long getSamplingRate()
public TerminatingConditions getTermination()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void setCallToBeRecorded(ConnectionID callToBeRecorded)
callToBeRecorded
- the value of field 'callToBeRecorded'public void setEncodingAlgorithm(EncodingAlgorithm encodingAlgorithm)
encodingAlgorithm
- the value of field
'encodingAlgorithm'.public void setExtensions(CSTACommonArguments extensions)
extensions
- the value of field 'extensions'.public void setMaxDuration(java.lang.Long maxDuration)
maxDuration
- the value of field 'maxDuration'.public void setResource(java.lang.String resource)
resource
- the value of field 'resource'.public void setSamplingRate(java.lang.Long samplingRate)
samplingRate
- the value of field 'samplingRate'.public void setTermination(TerminatingConditions termination)
termination
- the value of field 'termination'.public static RecordMessage unmarshalRecordMessage(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
4.1.0.610 20071213 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |