This API provides the high level telephony API for the speech link stack.
This API provides the high level telephony API for the speech link stack. Applications should integrate to this level.
Create a telephony platform API and instantiate it. Used by the Telephony service
Channels are taken from a list of idle channels. The channel
must be opened with SLhwTelChnOpen() before it is ready
to receive or initiate calls.
The channel cannot receive or initiate calls until
SLtelReserveChannel() and SLtelChnOpen() are called again.
The channel must have been previously reserved with SLhwTelReserveChannel()
prior to making this call. The channel remains open until SLhwTelChnClose()
is called.
/**
Adds an event callback for the specified event and channel. Only a reference to the callback information is copied, therefore the
caller must ensure that the callback information remains in scope after the
call returns. The reason is that the reference of the callback information
is used for retrieval when removing a callback information.
If the other party can perform the request, it will hangup the call (a
SLtel_HANGUP event is thrown) and it invites the destination on a call. If
the callReturn flag is set to true. The other party will call us back when
the call call with the transfer target is over.
SLTEL_API SLresult SLtelShutdown(void *args)
SLTEL_API SLresult SLtelGetProperty(SLchar *prop_name, SLValue *value)
value - out[x] the value of the property
SLTEL_API SLresult SLtelSetProperty(SLchar *prop_name, SLValue *value)
value - the value of the property
SLTEL_API SLresult SLtelProperties(SLVector *prop_names)
SLTEL_API SLresult SLtelReserveChannel(SLtelChn** channel)
SLTEL_API SLresult SLtelReleaseChannel(SLtelChn* channel)
SLTEL_API SLresult SLtelChnOpen(SLtelChn *channel)
SLTEL_API SLresult SLtelChnClose(SLtelChn *channel)
SLTEL_API SLresult SLtelChnAddCallback(SLtelEvent e, SLtelChn* channel, SLtelEventInfo *info)
channel - The channel on which to set the callback.
info - An event information structure to be used if there is an event
on the telephony API
SLTEL_API SLresult SLtelChnRemoveCallback(SLtelEvent e, SLtelChn* channel, SLtelEventInfo *info)
channel - The channel on which to remove the callback.
info - in[x] The callback structure to remove.
SLTEL_API SLresult SLtelChnGetProperty(SLtelChn *channel, SLchar *prop_name, SLValue *value)
prop_name - the name of the property
value - out[x] the value of the property
SLTEL_API SLresult SLtelChnSetProperty(SLtelChn *channel, SLchar *prop_name, SLValue *value)
prop_name - the name of the property
value - the value of the property
SLTEL_API SLresult SLtelChnProperties(SLtelChn *channel, SLVector *prop_names)
prop_names - out[x] the set of available properties
SLTEL_API SLresult SLtelChnConnect(SLtelChn* channel, const SLchar* mimetype, const void* userdata, SLuint dataSize)
mimetype - in[x] NULL terminated string providing the
MIME type of the data to transmit on a
speech links call.
userdata - in[x] The user data to transfer on the
speech links call.
dataSize - in[x] The length in bytes of the userdata.
SLTEL_API SLresult SLtelChnDisconnect(SLtelChn* channel)
SLTEL_API SLresult SLtelChnDial(SLtelChn* channel, SLchar* dest, SLbool call_prog, const SLchar *mimetype, const void* userdata, SLuint udataSize)
dest - in[x] A URI specifying the phone number or SIP number to call
call_prog - in[x] Returns a call connect event using call progress detection if true.
mimetype - in[x] NULL terminated string providing the
MIME type of the data to transmit on a
speech links call.
userdata - in[x] The user data to transfer on the
speech links call.
dataSize - in[x] The length in bytes of the userdata.
SLTEL_API SLresult SLtelChnTransfer(SLtelChn* chn, const SLchar* dest, const SLchar *mimetype, const void* userdata, SLuint udataSize, SLbool callReturn)
dest - in[x] The destination phone number of the
transfer. This can be a URI
mimetype - in[x] NULL terminated string providing the
MIME type of the data to transmit on a
speech links call.
userdata - in[x] The user data to transfer on the
speech links call.
udataSize - in[x] The length in bytes of the userdata.
callReturn - in[x] If true the transfer target should
return the call on call termination
SLTEL_API SLresult SLtelChnSendDTMF(SLtelChn* ch, SLchar *digits)
digits - in[x] 0-terminated string of DTMFs to send.
SLTEL_API SLresult SLtelChnPlayFile(SLtelChn* channel, SLchar *filename)
filename - The path of the file to be played.
SLTEL_API SLresult SLtelChnRecordFile(SLtelChn* ch, SLuint nbSecs, SLchar *filename)
nbSecs - The maximum number of seconds the recording should last. If
set to 0, means no time limit.
filename - The path of the file in which the recording is to be saved.
Alphabetic index HTML hierarchy of classes or Java