summaryrefslogtreecommitdiffstats
path: root/src/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/user.cpp')
-rw-r--r--src/user.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/user.cpp b/src/user.cpp
index 588bb55..16a4c3b 100644
--- a/src/user.cpp
+++ b/src/user.cpp
@@ -163,7 +163,7 @@ extern t_phone *phone;
#define FLD_ZRTP_SEND_IF_SUPPORTED "zrtp_send_if_supported"
// MWI
-#define FLD_MWI_SOLLICITED "mwi_sollicited"
+#define FLD_MWI_SOLICITED "mwi_solicited"
#define FLD_MWI_USER "mwi_user"
#define FLD_MWI_SERVER "mwi_server"
#define FLD_MWI_VIA_PROXY "mwi_via_proxy"
@@ -459,7 +459,7 @@ t_user::t_user() {
zrtp_goclear_warning = true;
zrtp_sdp = true;
zrtp_send_if_supported = false;
- mwi_sollicited = false;
+ mwi_solicited = false;
mwi_user.clear();
mwi_via_proxy = false;
mwi_subscription_time = 3600;
@@ -578,7 +578,7 @@ t_user::t_user(const t_user &u) {
zrtp_goclear_warning = u.zrtp_goclear_warning;
zrtp_sdp = u.zrtp_sdp;
zrtp_send_if_supported = u.zrtp_send_if_supported;
- mwi_sollicited = u.mwi_sollicited;
+ mwi_solicited = u.mwi_solicited;
mwi_user = u.mwi_user;
mwi_server = u.mwi_server;
mwi_via_proxy = u.mwi_via_proxy;
@@ -1380,10 +1380,10 @@ bool t_user::get_zrtp_send_if_supported(void) const {
return result;
}
-bool t_user::get_mwi_sollicited(void) const {
+bool t_user::get_mwi_solicited(void) const {
bool result;
mtx_user.lock();
- result = mwi_sollicited;
+ result = mwi_solicited;
mtx_user.unlock();
return result;
}
@@ -2070,9 +2070,9 @@ void t_user::set_zrtp_send_if_supported(bool b) {
mtx_user.unlock();
}
-void t_user::set_mwi_sollicited(bool b) {
+void t_user::set_mwi_solicited(bool b) {
mtx_user.lock();
- mwi_sollicited = b;
+ mwi_solicited = b;
mtx_user.unlock();
}
@@ -2524,8 +2524,8 @@ bool t_user::read_config(const string &filename, string &error_msg) {
zrtp_sdp = yesno2bool(value);
} else if (parameter == FLD_ZRTP_SEND_IF_SUPPORTED) {
zrtp_send_if_supported = yesno2bool(value);
- } else if (parameter == FLD_MWI_SOLLICITED) {
- mwi_sollicited = yesno2bool(value);
+ } else if (parameter == FLD_MWI_SOLICITED) {
+ mwi_solicited = yesno2bool(value);
} else if (parameter == FLD_MWI_USER) {
mwi_user = value;
} else if (parameter == FLD_MWI_SERVER) {
@@ -2869,7 +2869,7 @@ bool t_user::write_config(const string &filename, string &error_msg) {
// Write MWI settings
config << "# MWI\n";
- config << FLD_MWI_SOLLICITED << '=' << bool2yesno(mwi_sollicited) << endl;
+ config << FLD_MWI_SOLICITED << '=' << bool2yesno(mwi_solicited) << endl;
config << FLD_MWI_USER << '=' << mwi_user << endl;
if (mwi_server.is_valid()) {
config << FLD_MWI_SERVER << '=' << mwi_server.encode_noscheme() << endl;