C# Class FreeSWITCH.Native.CoreSession

Inheritance: IDisposable
显示文件 Open project: sangoma/freeswitch Class Usage Examples

Protected Properties

Property Type Description
swigCMemOwn bool

Public Methods

Method 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

Protected Methods

Method Description
originate ( CoreSession a_leg_session, string dest, int timeout, switch_state_handler_table handlers ) : int

Private Methods

Method Description
CoreSession ( IntPtr cPtr, bool cMemoryOwn ) : System
getCPtr ( CoreSession obj ) : HandleRef

Method Details

Answer() public method

public Answer ( ) : int
return int

CollectDigits() public method

public CollectDigits ( int abs_timeout ) : int
abs_timeout int
return int

CollectDigits() public method

public CollectDigits ( int digit_timeout, int abs_timeout ) : int
digit_timeout int
abs_timeout int
return int

Dispose() public method

public Dispose ( ) : void
return void

Execute() public method

public Execute ( string app, string data ) : void
app string
data string
return void

GetDigits() public method

public GetDigits ( int maxdigits, string terminators, int timeout ) : string
maxdigits int
terminators string
timeout int
return string

GetDigits() public method

public GetDigits ( int maxdigits, string terminators, int timeout, int interdigit ) : string
maxdigits int
terminators string
timeout int
interdigit int
return string

GetPrivate() public method

public GetPrivate ( string var ) : SWIGTYPE_p_void
var string
return SWIGTYPE_p_void

GetUuid() public method

public GetUuid ( ) : string
return string

GetVariable() public method

public GetVariable ( string var ) : string
var string
return string

Hangup() public method

public Hangup ( string cause ) : void
cause string
return void

PlayAndGetDigits() public method

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
return string

Ready() public method

public Ready ( ) : bool
return bool

RecordFile() public method

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
return int

Say() public method

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
return void

SayPhrase() public method

public SayPhrase ( string phrase_name, string phrase_data, string phrase_lang ) : void
phrase_name string
phrase_data string
phrase_lang string
return void

SetAutoHangup() public method

public SetAutoHangup ( bool val ) : int
val bool
return int

SetPrivate() public method

public SetPrivate ( string var, SWIGTYPE_p_void val ) : void
var string
val SWIGTYPE_p_void
return void

SetTtsParameters() public method

public SetTtsParameters ( string tts_name, string voice_name ) : void
tts_name string
voice_name string
return void

SetVariable() public method

public SetVariable ( string var, string val ) : void
var string
val string
return void

Speak() public method

public Speak ( string text ) : int
text string
return int

StreamFile() public method

public StreamFile ( string file, int starting_sample_count ) : int
file string
starting_sample_count int
return int

Transfer() public method

public Transfer ( string extension, string dialplan, string context ) : int
extension string
dialplan string
context string
return int

answered() public method

public answered ( ) : bool
return bool

begin_allow_threads() public method

public begin_allow_threads ( ) : bool
return bool

bridged() public method

public bridged ( ) : bool
return bool

check_hangup_hook() public method

public check_hangup_hook ( ) : void
return void

destroy() public method

public destroy ( ) : void
return void

end_allow_threads() public method

public end_allow_threads ( ) : bool
return bool

flushDigits() public method

public flushDigits ( ) : int
return int

flushEvents() public method

public flushEvents ( ) : int
return int

getState() public method

public getState ( ) : string
return string

getXMLCDR() public method

public getXMLCDR ( ) : string
return string

get_cb_args() public method

public get_cb_args ( ) : switch_input_args_t
return switch_input_args_t

hangupCause() public method

public hangupCause ( ) : string
return string

hangupState() public method

public hangupState ( ) : void
return void

insertFile() public method

public insertFile ( string file, string insert_file, int sample_point ) : int
file string
insert_file string
sample_point int
return int

mediaReady() public method

public mediaReady ( ) : bool
return bool

originate() protected method

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
return int

preAnswer() public method

public preAnswer ( ) : int
return int

read() public method

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
return string

sendEvent() public method

public sendEvent ( Event sendME ) : void
sendME Event
return void

setEventData() public method

public setEventData ( Event e ) : void
e Event
return void

sleep() public method

public sleep ( int ms, int sync ) : int
ms int
sync int
return int

waitForAnswer() public method

public waitForAnswer ( CoreSession calling_session ) : void
calling_session CoreSession
return void

Property Details

swigCMemOwn protected_oe property

protected bool swigCMemOwn
return bool