mumsi/main.cpp

33 lines
681 B
C++
Raw Normal View History

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