< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] SIPIMP sample, basicCall and basicRegister with VS .NET 7.1


I tried to compile the SipImp application, basicCall and basicRegister test
applications under DUM.

Here are a few changes I had to make. First I made the SipIMP project "Use
MFC in a static library" otherwise I would get a hundred errors of multiply
defined symbols with resiprocate.lib.

In TuIM.hxx, line 206

I changed the #if 1 to #if 0:

...
   msg->setContents(body);
// CG: changed from #if 1 to #if 0
#if 0
   {
      // Compute the identity header.
...

Otherwise, the code would not compile, the linker being unable to resolve
"computeIdentify" which is only compiled if USE_SSL is defined.

In TimeLimitFifo.hxx, at line 95, I commented out the assert since it would
not resolve.

Also iI changed the VC 7 project file basicRegister_7_1.vc_proj to have the
following libs:

Ws2_32.lib
Dnsapi.lib
$(SolutionDir)\resiprocate\Debug\resiprocate.lib
$(SolutionDir)\contrib\ares\Debug\ares.lib
$(SolutionDir)\resiprocate\dum\Debug\dum.lib
Iphlpapi.lib

I changed basicCall_7_1.vc_proj as well to have the following libs:

Ws2_32.lib
Dnsapi.lib
$(SolutionDir)\resiprocate\Debug\resiprocate.lib
$(SolutionDir)\contrib\ares\Debug\ares.lib
$(SolutionDir)\resiprocate\dum\Debug\dum.lib
Iphlpapi.lib

In basicRegister.cxx I added

      // Called when all of my bindings have been removed
  virtual void onRemoved(ClientRegistrationHandle)
  {
  }

to the Client class.

Due to changes in the DUM, the beginning of the main( ) in
basicRegister.cxx becomes:
...

    Log::initialize(Log::Cout, (resip::Log::Level)level, argv[0]);

//   SipStack clientStack;
//   clientStack.addTransport(UDP, 15060);

   Client client;
   Profile profile;
   auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager(profile));

   DialogUsageManager clientDum;
   clientDum.addTransport(UDP, 15060);
//   DialogUsageManager clientDum(clientStack);
   clientDum.setProfile(&profile);

   clientDum.setClientRegistrationHandler(&client);
   clientDum.setClientAuthManager(clientAuth);
   clientDum.getProfile()->setDefaultRegistrationTime(70);
...

Also, I noticed that SipImp would not send PUBLISH reports unless a state
agent is added. In this case should the state agent be the server where
SipImp registered?

Thanks,
Christian