Date Index | Next by Date > | |
Thread Index | Next in Thread > |
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_SSLclientDum.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 );