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

Add return test

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