mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8214 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef FREESWITCH_PYTHON_H
|
||||
#define FREESWITCH_PYTHON_H
|
||||
#ifndef FREESWITCH_LUA_H
|
||||
#define FREESWITCH_LUA_H
|
||||
|
||||
#include <switch_cpp.h>
|
||||
|
||||
@@ -10,7 +10,6 @@ void api_reply_delete(char *reply);
|
||||
|
||||
|
||||
class Session : public CoreSession {
|
||||
private:
|
||||
public:
|
||||
Session();
|
||||
Session(char *uuid);
|
||||
@@ -21,58 +20,12 @@ class Session : public CoreSession {
|
||||
virtual bool end_allow_threads();
|
||||
virtual void check_hangup_hook();
|
||||
virtual switch_status_t run_dtmf_callback(void *input, switch_input_type_t itype);
|
||||
void setInputCallback(char *cbfunc, char *funcargs);
|
||||
void setHangupHook(char *func);
|
||||
|
||||
switch_core_session_t *session;
|
||||
switch_channel_t *channel;
|
||||
unsigned int flags;
|
||||
int allocated;
|
||||
input_callback_state cb_state; // callback state, always pointed to by the buf
|
||||
// field in this->args
|
||||
switch_channel_state_t hook_state; // store hookstate for on_hangup callback
|
||||
|
||||
#if 0
|
||||
|
||||
int answer();
|
||||
int preAnswer();
|
||||
virtual void hangup(char *cause);
|
||||
void setVariable(char *var, char *val);
|
||||
const char *getVariable(char *var);
|
||||
int recordFile(char *file_name, int max_len=0, int silence_threshold=0, int silence_secs=0);
|
||||
void setCallerData(char *var, char *val);
|
||||
int originate(CoreSession *a_leg_session, char *dest, int timeout=60);
|
||||
void setDTMFCallback(void *cbfunc, char *funcargs);
|
||||
int speak(char *text);
|
||||
void set_tts_parms(char *tts_name, char *voice_name);
|
||||
int collectDigits(int timeout);
|
||||
int getDigits(char *dtmf_buf,
|
||||
switch_size_t buflen,
|
||||
switch_size_t maxdigits,
|
||||
char *terminators,
|
||||
char *terminator,
|
||||
int timeout);
|
||||
|
||||
int transfer(char *extensions, char *dialplan, char *context);
|
||||
int playAndGetDigits(int min_digits,
|
||||
int max_digits,
|
||||
int max_tries,
|
||||
int timeout,
|
||||
char *terminators,
|
||||
char *audio_files,
|
||||
char *bad_input_audio_files,
|
||||
char *dtmf_buf,
|
||||
char *digits_regex);
|
||||
|
||||
int streamFile(char *file, int starting_sample_count=0);
|
||||
int flushEvents();
|
||||
int flushDigits();
|
||||
int setAutoHangup(bool val);
|
||||
void setHangupHook(void *hangup_func);
|
||||
bool ready();
|
||||
void execute(char *app, char *data);
|
||||
char* get_uuid();
|
||||
const switch_input_args_t& get_cb_args();
|
||||
#endif
|
||||
|
||||
char *cb_function;
|
||||
char *cb_arg;
|
||||
char *hangup_func_str;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user