diff --git a/coreapi/help/doxygen.dox b/coreapi/help/doxygen.dox
index 37788e458..1873b10e1 100644
--- a/coreapi/help/doxygen.dox
+++ b/coreapi/help/doxygen.dox
@@ -42,13 +42,13 @@
/**
* @defgroup proxies Managing proxies
- *User registration is control by #LinphoneProxyConfig settings.
Each #LinphoneProxyConfig object can be configured with registration information
- *like \link linphone_proxy_config_set_server_addr() proxy address \endlink , \link linphone_proxy_config_set_identity() user id \endlink, \link linphone_proxy_config_expires() refresh period \endlink, etc
+ *User registration is controled by #LinphoneProxyConfig settings.
Each #LinphoneProxyConfig object can be configured with registration informations
+ *like \link linphone_proxy_config_set_server_addr() proxy address \endlink , \link linphone_proxy_config_set_identity() user id \endlink, \link linphone_proxy_config_expires() refresh period \endlink, and so on.
*
A created proxy config using linphone_proxy_config_new(), once configured, must be added to #LinphoneCore using function linphone_core_add_proxy_config().
*
It is recommended to set a default \link #LinphoneProxyConfig proxy config \endlink using function linphone_core_set_default_proxy(). Once done, if \link #LinphoneProxyConfig a proxy config \endlink has been configured with attribute \link linphone_proxy_config_enable_register() enable register \endlink , next call to linphone_core_iterate() triggers a SIP register.
*
Registration status is reported by #LinphoneRegistrationStateCb.
*
- *
This pseudo code demonstrate basic registration operation:
+ *
This pseudo code demonstrates basic registration operations:
*
\code
*
* LinphoneProxyConfig* proxy_cfg;
@@ -84,8 +84,8 @@
*
Most of the time, registration requires \ref authentication "authentication" to succed. #LinphoneAuthInfo info must be either added to #LinphoneCore using function linphone_core_add_auth_info() before #LinphoneProxyConfig is added to Linphone core, or on demand from call back #AuthInfoRequested .
*
*
Unregistration:
- *
Unregistration or any change to #LinphoneProxyConfig must be first started by a call to function linphone_proxy_config_edit() and validated by a call to function linphone_proxy_config_done()
- *
This pseudo code show how to unregister a user associated to a #LinphoneProxyConfig
+ *
Unregistration or any changes to #LinphoneProxyConfig must be first started by a call to function linphone_proxy_config_edit() and validated by function linphone_proxy_config_done()
+ *
This pseudo code shows how to unregister a user associated to a #LinphoneProxyConfig
*\code
LinphoneProxyConfig* proxy_cfg;
linphone_core_get_default_proxy(lc,&proxy_cfg); /* get default proxy config*/
diff --git a/coreapi/help/registration.c b/coreapi/help/registration.c
index 23b70e821..1d22e2d47 100644
--- a/coreapi/help/registration.c
+++ b/coreapi/help/registration.c
@@ -71,7 +71,7 @@ int main(int argc, char *argv[]){
}
signal(SIGINT,stop);
-#define DEBUG
+
#ifdef DEBUG
linphone_core_enable_logs(NULL); /*enable liblinphone logs.*/
#endif
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]){
linphone_proxy_config_enable_register(proxy_cfg,FALSE); /*de-activate registration for this proxy config*/
linphone_proxy_config_done(proxy_cfg); /*initiate REGISTER with expire = 0*/
- while(linphone_proxy_config_get_state(proxy_cfg) == LinphoneRegistrationOk){
+ while(linphone_proxy_config_get_state(proxy_cfg) != LinphoneRegistrationCleared){
linphone_core_iterate(lc); /*to make sure we receive call backs before shutting down*/
ms_usleep(50000);
}