Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] How to register user to the proxy...?


I am a new user of resiprocate.
How do I register my user to a proxy? The example [basicRegister.cxx] does not show this, neither I could not find any direct ways.
 
The sample does not accept proxyURI as one of the arguments...so where is it trying to register to?
thanks in advance...
===========================================================================
 
 
excerpt from sample:

SipStack stack;

#endif

/*DnsStub::NameserverList additional;

GenericIPAddress ip(

additional.push_back(

SipStack stack(*/

DialogUsageManager clientDum(stack);

SharedPtr<MasterProfile> profile(new MasterProfile);

auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager);

ClientHandler clientHandler;

clientDum.addTransport(UDP, 5060, V4);

// clientDum.addTransport(UDP, 10000 + rand()&0x7fff, V6);

//clientDum.addTransport(TCP, 10000 + rand()&0x7fff, V4);

// clientDum.addTransport(TCP, 10000 + rand()&0x7fff, V6);

#ifdef USE_SSL

clientDum.addTransport(TLS, 10000 + rand()&0x7fff, V4);

// clientDum.addTransport(TLS, 10000 + rand()&0x7fff, V6);

#endif

clientDum.setMasterProfile(profile);

clientDum.setClientRegistrationHandler(&clientHandler);

clientDum.setClientAuthManager(clientAuth);

clientDum.getMasterProfile()->setDefaultRegistrationTime(70);

// keep alive test.

auto_ptr<KeepAliveManager> keepAlive(new KeepAliveManager);

clientDum.setKeepAliveManager(keepAlive);

clientDum.getMasterProfile()->setDefaultFrom(userAor);

profile->setDigestCredential(userAor.uri().host(),

userAor.uri().user(),

passwd);

SharedPtr<SipMessage> regMessage = clientDum.makeRegistration(userAor);

NameAddr contact;

clientDum.send( regMessage );