diff --git a/coreapi/conference.c b/coreapi/conference.c
index 63f6369e9d4eb5143da3f5690270919dbfc97b86..aafed5d606c5351f192b041282979e6134422009 100644
--- a/coreapi/conference.c
+++ b/coreapi/conference.c
@@ -28,6 +28,8 @@
 
 #include "mediastreamer2/msvolume.h"
 
+static int convert_conference_to_call(LinphoneCore *lc);
+
 static void conference_check_init(LinphoneConference *ctx, int samplerate){
 	if (ctx->conf==NULL){
 		MSAudioConferenceParams params;
@@ -48,24 +50,22 @@ static void remove_local_endpoint(LinphoneConference *ctx){
 }
 
 static int remote_participants_count(LinphoneConference *ctx) {
-	if (!ctx->conf || ctx->conf->nmembers==0) return 0;
-	if (!ctx->local_participant) return ctx->conf->nmembers;
-	return ctx->conf->nmembers -1;
+	if (!ctx->conf || ms_audio_conference_get_size(ctx->conf)==0) return 0;
+	if (!ctx->local_participant) return ms_audio_conference_get_size(ctx->conf);
+	return ms_audio_conference_get_size(ctx->conf) -1;
 }
 
-static int convert_conference_to_call(LinphoneCore *lc);
 void linphone_core_conference_check_uninit(LinphoneCore *lc){
 	LinphoneConference *ctx=&lc->conf_ctx;
 	if (ctx->conf){
-		ms_message("conference_check_uninit(): nmembers=%i",ctx->conf->nmembers);
+		ms_message("conference_check_uninit(): nmembers=%i",ms_audio_conference_get_size(ctx->conf));
 		if (remote_participants_count(ctx)==1){
 			convert_conference_to_call(lc);
 		}
-		if (ctx->conf->nmembers==1)
-		if (ctx->conf->nmembers==1 && ctx->local_participant!=NULL){
+		if (ms_audio_conference_get_size(ctx->conf)==1 && ctx->local_participant!=NULL){
 			remove_local_endpoint(ctx);
 		}
-		if (ctx->conf->nmembers==0){
+		if (ms_audio_conference_get_size(ctx->conf)==0){
 			ms_audio_conference_destroy(ctx->conf);
 			ctx->conf=NULL;
 		}
@@ -298,5 +298,5 @@ int linphone_core_terminate_conference(LinphoneCore *lc) {
 }
 
 int linphone_core_get_conference_size(LinphoneCore *lc) {
-	return ms_audio_conference_size(lc->conf_ctx.conf);
+	return ms_audio_conference_get_size(lc->conf_ctx.conf);
 }
diff --git a/mediastreamer2 b/mediastreamer2
index 698cadf4ed473f4d1291238852492222209916da..c1f6d3e6d4f36928fffd2e7380759544bcd23d84 160000
--- a/mediastreamer2
+++ b/mediastreamer2
@@ -1 +1 @@
-Subproject commit 698cadf4ed473f4d1291238852492222209916da
+Subproject commit c1f6d3e6d4f36928fffd2e7380759544bcd23d84