mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
up
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12117 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
bab0728ae0
commit
2cb9db8c0f
11 files changed
+1883
-449
No files matched your search
+41
-1
@@ -3,6 +3,46 @@
|
||||
#include "esl_oop.h"
|
||||
%}
|
||||
|
||||
%include esl_oop.h
|
||||
class ESLevent {
|
||||
public:
|
||||
esl_event_t *event;
|
||||
char *serialized_string;
|
||||
int mine;
|
||||
ESLevent(const char *type, const char *subclass_name = NULL);
|
||||
virtual ~ESLevent();
|
||||
const char *serialize(const char *format = NULL);
|
||||
bool setPriority(esl_priority_t priority = ESL_PRIORITY_NORMAL);
|
||||
const char *getHeader(char *header_name);
|
||||
char *getBody(void);
|
||||
const char *getType(void);
|
||||
bool addBody(const char *value);
|
||||
bool addHeader(const char *header_name, const char *value);
|
||||
bool delHeader(const char *header_name);
|
||||
};
|
||||
|
||||
|
||||
|
||||
class ESLconnection {
|
||||
private:
|
||||
esl_handle_t handle;
|
||||
ESLevent *last_event_obj;
|
||||
public:
|
||||
ESLconnection(const char *host, const char *port, const char *password);
|
||||
ESLconnection(int socket);
|
||||
virtual ~ESLconnection();
|
||||
int connected();
|
||||
ESLevent *getInfo();
|
||||
esl_status_t send(const char *cmd);
|
||||
ESLevent *sendRecv(const char *cmd);
|
||||
esl_status_t sendEvent(ESLevent *send_me);
|
||||
ESLevent *recvEvent();
|
||||
ESLevent *recvEventTimed(int ms);
|
||||
esl_status_t filter(const char *header, const char *value);
|
||||
esl_status_t events(const char *etype, const char *value);
|
||||
esl_status_t execute(const char *app, const char *arg = NULL, const char *uuid = NULL);
|
||||
int setBlockingExecute(const char *val);
|
||||
int setEventLock(const char *val);
|
||||
};
|
||||
|
||||
void eslSetLogLevel(int level);
|
||||
|
||||
Reference in new issue
Block a user