C# Class FreeSWITCH.Native.CoreSession

Inheritance: IDisposable
Afficher le fichier Open project: sangoma/freeswitch Class Usage Examples

Protected Properties

Свойство Type Description
swigCMemOwn bool

Méthodes publiques

Méthode Description
Answer ( ) : int
CollectDigits ( int abs_timeout ) : int
CollectDigits ( int digit_timeout, int abs_timeout ) : int
Dispose ( ) : void
Execute ( string app, string data ) : void
GetDigits ( int maxdigits, string terminators, int timeout ) : string
GetDigits ( int maxdigits, string terminators, int timeout, int interdigit ) : string
GetPrivate ( string var ) : SWIGTYPE_p_void
GetUuid ( ) : string
GetVariable ( string var ) : string
Hangup ( string cause ) : void
PlayAndGetDigits ( int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout, string transfer_on_failure ) : string
Ready ( ) : bool
RecordFile ( string file_name, int time_limit, int silence_threshold, int silence_hits ) : int
Say ( string tosay, string module_name, string say_type, string say_method, string say_gender ) : void
SayPhrase ( string phrase_name, string phrase_data, string phrase_lang ) : void
SetAutoHangup ( bool val ) : int
SetPrivate ( string var, SWIGTYPE_p_void val ) : void
SetTtsParameters ( string tts_name, string voice_name ) : void
SetVariable ( string var, string val ) : void
Speak ( string text ) : int
StreamFile ( string file, int starting_sample_count ) : int
Transfer ( string extension, string dialplan, string context ) : int
answered ( ) : bool
begin_allow_threads ( ) : bool
bridged ( ) : bool
check_hangup_hook ( ) : void
destroy ( ) : void
end_allow_threads ( ) : bool
flushDigits ( ) : int
flushEvents ( ) : int
getState ( ) : string
getXMLCDR ( ) : string
get_cb_args ( ) : switch_input_args_t
hangupCause ( ) : string
hangupState ( ) : void
insertFile ( string file, string insert_file, int sample_point ) : int
mediaReady ( ) : bool
preAnswer ( ) : int
read ( int min_digits, int max_digits, string prompt_audio_file, int timeout, string valid_terminators, int digit_timeout ) : string
sendEvent ( Event sendME ) : void
setEventData ( Event e ) : void
sleep ( int ms, int sync ) : int
waitForAnswer ( CoreSession calling_session ) : void

Méthodes protégées

Méthode Description
originate ( CoreSession a_leg_session, string dest, int timeout, switch_state_handler_table handlers ) : int

Private Methods

Méthode Description
CoreSession ( IntPtr cPtr, bool cMemoryOwn ) : System
getCPtr ( CoreSession obj ) : HandleRef

Method Details

Answer() public méthode

public Answer ( ) : int
Résultat int

CollectDigits() public méthode

public CollectDigits ( int abs_timeout ) : int
abs_timeout int
Résultat int

CollectDigits() public méthode

public CollectDigits ( int digit_timeout, int abs_timeout ) : int
digit_timeout int
abs_timeout int
Résultat int

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Execute() public méthode

public Execute ( string app, string data ) : void
app string
data string
Résultat void

GetDigits() public méthode

public GetDigits ( int maxdigits, string terminators, int timeout ) : string
maxdigits int
terminators string
timeout int
Résultat string

GetDigits() public méthode

public GetDigits ( int maxdigits, string terminators, int timeout, int interdigit ) : string
maxdigits int
terminators string
timeout int
interdigit int
Résultat string

GetPrivate() public méthode

public GetPrivate ( string var ) : SWIGTYPE_p_void
var string
Résultat SWIGTYPE_p_void

GetUuid() public méthode

public GetUuid ( ) : string
Résultat string

GetVariable() public méthode

public GetVariable ( string var ) : string
var string
Résultat string

Hangup() public méthode

public Hangup ( string cause ) : void
cause string
Résultat void

PlayAndGetDigits() public méthode

public PlayAndGetDigits ( int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout, string transfer_on_failure ) : string
min_digits int
max_digits int
max_tries int
timeout int
terminators string
audio_files string
bad_input_audio_files string
digits_regex string
var_name string
digit_timeout int
transfer_on_failure string
Résultat string

Ready() public méthode

public Ready ( ) : bool
Résultat bool

RecordFile() public méthode

public RecordFile ( string file_name, int time_limit, int silence_threshold, int silence_hits ) : int
file_name string
time_limit int
silence_threshold int
silence_hits int
Résultat int

Say() public méthode

public Say ( string tosay, string module_name, string say_type, string say_method, string say_gender ) : void
tosay string
module_name string
say_type string
say_method string
say_gender string
Résultat void

SayPhrase() public méthode

public SayPhrase ( string phrase_name, string phrase_data, string phrase_lang ) : void
phrase_name string
phrase_data string
phrase_lang string
Résultat void

SetAutoHangup() public méthode

public SetAutoHangup ( bool val ) : int
val bool
Résultat int

SetPrivate() public méthode

public SetPrivate ( string var, SWIGTYPE_p_void val ) : void
var string
val SWIGTYPE_p_void
Résultat void

SetTtsParameters() public méthode

public SetTtsParameters ( string tts_name, string voice_name ) : void
tts_name string
voice_name string
Résultat void

SetVariable() public méthode

public SetVariable ( string var, string val ) : void
var string
val string
Résultat void

Speak() public méthode

public Speak ( string text ) : int
text string
Résultat int

StreamFile() public méthode

public StreamFile ( string file, int starting_sample_count ) : int
file string
starting_sample_count int
Résultat int

Transfer() public méthode

public Transfer ( string extension, string dialplan, string context ) : int
extension string
dialplan string
context string
Résultat int

answered() public méthode

public answered ( ) : bool
Résultat bool

begin_allow_threads() public méthode

public begin_allow_threads ( ) : bool
Résultat bool

bridged() public méthode

public bridged ( ) : bool
Résultat bool

check_hangup_hook() public méthode

public check_hangup_hook ( ) : void
Résultat void

destroy() public méthode

public destroy ( ) : void
Résultat void

end_allow_threads() public méthode

public end_allow_threads ( ) : bool
Résultat bool

flushDigits() public méthode

public flushDigits ( ) : int
Résultat int

flushEvents() public méthode

public flushEvents ( ) : int
Résultat int

getState() public méthode

public getState ( ) : string
Résultat string

getXMLCDR() public méthode

public getXMLCDR ( ) : string
Résultat string

get_cb_args() public méthode

public get_cb_args ( ) : switch_input_args_t
Résultat switch_input_args_t

hangupCause() public méthode

public hangupCause ( ) : string
Résultat string

hangupState() public méthode

public hangupState ( ) : void
Résultat void

insertFile() public méthode

public insertFile ( string file, string insert_file, int sample_point ) : int
file string
insert_file string
sample_point int
Résultat int

mediaReady() public méthode

public mediaReady ( ) : bool
Résultat bool

originate() protected méthode

protected originate ( CoreSession a_leg_session, string dest, int timeout, switch_state_handler_table handlers ) : int
a_leg_session CoreSession
dest string
timeout int
handlers switch_state_handler_table
Résultat int

preAnswer() public méthode

public preAnswer ( ) : int
Résultat int

read() public méthode

public read ( int min_digits, int max_digits, string prompt_audio_file, int timeout, string valid_terminators, int digit_timeout ) : string
min_digits int
max_digits int
prompt_audio_file string
timeout int
valid_terminators string
digit_timeout int
Résultat string

sendEvent() public méthode

public sendEvent ( Event sendME ) : void
sendME Event
Résultat void

setEventData() public méthode

public setEventData ( Event e ) : void
e Event
Résultat void

sleep() public méthode

public sleep ( int ms, int sync ) : int
ms int
sync int
Résultat int

waitForAnswer() public méthode

public waitForAnswer ( CoreSession calling_session ) : void
calling_session CoreSession
Résultat void

Property Details

swigCMemOwn protected_oe property

protected bool swigCMemOwn
Résultat bool