435
463
_regSession = iax_session_new();
440
_debug ("IAX Sending registration to %s with user %s", account->getHostname().c_str() , account->getUsername().c_str());
468
_debug ("IAX: Sending registration to %s with user %s", account->getHostname().c_str() , account->getUsername().c_str());
441
469
int val = iax_register (_regSession, account->getHostname().data(), account->getUsername().data(), account->getPassword().data(), 120);
443
471
// set the time-out to 15 seconds, after that, resend a registration request.
445
473
_nextRefreshStamp = time (NULL) + 10;