|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.telapi.api.inboundxml.elements.Dial
@XStreamConverter(value=com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter.class,
strings="number")
public class Dial
| Constructor Summary | |
|---|---|
protected |
Dial()
|
| Method Summary | |
|---|---|
Dial |
conference(ConferenceParameters params)
Convenience method for creating a Conference element. |
Dial |
conference(String conferenceName)
Convenience method for creating a Conference element. |
Dial |
conference(String conferenceName,
Boolean muted,
Boolean beep,
Boolean startConferenceOnEnter,
Boolean endConferenceOnExit,
Long maxParticipants,
String waitUrl,
HttpMethod waitMethod,
Boolean hangupOnStar,
String callbackUrl,
HttpMethod callbackMethod,
String waitSound,
HttpMethod waitSoundMethod,
String digitsMatch,
Boolean stayAlone)
Appends a conference element to the dial element. |
static Dial |
createDial()
Convenience method for creating a Dial element. |
static Dial |
createDial(DialParameters params)
Convenience method for creating a Dial element. |
static Dial |
createDial(String number)
Convenience method for creating a Dial element. |
static Dial |
createDial(String number,
String action,
HttpMethod method,
Long timeout,
Boolean hangupOnStar,
Long timeLimit,
String callerId,
Boolean hideCallerId,
String dialMusic,
String callbackUrl,
HttpMethod callbackMethod,
Boolean confirmSound,
String digitsMatch,
Boolean straightToVm,
String heartbeatUrl,
HttpMethod heartbeatMethod,
String forwardedFrom)
Creates a new Dial element. |
Dial |
number(String number,
String sendDigits,
String url,
HttpMethod callbackMethod)
Creates a Number element. |
Dial |
sip(String sipAddress)
Convenience method for creating a new Sip element. |
Dial |
sip(String sipAddress,
String sendDigits,
String url,
HttpMethod method)
The Sip element is nested within the Dial element, and is used to call to sip addresses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Dial()
| Method Detail |
|---|
public static Dial createDial(String number,
String action,
HttpMethod method,
Long timeout,
Boolean hangupOnStar,
Long timeLimit,
String callerId,
Boolean hideCallerId,
String dialMusic,
String callbackUrl,
HttpMethod callbackMethod,
Boolean confirmSound,
String digitsMatch,
Boolean straightToVm,
String heartbeatUrl,
HttpMethod heartbeatMethod,
String forwardedFrom)
number - The number which is to be dialed. If used, no other element
can be appended to the Dial element.action - URL where some parameters specific to Dial will be sent for
further processing. The calling party can be redirected here
upon the hang up of the B leg caller.method - Method used to request the action URL. Defaults to POST.timeout - The number of seconds calls made with hangupOnStar - Boolean value specifying if pressing * should end the dial.
Defaults to false.timeLimit - The duration in seconds a call made through callerId - Number to display as calling. Defaults to the ID of phone
being used. Defaults to the caller's caller ID.hideCallerId - Boolean value specifying if the caller ID should be hidden or
not. Defaults to false.dialMusic - URL containing an audio file that can be played during the
dial.callbackUrl - URL requested once the dialed call connects.callbackMethod - Method used to request the callback URL. Defaults to POST.confirmSound - Boolean value specifying if a sound should play when dial is
successful. Defaults to false.digitsMatch - Specifies digits that TelAPI should listen for and send to the
callbackUrl if a caller inputs them. Separate additional
digits or digit patterns with a comma. Allowed values are
digits, # and *.straightToVm - Boolean value specifying if call should be redirected to voice
mail immediately. Defaults to false.heartbeatUrl - A URL TelAPI can request every 60 seconds during the call to
notify of elapsed time and pass other general information.heartbeatMethod - Method used to request the heartbeat URL. Defaults to POST.forwardedFrom - Specifies the number to list the call as forwarded from.
public static Dial createDial(DialParameters params)
params - The parameters from which the Dial element is created.
#createDial(String, String, HttpMethod, Long, Boolean, Long, String, Boolean, String, String, String, HttpMethod, Boolean, String, Boolean, String, HttpMethod, String)public static Dial createDial(String number)
number - The number to dial.
#createDial(String, String, HttpMethod, Long, Boolean, Long, String, Boolean, String, String, String, HttpMethod, Boolean, String, Boolean, String, HttpMethod, String)public static Dial createDial()
#createDial(String, String, HttpMethod, Long, Boolean, Long, String, Boolean, String, String, String, HttpMethod, Boolean, String, Boolean, String, HttpMethod, String)
public Dial number(String number,
String sendDigits,
String url,
HttpMethod callbackMethod)
number - The number to be called (required).sendDigits - Specifies which DTFM tones to play to the called party. w
indicates a half second pause.url - URL that the called party can be directed to before the call
beings.callbackMethod - Method used to request the url. Defaults to POST.
public Dial conference(String conferenceName,
Boolean muted,
Boolean beep,
Boolean startConferenceOnEnter,
Boolean endConferenceOnExit,
Long maxParticipants,
String waitUrl,
HttpMethod waitMethod,
Boolean hangupOnStar,
String callbackUrl,
HttpMethod callbackMethod,
String waitSound,
HttpMethod waitSoundMethod,
String digitsMatch,
Boolean stayAlone)
conferenceName - The conference name (required).muted - Boolean value specifying if the conference should be muted.
Defaults to false.beep - Boolean value specifying if a beep should play upon entrance
to conference. Defaults to false.startConferenceOnEnter - Boolean value specifying if conference should begin upon
entrance. Defaults to true.endConferenceOnExit - Boolean value specifying if conference should begin upon exit.
Defaults to true.maxParticipants - The maximum number of participants allowed in the conference
call. Defaults to 40.waitUrl - URL conference participants can be sent to while they wait for
entrance into the conference.waitMethod - Method used to request waitUrl. Defaults to POST.hangupOnStar - Boolean value specifying if pressing * should end the
conference. Defaults to false.callbackUrl - URL where some parameters specific to Conference will be sent
once it is completed.callbackMethod - Method used to request the callback URL. Defaults to POST.waitSound - URL to sound that can be played while waiting to enter the
conference.waitSoundMethod - Method used to request the waitsound URL. Defaults to POST.digitsMatch - Specifies digits that TelAPI should listen for and send to the
callbackUrl if a caller inputs them. Seperate additional
digits or digit patterns with a comma. Can be a digit, # or *.stayAlone - Boolean value specifying if the caller should stay alone in
the conference call. Defaults to true.
public Dial conference(String conferenceName)
conferenceName - The name of the created Conference.
conference(String, Boolean, Boolean, Boolean, Boolean, Long, String, HttpMethod, Boolean, String, HttpMethod, String, HttpMethod, String, Boolean)public Dial conference(ConferenceParameters params)
params - The parameters from which the Conference element is created.
conference(String, Boolean, Boolean, Boolean, Boolean, Long, String, HttpMethod, Boolean, String, HttpMethod, String, HttpMethod, String, Boolean)
public Dial sip(String sipAddress,
String sendDigits,
String url,
HttpMethod method)
sipAddress - The sip address (required).sendDigits - Specifies which DTFM tones to play to the called party. w
indicates a half second pause. Allowed values are numbers, and
w.url - URL that the called party can be directed to before the call
beings.method - Method used to request the url. Defaults to POST.
public Dial sip(String sipAddress)
sipAddress - The sip address (required).
sip(String, String, String, HttpMethod)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||