Telephony control interface.
Telephony control interface. This API supports all the functions necessary to control and query the lines.
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
SLhwTelReserveChannel() and SLhwTelChnOpen() 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.
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.
SLHWTEL_API SLresult SLhwTelShutdown(void *args)
SLHWTEL_API SLresult SLhwTelGetProperty(SLchar *prop_name, SLValue *value)
value - out[x] the value of the property
SLHWTEL_API SLresult SLhwTelSetProperty(SLchar *prop_name, SLValue *value)
value - the value of the property
SLHWTEL_API SLresult SLhwTelProperties(SLVector *prop_names)
SLHWTEL_API SLresult SLhwTelReserveChannel(SLhwTelChn** channel)
SLHWTEL_API SLresult SLhwTelReleaseChannel(SLhwTelChn* channel)
SLHWTEL_API SLresult SLhwTelChnOpen(SLhwTelChn *channel)
SLHWTEL_API SLresult SLhwTelChnClose(SLhwTelChn *channel)
SLHWTEL_API SLresult SLhwTelChnAddCallback(SLtelEvent e, SLhwTelChn* channel, SLhwTelEventInfo *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
SLHWTEL_API SLresult SLhwTelChnRemoveCallback(SLtelEvent e, SLhwTelChn* channel, SLhwTelEventInfo *info)
channel - The channel on which to remove the callback.
info - in[x] The callback structure to remove.
SLHWTEL_API SLresult SLhwTelChnGetProperty(SLhwTelChn *channel, SLchar *prop_name, SLValue *value)
prop_name - the name of the property
value - out[x] the value of the property
SLHWTEL_API SLresult SLhwTelChnSetProperty(SLhwTelChn *channel, SLchar *prop_name, SLValue *value)
prop_name - the name of the property
value - the value of the property
SLHWTEL_API SLresult SLhwTelChnProperties(SLhwTelChn *channel, SLVector *prop_names)
prop_names - out[x] the set of available properties
define SLtelONHOOK 0 define SLtelOFFHOOK 1 define SLtelERROR 1 SLHWTEL_API SLresult SLhwTelChnConnect(SLhwTelChn* channel)
SLHWTEL_API SLresult SLhwTelChnDisconnect(SLhwTelChn* channel)
SLHWTEL_API SLresult SLhwTelChnDial(SLhwTelChn* channel, SLchar* dest, SLbool call_prog)
dest - The destination phone number of the transfer. This must be a
real phone number
call_prog - Indicates whether call progress detection is used.
SLHWTEL_API SLresult SLhwTelChnBridge(SLhwTelChn* chorig, SLhwTelChn* chdest)
chdest - out[x] The new channel which now is the second-half of the bridge
SLHWTEL_API SLresult SLhwTelChnTransfer(SLhwTelChn* channel, SLchar* destDialNum, SLbool monitorCall)
destDialNum - The dial number to transfer to.
MonitorCall - If set to true remain conferenced to the call. Otherwise
hang-up and let the transfer proceed with no further interaction.
SLHWTEL_API SLresult SLhwTelChnSendDTMF(SLhwTelChn* channel, SLchar *digits)
digits - 0-terminated string of DTMFs to send.
SLHWTEL_API SLresult SLhwTelChnPlayFile(SLhwTelChn* channel, SLchar *filename)
filename - The path of the file to be played.
SLHWTEL_API SLresult SLhwTelChnRecordFile(SLhwTelChn* 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