Commit fd87e1d6 authored by Alexandre Bourget's avatar Alexandre Bourget

IAX: Fix new registration when account updated.

parent 669cebe9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment