mumsi/PjsuaCommunicator.hpp

36 lines
743 B
C++
Raw Normal View History

#ifndef MUMSI_PJSUACOMMUNICATOR_HPP
#define MUMSI_PJSUACOMMUNICATOR_HPP
#include "PjsuaMediaPort.hpp"
2015-09-29 02:26:45 +02:00
#include "AbstractCommunicator.hpp"
#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 {
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);
~PjsuaCommunicator();
void loop();
private:
2015-09-29 02:26:45 +02:00
PjsuaMediaPort mediaPort;
};
}
#endif //MUMSI_PJSUACOMMUNICATOR_HPP