238c0d96a1cc838d39e788270407e90da9084d20
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
6) #ifndef BLINKER_SIPPHONE_H
7) #define BLINKER_SIPPHONE_H
8) 
9) #include <condition_variable>
10) #include <mutex>
11) #include <string>
12) #include <thread>
13) 
14) #include "File.h"
15) #include "Module.h"
16) #include "NameFile.h"
17) #include "OpConn.h"
18) #include "OpConnIf.h"
19) #include "Time.h"
20) #include "TimeCallee.h"
21) 
22) namespace Blinker {
23) 
24) /// SIP phone connector
25) class SipPhone: public Module, public OpConnIf, public TimeCallee
26) {
27) public:
28)   /// configuration data for worker
29)   struct ConfigData {
30)     std::string soundDir; ///< directory of sound files
31)     std::string logFileName; ///< base name of log file
32)   };
33)   /// data shared between linphone thread and main Blinker thread
34)   struct SharedData {
Stefan Schuermans fix liblinphone threading i...

Stefan Schuermans authored 5 years ago

35)     /// protection for this structure
36)     std::mutex mtx;
37)     /// worker threads waits on this condition, related mutex is g_mtx
38)     std::condition_variable cond;