Skip to content
Snippets Groups Projects
Commit 7bd9a86b authored by llea's avatar llea
Browse files

Add return test

parent 23d4ab66
No related branches found
No related tags found
No related merge requests found
SFLphone (0.4) / 2005-07-06
* Cleanup code
* Add autotools support
* Test on iMac with Ubuntu: Ok
* Handle CANCEL method
* PortAudio replace OSS and ALSA devices choice
* Add PortAudioCpp to make easy use of RingBuffer object for audio callback
......
Laurielle LEA (8 July 2005) version 0.4
- Stop program when error opening skin file
- Divide toggle() of qtguimainwindow.cpp in small functions
- Add return test
Laurielle LEA (7 July 2005) version 0.4
- Cleanup audiortp.cpp
......
......@@ -132,7 +132,10 @@ Manager::init (void)
_voIPLinkVector->at(DFT_VOIP_LINK)->init();
if (get_config_fields_int(SIGNALISATION, AUTO_REGISTER) == YES and
_exist == 1) {
registerVoIPLink();
if (registerVoIPLink() != 1) {
_debug("Registration failed\n");
displayErrorText("Check your configuration fields");
}
}
}
......@@ -404,8 +407,11 @@ Manager::saveConfig (void)
int
Manager::registerVoIPLink (void)
{
_voIPLinkVector->at(DFT_VOIP_LINK)->setRegister();
return 1;
if (_voIPLinkVector->at(DFT_VOIP_LINK)->setRegister() == 0) {
return 1;
} else {
return 0;
}
}
int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment