Skip to content
Snippets Groups Projects
Commit fd87e1d6 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

IAX: Fix new registration when account updated.

parent 669cebe9
No related branches found
No related tags found
No related merge requests found
...@@ -397,12 +397,15 @@ IAXVoIPLink::sendRegister() ...@@ -397,12 +397,15 @@ IAXVoIPLink::sendRegister()
// lock // lock
_mutexIAX.enterMutex(); _mutexIAX.enterMutex();
if (_regSession == NULL) { // Always use a brand new session
_regSession = iax_session_new(); if (_regSession) {
iax_destroy(_regSession);
} }
_regSession = iax_session_new();
if (!_regSession) { if (!_regSession) {
_debug("Error when generating new session for register"); _debug("Error when generating new session for register");
} else { } else {
// refresh // refresh
// last reg // last reg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment