|
reSIProcate/DialogUsageManager
9694
|
#include "rutil/Logger.hxx"#include "resip/dum/MasterProfile.hxx"#include "resip/dum/DumFeature.hxx"#include "resip/dum/OutgoingEvent.hxx"#include "CommandLineParser.hxx"#include "RegEventClient.hxx"
Go to the source code of this file.
Classes | |
| class | FixMissingContact |
| class | OverrideContact |
| class | MyApp |
Defines | |
| #define | RESIPROCATE_SUBSYSTEM Subsystem::TEST |
Functions | |
| int | main (int argc, char **argv) |
| #define RESIPROCATE_SUBSYSTEM Subsystem::TEST |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 123 of file treg.cxx.
References client, resip::Log::initialize(), resip::CommandLineParser::mAor, resip::CommandLineParser::mContact, resip::CommandLineParser::mLogLevel, resip::CommandLineParser::mLogType, MyApp::overrideContact(), RegEventClient::run(), and RegEventClient::watchAor().
{
CommandLineParser clp(argc, argv);
Log::initialize(clp.mLogType, clp.mLogLevel, argv[0]);
SharedPtr<MasterProfile> profile(new MasterProfile);
NameAddr from(clp.mAor);
profile->setDefaultFrom(from);
MyApp client(profile);
// only necessary if behind a NAT
client.overrideContact(clp.mContact);
client.run();
Uri a1(clp.mAor);
client.watchAor(a1);
sleep(3600);
return 0;
}

1.7.5.1