// // Created by lilin on 2019-12-10. // #ifndef BARESIP_BARESIP_H #define BARESIP_BARESIP_H #include #include "JavaListener.h" #include "pthread.h" #include "../AndroidLog.h" #include "FrameQueue.h" #include "re.h" #include "rem.h" #include "baresip.h" extern "C" { #include #include #include #include #include #include #include #include #include } class BaresipObj { public: JavaListener *javaListener; pthread_t baresipthread; int baresipstate=0;//1 is ok struct ua *bareua=NULL; struct call *barecall=NULL; struct play *bareplay = NULL; FrameQueue *frameQueue=NULL; public: BaresipObj(JavaListener *javaListener); ~BaresipObj(); void startbaresip(); void baresipreg(const char *sipaddress); void baresipjie(); void baresipgua(); int baresipcall(const char *sipaddress); int baresipcallv(const char *sipaddress); int bareisreg(); void stopbaresip(); }; #endif //BARESIP_BARESIP_H