2015-09-27 23:25:22 +02:00
|
|
|
#ifndef MUMSI_PJSUACOMMUNICATOR_HPP
|
|
|
|
#define MUMSI_PJSUACOMMUNICATOR_HPP
|
|
|
|
|
|
|
|
#include "PjsuaMediaPort.hpp"
|
2015-09-29 02:26:45 +02:00
|
|
|
#include "AbstractCommunicator.hpp"
|
2015-09-27 23:25:22 +02:00
|
|
|
|
|
|
|
#include <pjmedia.h>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
namespace pjsua {
|
|
|
|
|
|
|
|
constexpr int SIP_PORT = 5060;
|
|
|
|
|
2015-09-29 02:26:45 +02:00
|
|
|
class PjsuaCommunicator : public AbstractCommunicator {
|
2015-09-27 23:25:22 +02:00
|
|
|
public:
|
2015-09-29 02:26:45 +02:00
|
|
|
PjsuaCommunicator(
|
|
|
|
SoundSampleQueue<SOUND_SAMPLE_TYPE> &inputQueue,
|
|
|
|
SoundSampleQueue<SOUND_SAMPLE_TYPE> &outputQueue,
|
|
|
|
std::string host,
|
|
|
|
std::string user,
|
|
|
|
std::string password);
|
2015-09-27 23:25:22 +02:00
|
|
|
|
|
|
|
~PjsuaCommunicator();
|
|
|
|
|
|
|
|
void loop();
|
|
|
|
|
|
|
|
private:
|
2015-09-29 02:26:45 +02:00
|
|
|
PjsuaMediaPort mediaPort;
|
2015-09-27 23:25:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //MUMSI_PJSUACOMMUNICATOR_HPP
|