public class Call extends BaseModelObject
| Modifier and Type | Class and Description |
|---|---|
class |
Call.CallAudioBuilder |
class |
Call.CallGatherBuilder |
class |
Call.CallTransferBuilder |
client, dateFormat, parentUri, properties| Constructor and Description |
|---|
Call(BandwidthRestClient client,
String parentUri,
org.json.simple.JSONObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
answerOnIncoming()
Answer an incoming phone call.
|
Call.CallGatherBuilder |
callGatherBuilder()
Creates a new builder for collecting a series of DTMF digits from a phone call with an optional prompt.
|
Call.CallTransferBuilder |
callTransferBuilder(String transferTo)
Creates builder for transferring call.
|
Date |
getActiveTime() |
String |
getCallbackUrl() |
Long |
getChargeableDuration() |
String |
getDirection() |
Date |
getEndTime() |
Event |
getEvent(String eventId)
Gets information about one call event.
|
String |
getEvents() |
List<Event> |
getEventsList()
Gets the events that occurred during the call.
|
String |
getFrom() |
Gather |
getGather(String gatherId)
Gets the gather DTMF parameters and results.
|
List<Recording> |
getRecordings()
Retrieve all recordings related to the call.
|
Date |
getStartTime() |
String |
getState() |
String |
getTo() |
void |
hangUp()
Hang up a phone call.
|
boolean |
isRecordingEnabled() |
Call.CallAudioBuilder |
newAudioBuilder()
Creates new builder for playing an audio file or speaking a sentence in a call.
|
void |
recordingOff()
Turn call recording OFF.
|
void |
recordingOn()
Turn call recording ON.
|
void |
rejectIncoming()
Reject an incoming phone call
|
void |
sendDtmf(String dtmf)
Sends DTMF.
|
void |
stopAudioFilePlaying()
Stop an audio file playing.
|
void |
stopSentence()
Stop an audio sentence.
|
String |
toString() |
getId, getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getUri, putProperty, toMap, updatePropertiespublic Call(BandwidthRestClient client, String parentUri, org.json.simple.JSONObject jsonObject)
public String getDirection()
public String getState()
public String getFrom()
public String getTo()
public String getCallbackUrl()
public String getEvents()
public Date getStartTime()
public Date getActiveTime()
public Date getEndTime()
public Long getChargeableDuration()
public boolean isRecordingEnabled()
public List<Recording> getRecordings() throws IOException
IOExceptionpublic List<Event> getEventsList() throws IOException
IOExceptionpublic Event getEvent(String eventId) throws IOException
eventId - event idIOExceptionpublic void hangUp()
throws IOException
IOExceptionpublic void answerOnIncoming()
throws IOException
IOExceptionpublic void rejectIncoming()
throws IOException
IOExceptionpublic void recordingOn()
throws IOException
IOExceptionpublic void recordingOff()
throws IOException
IOExceptionpublic Call.CallTransferBuilder callTransferBuilder(String transferTo)
call.callTransferBuilder("{number}").sentence("hello").create();transferTo - number for transferringpublic Call.CallAudioBuilder newAudioBuilder()
call.newAudioBuilder().sentence("Hello").create();public void stopAudioFilePlaying()
throws IOException
IOExceptionpublic void stopSentence()
throws IOException
IOExceptionpublic void sendDtmf(String dtmf) throws IOException
dtmf - DTMF valueIOExceptionpublic Call.CallGatherBuilder callGatherBuilder()
call.callGatherBuilder().maxDigits(5).promptFileUrl("url_to_file").create();public Gather getGather(String gatherId) throws IOException
gatherId - gather idIOExceptionCopyright © 2014. All rights reserved.