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()
// lock
_mutexIAX.enterMutex();
if (_regSession == NULL) {
_regSession = iax_session_new();
// Always use a brand new session
if (_regSession) {
iax_destroy(_regSession);
}
_regSession = iax_session_new();
if (!_regSession) {
_debug("Error when generating new session for register");
} else {
// refresh
// last reg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment