PjsuaCommunicator.hpp 743 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef MUMSI_PJSUACOMMUNICATOR_HPP
  2. #define MUMSI_PJSUACOMMUNICATOR_HPP
  3. #include "PjsuaMediaPort.hpp"
  4. #include "AbstractCommunicator.hpp"
  5. #include <pjmedia.h>
  6. #include <string>
  7. #include <stdexcept>
  8. namespace pjsua {
  9. constexpr int SIP_PORT = 5060;
  10. class PjsuaCommunicator : public AbstractCommunicator {
  11. public:
  12. PjsuaCommunicator(
  13. SoundSampleQueue<SOUND_SAMPLE_TYPE> &inputQueue,
  14. SoundSampleQueue<SOUND_SAMPLE_TYPE> &outputQueue,
  15. std::string host,
  16. std::string user,
  17. std::string password);
  18. ~PjsuaCommunicator();
  19. void loop();
  20. private:
  21. PjsuaMediaPort mediaPort;
  22. };
  23. }
  24. #endif //MUMSI_PJSUACOMMUNICATOR_HPP