PjsuaCommunicator.hpp 603 B

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