Commit 34316c38 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Minor update, IAX: change mutex placement.

parent 2dea0427
......@@ -27,6 +27,14 @@ sudo make install
You can replace `--prefix=/usr` by whatever prefix you like. Make sure to
also change this value in the next steps.
Run:
--------------------------------------
./configure --prefix=/usr --with-debug
--------------------------------------
to enable debug mode.
NOTE: If you have `colorgcc`, configure will *fail* on `libeXpat`. Issue an `unset CC` and `unset CXX` to build the dbus bindings.
......
......@@ -223,7 +223,7 @@ IAXVoIPLink::getEvent()
sendRegister();
}
// thread wait 5 millisecond
// thread wait 3 millisecond
_evThread->sleep(3);
}
......@@ -440,16 +440,17 @@ IAXVoIPLink::sendRegister()
bool
IAXVoIPLink::sendUnregister()
{
_mutexIAX.enterMutex();
if (_regSession) {
/** @todo Should send a REGREL in sendUnregister()... */
_mutexIAX.enterMutex();
//iax_send_regrel(); doesn't exist yet :)
iax_destroy(_regSession);
_mutexIAX.leaveMutex();
_regSession = NULL;
}
_mutexIAX.leaveMutex();
_nextRefreshStamp = 0;
setRegistrationState(Unregistered);
......@@ -736,7 +737,7 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call)
break;
default:
_debug("Unknown event type: %d\n", event->etype);
_debug("Unknown event type (in call event): %d\n", event->etype);
}
}
......@@ -948,7 +949,7 @@ IAXVoIPLink::iaxHandlePrecallEvent(iax_event* event)
break;
default:
_debug("Unknown event type: %d\n", event->etype);
_debug("Unknown event type (in precall): %d\n", event->etype);
}
}
......
/*
* Copyright (C) 2004-2006 Savoir-Faire Linux inc.
* Author: Yan Morin <yan.morin@savoirfairelinux.com>
* Author : Laurielle Lea <laurielle.lea@savoirfairelinux.com>
* Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
Supports Markdown
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