2015-07-13 18:14:35 +02:00
|
|
|
#include <stdio.h>
|
2015-09-28 23:25:12 +02:00
|
|
|
#include "PjsuaCommunicator.hpp"
|
|
|
|
#include "PjsuaMediaPort.hpp"
|
|
|
|
#include "MumbleCommunicator.hpp"
|
2015-07-13 18:14:35 +02:00
|
|
|
|
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
#define SIP_DOMAIN "sip.antisip.com"
|
|
|
|
#define SIP_USER "melangtone"
|
|
|
|
#define SIP_PASSWD "b8DU9AZXbd9tVCWg"
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
#define MUMBLE_DOMAIN "1con.pl"
|
|
|
|
#define MUMBLE_USER "mumsi"
|
|
|
|
#define MUMBLE_PASSWD "kiwi"
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-07-20 21:09:22 +02:00
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
mumble::MumbleCommunicator mumbleCommunicator(MUMBLE_USER, MUMBLE_PASSWD, MUMBLE_DOMAIN);
|
2015-07-20 21:09:22 +02:00
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
pjsua::PjsuaMediaPort mediaPort;
|
|
|
|
pjsua::PjsuaCommunicator pjsuaCommunicator(SIP_DOMAIN, SIP_USER, SIP_PASSWD, mediaPort);
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-07-20 21:09:22 +02:00
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
pjsuaCommunicator.loop();
|
2015-07-20 21:09:22 +02:00
|
|
|
|
2015-09-28 23:25:12 +02:00
|
|
|
mumbleCommunicator.loop();
|
2015-07-13 18:14:35 +02:00
|
|
|
|
|
|
|
|
2015-07-20 21:09:22 +02:00
|
|
|
printf("Done\n");
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-07-20 21:09:22 +02:00
|
|
|
return 0;
|
2015-07-13 18:14:35 +02:00
|
|
|
}
|
|
|
|
|