reSIProcate/DialogUsageManager  9694
Classes | Defines | Functions
treg.cxx File Reference
#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"
Include dependency graph for treg.cxx:

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 Documentation

#define RESIPROCATE_SUBSYSTEM   Subsystem::TEST

Definition at line 11 of file treg.cxx.


Function Documentation

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;
}

Here is the call graph for this function: