Свойство | Тип | Описание | |
---|---|---|---|
ModifyXML | string |
Метод | Описание | |
---|---|---|
CreateXml ( ) : string |
Create valid TelApi XML response
|
|
Dial ( |
The Dial element starts an outgoing dial from the current call.
|
|
Gather ( |
The Gather element allows callers to input digits to the call using their keypads which are then sent via POST or GET to a URL for further processing.
|
|
GetSpeech ( |
The GetSpeech element is used to translate a callers voice into text.
|
|
Hangup ( ) : |
The Hangup element will hangup the current call.
|
|
Hangup ( long schedule ) : |
The Hangup element will hangup the current call.
|
|
Pause ( ) : |
The Pause element will pause the call, holding for the number of seconds set by the length attribute.
|
|
Pause ( long length ) : |
The Pause element will pause the call, holding for the number of seconds set by the length attribute.
|
|
Play ( string resource ) : |
The Play element plays an mp3 file for the caller.
|
|
Play ( string resource, long loop ) : |
The Play element plays an mp3 file for the caller.
|
|
Record ( |
The Record element is used to record audio during a call.
|
|
Record ( string action ) : |
The Record element is used to record audio during a call.
|
|
Record ( string action, HttpMethod method, long timeout, string finishOnKey, long maxLength, bool transcribe, string transcribeCallback, bool playBeep, bool bothLegs, RecordingFileFormat fileFormat ) : |
The Record element is used to record audio during a call.
|
|
Redirect ( string url ) : |
The Redirect element directs the call to another InboundXML document.
|
|
Redirect ( string url, HttpMethod method ) : |
The Redirect element directs the call to another InboundXML document.
|
|
Reject ( ) : |
The Reject element will reject an incoming call.
|
|
Reject ( RejectReason reason ) : |
The Reject element will reject an incoming call.
|
|
Response ( ) : System | ||
Say ( string text ) : |
The Say element reads text to the caller using a text-to-speech engine.
|
|
Say ( string text, Voice voice, long loop ) : |
The Say element reads text to the caller using a text-to-speech engine.
|
|
Sms ( string text, string to, string from ) : |
The Sms element can be used to send SMS messages.
|
|
Sms ( string text, string to, string from, string action, HttpMethod method, string statusCallback ) : |
The Sms element can be used to send SMS messages.
|
Метод | Описание | |
---|---|---|
ModifyXML ( System.Xml.Linq.XDocument result ) : string |
Remove Yaxlib namespace and attributes from XML tree which were generated during XML serialization
|
public Dial ( |
||
dial | Dial element | |
Результат |
public Gather ( |
||
gather | Gather object | |
Результат |
public GetSpeech ( |
||
speech | GetSpeech object. | |
Результат |
public Hangup ( long schedule ) : |
||
schedule | long | Specifies in seconds when a hangup should occur during a call. |
Результат |
public Pause ( long length ) : |
||
length | long | The length in seconds the pause should be. |
Результат |
public Play ( string resource ) : |
||
resource | string | Resource URL of audio file to play |
Результат |
public Play ( string resource, long loop ) : |
||
resource | string | Resource URL of audio file to play |
loop | long | The amount of times the PlayW should be repeated. 0 indicates an infinite loop. |
Результат |
public Record ( |
||
recordOptions | Record options | |
Результат |
public Record ( string action ) : |
||
action | string | URL where some parameters specific to Record will be sent for further processing. |
Результат |
public Record ( string action, HttpMethod method, long timeout, string finishOnKey, long maxLength, bool transcribe, string transcribeCallback, bool playBeep, bool bothLegs, RecordingFileFormat fileFormat ) : |
||
action | string | URL where some parameters specific to Record will be sent for further processing. |
method | HttpMethod | Specifies the method to use when requesting the action or transcribeCallback URL. |
timeout | long | The number of seconds Record should wait during silence before ending. |
finishOnKey | string | The key a caller can press to end the Record. |
maxLength | long | The maximum length in seconds a recording should be. |
transcribe | bool | Boolean value specifying if the recording should be transcribed. |
transcribeCallback | string | URL where the recording transcription will be sent. |
playBeep | bool | Boolean value specifying if a beep should be played when the recording begins. |
bothLegs | bool | Boolean value specifying if both call legs should be recorded. |
fileFormat | RecordingFileFormat | The recording file format. Can be mp3 or wav. Default is mp3 |
Результат |
public Redirect ( string url ) : |
||
url | string | URL where redirection will occur |
Результат |
public Redirect ( string url, HttpMethod method ) : |
||
url | string | URL where redirection will occur |
method | HttpMethod | Method used to request the InboundXML doucment the call is being redirected to. |
Результат |
public Reject ( RejectReason reason ) : |
||
reason | RejectReason | The reason to list as why the call was rejected. |
Результат |
public Say ( string text ) : |
||
text | string | Text to speech |
Результат |
public Say ( string text, Voice voice, long loop ) : |
||
text | string | Text to speech |
voice | Voice | The type of voice that will read the text to caller. |
loop | long | The amount of times the spoken text should be repeated. 0 indicates an infinite loop. |
Результат |
public Sms ( string text, string to, string from ) : |
||
text | string | Message text. Max 160 characters |
to | string | The phone number that will receive the SMS message. |
from | string | The number that will display as sending the SMS message. |
Результат |
public Sms ( string text, string to, string from, string action, HttpMethod method, string statusCallback ) : |
||
text | string | Message text. Max 160 characters |
to | string | The phone number that will receive the SMS message. |
from | string | The number that will display as sending the SMS message. |
action | string | URL where paramaters specific to |
method | HttpMethod | Method used to request the action URL. |
statusCallback | string | URL where the status of the SMS can be sent. |
Результат |